@genpact/genome.mfe.solidify-app 1.45.0 → 1.46.1
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/SolidifyAdministrationCreateOffCyele.css +1 -1
- package/dist/css/SolidifyLearner.css +1 -1
- package/dist/css/SolidifyLearnerDone.css +1 -1
- package/dist/css/SolidifyLearnerSelectTask.css +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearner.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearner.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.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 +1 @@
|
|
|
1
|
-
.ul-nav ul[data-v-5bfafb19]{display:flex;width:100%}.ul-nav ul li.active[data-v-5bfafb19]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-5bfafb19]: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-5bfafb19]{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-5bfafb19]: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-5bfafb19]{padding-left:20px!important}.box-overflow1[data-v-5bfafb19]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-5bfafb19]{overflow-x:scroll}.box-overflow1[data-v-5bfafb19]{max-height:none;overflow-y:auto}.ul-nav li[data-v-5bfafb19]:first-child,.ul-nav li[data-v-5bfafb19]:nth-child(2){display:none}}.ul-nav ul[data-v-
|
|
1
|
+
.ul-nav ul[data-v-5bfafb19]{display:flex;width:100%}.ul-nav ul li.active[data-v-5bfafb19]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-5bfafb19]: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-5bfafb19]{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-5bfafb19]: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-5bfafb19]{padding-left:20px!important}.box-overflow1[data-v-5bfafb19]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-5bfafb19]{overflow-x:scroll}.box-overflow1[data-v-5bfafb19]{max-height:none;overflow-y:auto}.ul-nav li[data-v-5bfafb19]:first-child,.ul-nav li[data-v-5bfafb19]:nth-child(2){display:none}}.ul-nav ul[data-v-7548bb12]{display:flex;width:100%}.ul-nav ul li.active[data-v-7548bb12]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-7548bb12]: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-7548bb12]{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-7548bb12]: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-7548bb12]{padding-left:20px!important}.box-overflow1[data-v-7548bb12]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-7548bb12]{overflow-x:scroll}.box-overflow1[data-v-7548bb12]{max-height:none;overflow-y:auto}.ul-nav li[data-v-7548bb12]:first-child,.ul-nav li[data-v-7548bb12]:nth-child(2){display:none}}.ul-nav ul[data-v-08c23a5d]{display:flex;width:100%}.ul-nav ul li.active[data-v-08c23a5d]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-08c23a5d]: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-08c23a5d]{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-08c23a5d]: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-08c23a5d]{padding-left:20px!important}.box-overflow1[data-v-08c23a5d]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-08c23a5d]{overflow-x:scroll}.box-overflow1[data-v-08c23a5d]{max-height:none;overflow-y:auto}.ul-nav li[data-v-08c23a5d]:first-child,.ul-nav li[data-v-08c23a5d]:nth-child(2){display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.modal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;background-color:#000000da}.modal{text-align:center;background-color:#fff;height:200px;width:500px;margin-top:10%;padding:40px 0}p{font-size:16px;margin:20px 0}.modal-fade-enter,.modal-fade-leave-to{opacity:0}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .5s ease}.ul-nav ul[data-v-6d0184b8]{display:flex;width:100%}.ul-nav ul li.active[data-v-6d0184b8]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-6d0184b8]: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-6d0184b8]{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-6d0184b8]: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-6d0184b8]{padding-left:20px!important}.box-overflow1[data-v-6d0184b8]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-6d0184b8]{overflow-x:scroll}.box-overflow1[data-v-6d0184b8]{max-height:none;overflow-y:auto}}.ul-nav ul[data-v-9c6ea3fc]{display:flex;width:100%}.ul-nav ul li.active[data-v-9c6ea3fc]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-9c6ea3fc]: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-9c6ea3fc]{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-9c6ea3fc]: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-9c6ea3fc]{padding-left:20px!important}.box-overflow1[data-v-9c6ea3fc]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-9c6ea3fc]{overflow-x:scroll}.box-overflow1[data-v-9c6ea3fc]{max-height:none;overflow-y:auto}}.ul-nav ul[data-v-
|
|
1
|
+
.modal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;background-color:#000000da}.modal{text-align:center;background-color:#fff;height:200px;width:500px;margin-top:10%;padding:40px 0}p{font-size:16px;margin:20px 0}.modal-fade-enter,.modal-fade-leave-to{opacity:0}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .5s ease}.ul-nav ul[data-v-6d0184b8]{display:flex;width:100%}.ul-nav ul li.active[data-v-6d0184b8]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-6d0184b8]: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-6d0184b8]{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-6d0184b8]: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-6d0184b8]{padding-left:20px!important}.box-overflow1[data-v-6d0184b8]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-6d0184b8]{overflow-x:scroll}.box-overflow1[data-v-6d0184b8]{max-height:none;overflow-y:auto}}.ul-nav ul[data-v-9c6ea3fc]{display:flex;width:100%}.ul-nav ul li.active[data-v-9c6ea3fc]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-9c6ea3fc]: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-9c6ea3fc]{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-9c6ea3fc]: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-9c6ea3fc]{padding-left:20px!important}.box-overflow1[data-v-9c6ea3fc]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-9c6ea3fc]{overflow-x:scroll}.box-overflow1[data-v-9c6ea3fc]{max-height:none;overflow-y:auto}}.ul-nav ul[data-v-4a21e0a8]{display:flex;width:100%}.ul-nav ul li.active[data-v-4a21e0a8]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-4a21e0a8]: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-4a21e0a8]{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-4a21e0a8]: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-4a21e0a8]{padding-left:20px!important;margin-right:10px!important}.box-overflow1[data-v-4a21e0a8]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-4a21e0a8]{overflow-x:scroll}.box-overflow1[data-v-4a21e0a8]{max-height:none;overflow-y:auto}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ul-nav ul[data-v-
|
|
1
|
+
.ul-nav ul[data-v-78a44bd8]{display:flex;width:100%}.ul-nav ul li.active[data-v-78a44bd8]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-78a44bd8]: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-78a44bd8]{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-78a44bd8]: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-78a44bd8]{padding-left:20px!important}.box-overflow1[data-v-78a44bd8]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-78a44bd8]{overflow-x:scroll}.box-overflow1[data-v-78a44bd8]{max-height:none;overflow-y:auto}.ul-nav .done li[data-v-78a44bd8]:first-child,.ul-nav .done li[data-v-78a44bd8]:nth-child(2),.ul-nav .done li[data-v-78a44bd8]:nth-child(3),.ul-nav .done li[data-v-78a44bd8]:nth-child(4),.ul-nav .done li[data-v-78a44bd8]:nth-child(5),.ul-nav .underReview li[data-v-78a44bd8]:first-child,.ul-nav .underReview li[data-v-78a44bd8]:nth-child(2),.ul-nav .underReview li[data-v-78a44bd8]:nth-child(3),.ul-nav .underReview li[data-v-78a44bd8]:nth-child(4){display:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ul-nav ul[data-v-
|
|
1
|
+
.ul-nav ul[data-v-00025376]{display:flex;width:100%}.ul-nav ul li.active[data-v-00025376]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-00025376]: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-00025376]{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-00025376]: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-00025376]{padding-left:20px!important}.box-overflow1[data-v-00025376]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-00025376]{overflow-x:scroll}.box-overflow1[data-v-00025376]{max-height:none;overflow-y:auto}.ul-nav li[data-v-00025376]:first-child{display:none}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[704],{8200:function(e,t,a){a.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:a(6540)}})])])])])])},r=[],l=a(7203),i=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),n=i,o=a(3736),u=(0,o.Z)(n,s,r,!1,null,null,null),c=u.exports},4755:function(e,t,a){a.r(t),a.d(t,{default:function(){return oe}});var s,r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],i=(a(7658),a(7203)),n=a(4856),o=a(306),u=(a(3767),a(8585),a(8696),new Uint8Array(16));function c(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return"string"===typeof e&&d.test(e)}for(var f=m,v=[],p=0;p<256;++p)v.push((p+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();if(!f(a))throw TypeError("Stringified UUID is invalid");return a}var b,y,x=g,h=0,k=0;function w(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||b,i=void 0!==e.clockseq?e.clockseq:y;if(null==l||null==i){var n=e.random||(e.rng||c)();null==l&&(l=b=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==i&&(i=y=16383&(n[6]<<8|n[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:k+1,d=o-h+(u-k)/1e4;if(d<0&&void 0===e.clockseq&&(i=i+1&16383),(d<0||o>h)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=o,k=u,y=i,o+=122192928e5;var m=(1e4*(268435455&o)+u)%4294967296;r[s++]=m>>>24&255,r[s++]=m>>>16&255,r[s++]=m>>>8&255,r[s++]=255&m;var f=o/4294967296*1e4&268435455;r[s++]=f>>>8&255,r[s++]=255&f,r[s++]=f>>>24&15|16,r[s++]=f>>>16&255,r[s++]=i>>>8|128,r[s++]=255&i;for(var v=0;v<6;++v)r[s+v]=l[v];return t||x(r)}var _=w;function C(e){if(!f(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var S=C;function A(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var I="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function T(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=A(e)),"string"===typeof s&&(s=S(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(s),i.set(e,s.length),i=a(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,r){l=l||0;for(var n=0;n<16;++n)r[l+n]=i[n];return r}return x(i)}try{s.name=e}catch(r){}return s.DNS=I,s.URL=M,s}function U(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return E(Z(L(e),8*e.length))}function E(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,i=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(i)}return t}function R(e){return 14+(e+64>>>9<<4)+1}function Z(e,t){e[t>>5]|=128<<t%32,e[R(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,i=0;i<e.length;i+=16){var n=a,o=s,u=r,c=l;a=B(a,s,r,l,e[i],7,-680876936),l=B(l,a,s,r,e[i+1],12,-389564586),r=B(r,l,a,s,e[i+2],17,606105819),s=B(s,r,l,a,e[i+3],22,-1044525330),a=B(a,s,r,l,e[i+4],7,-176418897),l=B(l,a,s,r,e[i+5],12,1200080426),r=B(r,l,a,s,e[i+6],17,-1473231341),s=B(s,r,l,a,e[i+7],22,-45705983),a=B(a,s,r,l,e[i+8],7,1770035416),l=B(l,a,s,r,e[i+9],12,-1958414417),r=B(r,l,a,s,e[i+10],17,-42063),s=B(s,r,l,a,e[i+11],22,-1990404162),a=B(a,s,r,l,e[i+12],7,1804603682),l=B(l,a,s,r,e[i+13],12,-40341101),r=B(r,l,a,s,e[i+14],17,-1502002290),s=B(s,r,l,a,e[i+15],22,1236535329),a=F(a,s,r,l,e[i+1],5,-165796510),l=F(l,a,s,r,e[i+6],9,-1069501632),r=F(r,l,a,s,e[i+11],14,643717713),s=F(s,r,l,a,e[i],20,-373897302),a=F(a,s,r,l,e[i+5],5,-701558691),l=F(l,a,s,r,e[i+10],9,38016083),r=F(r,l,a,s,e[i+15],14,-660478335),s=F(s,r,l,a,e[i+4],20,-405537848),a=F(a,s,r,l,e[i+9],5,568446438),l=F(l,a,s,r,e[i+14],9,-1019803690),r=F(r,l,a,s,e[i+3],14,-187363961),s=F(s,r,l,a,e[i+8],20,1163531501),a=F(a,s,r,l,e[i+13],5,-1444681467),l=F(l,a,s,r,e[i+2],9,-51403784),r=F(r,l,a,s,e[i+7],14,1735328473),s=F(s,r,l,a,e[i+12],20,-1926607734),a=N(a,s,r,l,e[i+5],4,-378558),l=N(l,a,s,r,e[i+8],11,-2022574463),r=N(r,l,a,s,e[i+11],16,1839030562),s=N(s,r,l,a,e[i+14],23,-35309556),a=N(a,s,r,l,e[i+1],4,-1530992060),l=N(l,a,s,r,e[i+4],11,1272893353),r=N(r,l,a,s,e[i+7],16,-155497632),s=N(s,r,l,a,e[i+10],23,-1094730640),a=N(a,s,r,l,e[i+13],4,681279174),l=N(l,a,s,r,e[i],11,-358537222),r=N(r,l,a,s,e[i+3],16,-722521979),s=N(s,r,l,a,e[i+6],23,76029189),a=N(a,s,r,l,e[i+9],4,-640364487),l=N(l,a,s,r,e[i+12],11,-421815835),r=N(r,l,a,s,e[i+15],16,530742520),s=N(s,r,l,a,e[i+2],23,-995338651),a=P(a,s,r,l,e[i],6,-198630844),l=P(l,a,s,r,e[i+7],10,1126891415),r=P(r,l,a,s,e[i+14],15,-1416354905),s=P(s,r,l,a,e[i+5],21,-57434055),a=P(a,s,r,l,e[i+12],6,1700485571),l=P(l,a,s,r,e[i+3],10,-1894986606),r=P(r,l,a,s,e[i+10],15,-1051523),s=P(s,r,l,a,e[i+1],21,-2054922799),a=P(a,s,r,l,e[i+8],6,1873313359),l=P(l,a,s,r,e[i+15],10,-30611744),r=P(r,l,a,s,e[i+6],15,-1560198380),s=P(s,r,l,a,e[i+13],21,1309151649),a=P(a,s,r,l,e[i+4],6,-145523070),l=P(l,a,s,r,e[i+11],10,-1120210379),r=P(r,l,a,s,e[i+2],15,718787259),s=P(s,r,l,a,e[i+9],21,-343485551),a=D(a,n),s=D(s,o),r=D(r,u),l=D(l,c)}return[a,s,r,l]}function L(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(R(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function D(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function V(e,t){return e<<t|e>>>32-t}function G(e,t,a,s,r,l){return D(V(D(D(t,e),D(s,l)),r),a)}function B(e,t,a,s,r,l,i){return G(t&a|~t&s,e,t,r,l,i)}function F(e,t,a,s,r,l,i){return G(t&s|a&~s,e,t,r,l,i)}function N(e,t,a,s,r,l,i){return G(t^a^s,e,t,r,l,i)}function P(e,t,a,s,r,l,i){return G(a^(t|~s),e,t,r,l,i)}var j=U,z=T("v3",48,j),W=z;function J(e,t,a){e=e||{};var s=e.random||(e.rng||c)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return x(s)}var q=J;function O(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function X(e,t){return e<<t|e>>>32-t}function Y(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,i=Math.ceil(l/16),n=new Array(i),o=0;o<i;++o){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*o+4*c]<<24|e[64*o+4*c+1]<<16|e[64*o+4*c+2]<<8|e[64*o+4*c+3];n[o]=u}n[i-1][14]=8*(e.length-1)/Math.pow(2,32),n[i-1][14]=Math.floor(n[i-1][14]),n[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var m=new Uint32Array(80),f=0;f<16;++f)m[f]=n[d][f];for(var v=16;v<80;++v)m[v]=X(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);for(var p=a[0],g=a[1],b=a[2],y=a[3],x=a[4],h=0;h<80;++h){var k=Math.floor(h/20),w=X(p,5)+O(k,g,b,y)+x+t[k]+m[h]>>>0;x=y,y=b,b=X(g,30)>>>0,g=p,p=w}a[0]=a[0]+p>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+b>>>0,a[3]=a[3]+y>>>0,a[4]=a[4]+x>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var H=Y,K=T("v5",80,H),Q=K,$={v1:_,v3:W,v4:q,v5:Q};var ee=a(1548),te=a(568),ae=a(9955),se=a(8200),re=(0,i.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:n.b0D,ErrorMessage:se.Z},setup(){const e=(0,i.ref)(localStorage.getItem("linkedTaskId")),t=(0,i.ref)($.v1()),a=(0,i.ref)(localStorage.getItem("programId")),s=(0,i.ref)(localStorage.getItem("programName")),r=(0,i.ref)(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=(0,i.ref)(localStorage.getItem("proficiencyId")),n=(0,i.ref)(localStorage.getItem("skillName")),u=(0,i.ref)(localStorage.getItem("proficiencyName")),c=(0,i.ref)(localStorage.getItem("taskName")),d=(0,i.ref)(localStorage.getItem("taskType")),m=(0,i.ref)(null),f=(0,i.ref)(),v=(0,i.ref)(),p=(0,i.ref)(),g=(0,i.ref)(!0),b=(0,i.ref)(),y=(0,i.ref)(0),x=(0,i.ref)(!1),h=(0,i.ref)(),k=(0,i.ref)(!1),w=(0,i.ref)(),_=(0,i.ref)(!1),C=async()=>{y.value+=1,console.log(`before ${v.value}`),v.value=null,console.log(`after ${v.value}`)},S=e=>{const t=e.target.checked;!0===t?(g.value=!1,console.log(g.value)):(g.value=!0,console.log(g.value))},A=async e=>{try{m.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(f.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),x.value=!0,o.Z.isAxiosError(t)){const e=t;h.value=e.response?.data?.message}else h.value="Something went wrong, please contact helpmate.";_.value=!0}},I=async()=>{try{if(x.value=!1,v.value){let s;if("Desktop"===d.value){const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:v.value},n=await(0,te.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),o=n.data;p.value=o.preSignedUrl;const u=await(0,te.sc)(p.value,m.value);200===u.status?s=await(0,ae.sw)("/offcycle/create",i):(x.value=!0,h.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:v.value};s=await(0,ae.sw)("/offcycle/create",i)}200===s.status?(x.value=!0,w.value=s.data.message,k.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(x.value=!0,h.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(x.value=!0,v.value||(f.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{f.value=null}),6e3))):"Desktop"===d.value&&(x.value=!0,console.log(`learnerSubmission.value ${v.value}`),v.value||(f.value="please select File",setTimeout((()=>{f.value=null}),6e3)))}catch(s){if(x.value=!0,console.log(`error ${s}`),o.Z.isAxiosError(s)){const e=s;h.value=e.response?.data?.message}else h.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return(0,i.onBeforeMount)((async()=>{x.value=!0})),{learnerSubmissionFile:m,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:c,submitSubmiision:I,learnerSubmission:v,selectedFile:A,fileValidationMsg:f,learnerTaskId:t,preSignedUrl:p,buttonDisable:g,setButtonEnable:S,validationError:b,clearFile:C,fileInputKey:y,renderReady:x,errorResponse:h,showErrorMessage:_,programName:s,skill:n,profName:u,showSuccessMessage:k,resMessage:w}}}),le=re,ie=a(3736),ne=(0,ie.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ne.exports},3440:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(8200),c=(0,l.defineComponent)({name:"UpdateSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const t={learner_task_id:a.value,learner_submission:u.value,taskType:s.value};if("Desktop"===s.value){const s=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(3736),f=(0,m.Z)(d,s,r,!1,null,"08c23a5d",null),v=f.exports},2752:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(8200),c=(0,l.defineComponent)({name:"UploadSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const t={learner_task_id:a.value,learner_submission:u.value,taskType:s.value};if("Desktop"===s.value){const s=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(3736),f=(0,m.Z)(d,s,r,!1,null,"257b2337",null),v=f.exports},9955:function(e,t,a){a.d(t,{Yg:function(){return l},sw:function(){return r}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a}},8451:function(e,t,a){a.d(t,{Lu:function(){return r},O6:function(){return n},QZ:function(){return u},R2:function(){return o},X5:function(){return i},oE:function(){return l}});var s=a(7129);const r=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},n=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},u=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t}},568:function(e,t,a){a.d(t,{ie:function(){return n},rC:function(){return o},sc:function(){return l},ux:function(){return r},yW:function(){return i}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},i=async e=>{const t=await s.Z.get(`/task/${e}`);return t},n=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a}},6540:function(e){e.exports="data:image/png;base64,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"}}]);
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[704],{8200:function(e,t,a){a.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:a(6540)}})])])])])])},r=[],l=a(7203),i=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),n=i,o=a(3736),u=(0,o.Z)(n,s,r,!1,null,null,null),c=u.exports},4755:function(e,t,a){a.r(t),a.d(t,{default:function(){return oe}});var s,r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],i=(a(7658),a(7203)),n=a(4856),o=a(306),u=(a(3767),a(8585),a(8696),new Uint8Array(16));function c(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return"string"===typeof e&&d.test(e)}for(var f=m,v=[],p=0;p<256;++p)v.push((p+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();if(!f(a))throw TypeError("Stringified UUID is invalid");return a}var b,y,x=g,h=0,k=0;function w(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||b,i=void 0!==e.clockseq?e.clockseq:y;if(null==l||null==i){var n=e.random||(e.rng||c)();null==l&&(l=b=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==i&&(i=y=16383&(n[6]<<8|n[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:k+1,d=o-h+(u-k)/1e4;if(d<0&&void 0===e.clockseq&&(i=i+1&16383),(d<0||o>h)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=o,k=u,y=i,o+=122192928e5;var m=(1e4*(268435455&o)+u)%4294967296;r[s++]=m>>>24&255,r[s++]=m>>>16&255,r[s++]=m>>>8&255,r[s++]=255&m;var f=o/4294967296*1e4&268435455;r[s++]=f>>>8&255,r[s++]=255&f,r[s++]=f>>>24&15|16,r[s++]=f>>>16&255,r[s++]=i>>>8|128,r[s++]=255&i;for(var v=0;v<6;++v)r[s+v]=l[v];return t||x(r)}var _=w;function C(e){if(!f(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var S=C;function A(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var I="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function T(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=A(e)),"string"===typeof s&&(s=S(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(s),i.set(e,s.length),i=a(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,r){l=l||0;for(var n=0;n<16;++n)r[l+n]=i[n];return r}return x(i)}try{s.name=e}catch(r){}return s.DNS=I,s.URL=M,s}function U(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return E(Z(L(e),8*e.length))}function E(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,i=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(i)}return t}function R(e){return 14+(e+64>>>9<<4)+1}function Z(e,t){e[t>>5]|=128<<t%32,e[R(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,i=0;i<e.length;i+=16){var n=a,o=s,u=r,c=l;a=B(a,s,r,l,e[i],7,-680876936),l=B(l,a,s,r,e[i+1],12,-389564586),r=B(r,l,a,s,e[i+2],17,606105819),s=B(s,r,l,a,e[i+3],22,-1044525330),a=B(a,s,r,l,e[i+4],7,-176418897),l=B(l,a,s,r,e[i+5],12,1200080426),r=B(r,l,a,s,e[i+6],17,-1473231341),s=B(s,r,l,a,e[i+7],22,-45705983),a=B(a,s,r,l,e[i+8],7,1770035416),l=B(l,a,s,r,e[i+9],12,-1958414417),r=B(r,l,a,s,e[i+10],17,-42063),s=B(s,r,l,a,e[i+11],22,-1990404162),a=B(a,s,r,l,e[i+12],7,1804603682),l=B(l,a,s,r,e[i+13],12,-40341101),r=B(r,l,a,s,e[i+14],17,-1502002290),s=B(s,r,l,a,e[i+15],22,1236535329),a=F(a,s,r,l,e[i+1],5,-165796510),l=F(l,a,s,r,e[i+6],9,-1069501632),r=F(r,l,a,s,e[i+11],14,643717713),s=F(s,r,l,a,e[i],20,-373897302),a=F(a,s,r,l,e[i+5],5,-701558691),l=F(l,a,s,r,e[i+10],9,38016083),r=F(r,l,a,s,e[i+15],14,-660478335),s=F(s,r,l,a,e[i+4],20,-405537848),a=F(a,s,r,l,e[i+9],5,568446438),l=F(l,a,s,r,e[i+14],9,-1019803690),r=F(r,l,a,s,e[i+3],14,-187363961),s=F(s,r,l,a,e[i+8],20,1163531501),a=F(a,s,r,l,e[i+13],5,-1444681467),l=F(l,a,s,r,e[i+2],9,-51403784),r=F(r,l,a,s,e[i+7],14,1735328473),s=F(s,r,l,a,e[i+12],20,-1926607734),a=N(a,s,r,l,e[i+5],4,-378558),l=N(l,a,s,r,e[i+8],11,-2022574463),r=N(r,l,a,s,e[i+11],16,1839030562),s=N(s,r,l,a,e[i+14],23,-35309556),a=N(a,s,r,l,e[i+1],4,-1530992060),l=N(l,a,s,r,e[i+4],11,1272893353),r=N(r,l,a,s,e[i+7],16,-155497632),s=N(s,r,l,a,e[i+10],23,-1094730640),a=N(a,s,r,l,e[i+13],4,681279174),l=N(l,a,s,r,e[i],11,-358537222),r=N(r,l,a,s,e[i+3],16,-722521979),s=N(s,r,l,a,e[i+6],23,76029189),a=N(a,s,r,l,e[i+9],4,-640364487),l=N(l,a,s,r,e[i+12],11,-421815835),r=N(r,l,a,s,e[i+15],16,530742520),s=N(s,r,l,a,e[i+2],23,-995338651),a=P(a,s,r,l,e[i],6,-198630844),l=P(l,a,s,r,e[i+7],10,1126891415),r=P(r,l,a,s,e[i+14],15,-1416354905),s=P(s,r,l,a,e[i+5],21,-57434055),a=P(a,s,r,l,e[i+12],6,1700485571),l=P(l,a,s,r,e[i+3],10,-1894986606),r=P(r,l,a,s,e[i+10],15,-1051523),s=P(s,r,l,a,e[i+1],21,-2054922799),a=P(a,s,r,l,e[i+8],6,1873313359),l=P(l,a,s,r,e[i+15],10,-30611744),r=P(r,l,a,s,e[i+6],15,-1560198380),s=P(s,r,l,a,e[i+13],21,1309151649),a=P(a,s,r,l,e[i+4],6,-145523070),l=P(l,a,s,r,e[i+11],10,-1120210379),r=P(r,l,a,s,e[i+2],15,718787259),s=P(s,r,l,a,e[i+9],21,-343485551),a=D(a,n),s=D(s,o),r=D(r,u),l=D(l,c)}return[a,s,r,l]}function L(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(R(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function D(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function V(e,t){return e<<t|e>>>32-t}function G(e,t,a,s,r,l){return D(V(D(D(t,e),D(s,l)),r),a)}function B(e,t,a,s,r,l,i){return G(t&a|~t&s,e,t,r,l,i)}function F(e,t,a,s,r,l,i){return G(t&s|a&~s,e,t,r,l,i)}function N(e,t,a,s,r,l,i){return G(t^a^s,e,t,r,l,i)}function P(e,t,a,s,r,l,i){return G(a^(t|~s),e,t,r,l,i)}var j=U,z=T("v3",48,j),W=z;function J(e,t,a){e=e||{};var s=e.random||(e.rng||c)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return x(s)}var q=J;function O(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function X(e,t){return e<<t|e>>>32-t}function Y(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,i=Math.ceil(l/16),n=new Array(i),o=0;o<i;++o){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*o+4*c]<<24|e[64*o+4*c+1]<<16|e[64*o+4*c+2]<<8|e[64*o+4*c+3];n[o]=u}n[i-1][14]=8*(e.length-1)/Math.pow(2,32),n[i-1][14]=Math.floor(n[i-1][14]),n[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var m=new Uint32Array(80),f=0;f<16;++f)m[f]=n[d][f];for(var v=16;v<80;++v)m[v]=X(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);for(var p=a[0],g=a[1],b=a[2],y=a[3],x=a[4],h=0;h<80;++h){var k=Math.floor(h/20),w=X(p,5)+O(k,g,b,y)+x+t[k]+m[h]>>>0;x=y,y=b,b=X(g,30)>>>0,g=p,p=w}a[0]=a[0]+p>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+b>>>0,a[3]=a[3]+y>>>0,a[4]=a[4]+x>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var H=Y,K=T("v5",80,H),Q=K,$={v1:_,v3:W,v4:q,v5:Q};var ee=a(1548),te=a(568),ae=a(9955),se=a(8200),re=(0,i.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:n.b0D,ErrorMessage:se.Z},setup(){const e=(0,i.ref)(localStorage.getItem("linkedTaskId")),t=(0,i.ref)($.v1()),a=(0,i.ref)(localStorage.getItem("programId")),s=(0,i.ref)(localStorage.getItem("programName")),r=(0,i.ref)(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=(0,i.ref)(localStorage.getItem("proficiencyId")),n=(0,i.ref)(localStorage.getItem("skillName")),u=(0,i.ref)(localStorage.getItem("proficiencyName")),c=(0,i.ref)(localStorage.getItem("taskName")),d=(0,i.ref)(localStorage.getItem("taskType")),m=(0,i.ref)(null),f=(0,i.ref)(),v=(0,i.ref)(),p=(0,i.ref)(),g=(0,i.ref)(!0),b=(0,i.ref)(),y=(0,i.ref)(0),x=(0,i.ref)(!1),h=(0,i.ref)(),k=(0,i.ref)(!1),w=(0,i.ref)(),_=(0,i.ref)(!1),C=async()=>{y.value+=1,console.log(`before ${v.value}`),v.value=null,console.log(`after ${v.value}`)},S=e=>{const t=e.target.checked;!0===t?(g.value=!1,console.log(g.value)):(g.value=!0,console.log(g.value))},A=async e=>{try{m.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(f.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),x.value=!0,o.Z.isAxiosError(t)){const e=t;h.value=e.response?.data?.message}else h.value="Something went wrong, please contact helpmate.";_.value=!0}},I=async()=>{try{if(x.value=!1,v.value){let s;if("Desktop"===d.value){const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:v.value},n=await(0,te.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),o=n.data;p.value=o.preSignedUrl;const u=await(0,te.sc)(p.value,m.value);200===u.status?s=await(0,ae.sw)("/offcycle/create",i):(x.value=!0,h.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:v.value};s=await(0,ae.sw)("/offcycle/create",i)}200===s.status?(x.value=!0,w.value=s.data.message,k.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(x.value=!0,h.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(x.value=!0,v.value||(f.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{f.value=null}),6e3))):"Desktop"===d.value&&(x.value=!0,console.log(`learnerSubmission.value ${v.value}`),v.value||(f.value="please select File",setTimeout((()=>{f.value=null}),6e3)))}catch(s){if(x.value=!0,console.log(`error ${s}`),o.Z.isAxiosError(s)){const e=s;h.value=e.response?.data?.message}else h.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return(0,i.onBeforeMount)((async()=>{x.value=!0})),{learnerSubmissionFile:m,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:c,submitSubmiision:I,learnerSubmission:v,selectedFile:A,fileValidationMsg:f,learnerTaskId:t,preSignedUrl:p,buttonDisable:g,setButtonEnable:S,validationError:b,clearFile:C,fileInputKey:y,renderReady:x,errorResponse:h,showErrorMessage:_,programName:s,skill:n,profName:u,showSuccessMessage:k,resMessage:w}}}),le=re,ie=a(3736),ne=(0,ie.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ne.exports},3440:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(8200),c=(0,l.defineComponent)({name:"UpdateSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const t={learner_task_id:a.value,learner_submission:u.value,taskType:s.value};if("Desktop"===s.value){const s=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(3736),f=(0,m.Z)(d,s,r,!1,null,"08c23a5d",null),v=f.exports},8778:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(8200),c=(0,l.defineComponent)({name:"UploadSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const r={learner_task_id:a.value,learner_submission:u.value,taskType:s.value,linkedTaskId:t.value};if("Desktop"===s.value){const t=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),s=t.data;d.value=s.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(3736),f=(0,m.Z)(d,s,r,!1,null,"7548bb12",null),v=f.exports},9955:function(e,t,a){a.d(t,{Yg:function(){return l},sw:function(){return r}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a}},8451:function(e,t,a){a.d(t,{Lu:function(){return r},O6:function(){return n},QZ:function(){return u},R2:function(){return o},X5:function(){return i},oE:function(){return l}});var s=a(7129);const r=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},n=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},u=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t}},568:function(e,t,a){a.d(t,{ie:function(){return n},rC:function(){return o},sc:function(){return l},ux:function(){return r},yW:function(){return i}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},i=async e=>{const t=await s.Z.get(`/task/${e}`);return t},n=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+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.SolidifyAdministrationCreateOffCyele.js.map
|