@genpact/genome.mfe.solidify-app 1.38.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/LearnerRereview.js +1 -1
- package/dist/js/LearnerRereview.js.map +1 -1
- package/dist/js/SolidifyAbout.js +1 -1
- package/dist/js/SolidifyAbout.js.map +1 -1
- package/dist/js/SolidifyAdministrationAssignRoleToUser.js +1 -1
- package/dist/js/SolidifyAdministrationAssignRoleToUser.js.map +1 -1
- package/dist/js/SolidifyAdministrationCreateOffCyele.js +1 -1
- package/dist/js/SolidifyAdministrationCreateOffCyele.js.map +1 -1
- package/dist/js/SolidifyAdministrationEmailTemplateManagement.js +1 -1
- package/dist/js/SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
- package/dist/js/SolidifyAdministrationNeedReviewerReport.js +1 -1
- package/dist/js/SolidifyAdministrationNeedReviewerReport.js.map +1 -1
- package/dist/js/SolidifyAdministrationOffcycleDashboard.js +1 -1
- package/dist/js/SolidifyAdministrationOffcycleDashboard.js.map +1 -1
- package/dist/js/SolidifyAdministrationOperationalDetails.js +1 -1
- package/dist/js/SolidifyAdministrationOperationalDetails.js.map +1 -1
- package/dist/js/SolidifyAdministrationProgramAdministration.js +1 -1
- package/dist/js/SolidifyAdministrationProgramAdministration.js.map +1 -1
- package/dist/js/SolidifyAdministrationTaskManagement.js +1 -1
- package/dist/js/SolidifyAdministrationTaskManagement.js.map +1 -1
- package/dist/js/SolidifyAdministrationViewAllProxyRequests.js +1 -1
- package/dist/js/SolidifyAdministrationViewAllProxyRequests.js.map +1 -1
- package/dist/js/SolidifyLearner.js +2 -2
- package/dist/js/SolidifyLearner.js.map +1 -1
- package/dist/js/SolidifyLearnerDone.js +1 -1
- package/dist/js/SolidifyLearnerDone.js.map +1 -1
- package/dist/js/SolidifyLearnerPeerReview.js +1 -1
- package/dist/js/SolidifyLearnerPeerReview.js.map +1 -1
- package/dist/js/SolidifyLearnerProxyReview.js +1 -1
- package/dist/js/SolidifyLearnerProxyReview.js.map +1 -1
- package/dist/js/SolidifyLearnerSelectTask.js +1 -1
- package/dist/js/SolidifyLearnerSelectTask.js.map +1 -1
- package/dist/js/SolidifyLearnerSubmitTask.js +1 -1
- package/dist/js/SolidifyLearnerSubmitTask.js.map +1 -1
- package/dist/js/app.js +7 -7
- package/dist/js/app.js.map +1 -1
- 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"],{"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)||""},"123b0":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}},2390:function(e,t,a){"use strict";var r=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")}})])])])])])},n=[],o=a("6bcf"),i=Object(o["b"])({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=Object(o["f"])(""),a=Object(o["f"])(localStorage.getItem("helpmateLink"));return Object(o["c"])(async()=>{t.value=e.errorMessage}),{errorMsg:t,helpmateLink:a}}}),s=i,l=a("8619"),c=Object(l["a"])(s,r,n,!1,null,null,null);t["a"]=c.exports},"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,"d",(function(){return n})),a.d(t,"f",(function(){return o})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"e",(function(){return c}));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,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data,a)),a},c=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("123b0"),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["f"])("/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["f"])("/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}},k=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 k()}),{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"]},a884:function(e,t){e.exports="data:image/png;base64,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"},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["f"])("/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["f"])("/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}},k=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 k()}),{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,k=0;function _(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:k+1,u=l-w+(c-k)/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,k=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=_;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 A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8",I=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=A,r.URL=M,r};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 E(L(P(e),8*e.length))}function E(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 U(e){return 14+(e+64>>>9<<4)+1}function L(e,t){e[t>>5]|=128<<t%32,e[U(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=F(a,r,n,o,e[i],7,-680876936),o=F(o,a,r,n,e[i+1],12,-389564586),n=F(n,o,a,r,e[i+2],17,606105819),r=F(r,n,o,a,e[i+3],22,-1044525330),a=F(a,r,n,o,e[i+4],7,-176418897),o=F(o,a,r,n,e[i+5],12,1200080426),n=F(n,o,a,r,e[i+6],17,-1473231341),r=F(r,n,o,a,e[i+7],22,-45705983),a=F(a,r,n,o,e[i+8],7,1770035416),o=F(o,a,r,n,e[i+9],12,-1958414417),n=F(n,o,a,r,e[i+10],17,-42063),r=F(r,n,o,a,e[i+11],22,-1990404162),a=F(a,r,n,o,e[i+12],7,1804603682),o=F(o,a,r,n,e[i+13],12,-40341101),n=F(n,o,a,r,e[i+14],17,-1502002290),r=F(r,n,o,a,e[i+15],22,1236535329),a=N(a,r,n,o,e[i+1],5,-165796510),o=N(o,a,r,n,e[i+6],9,-1069501632),n=N(n,o,a,r,e[i+11],14,643717713),r=N(r,n,o,a,e[i],20,-373897302),a=N(a,r,n,o,e[i+5],5,-701558691),o=N(o,a,r,n,e[i+10],9,38016083),n=N(n,o,a,r,e[i+15],14,-660478335),r=N(r,n,o,a,e[i+4],20,-405537848),a=N(a,r,n,o,e[i+9],5,568446438),o=N(o,a,r,n,e[i+14],9,-1019803690),n=N(n,o,a,r,e[i+3],14,-187363961),r=N(r,n,o,a,e[i+8],20,1163531501),a=N(a,r,n,o,e[i+13],5,-1444681467),o=N(o,a,r,n,e[i+2],9,-51403784),n=N(n,o,a,r,e[i+7],14,1735328473),r=N(r,n,o,a,e[i+12],20,-1926607734),a=G(a,r,n,o,e[i+5],4,-378558),o=G(o,a,r,n,e[i+8],11,-2022574463),n=G(n,o,a,r,e[i+11],16,1839030562),r=G(r,n,o,a,e[i+14],23,-35309556),a=G(a,r,n,o,e[i+1],4,-1530992060),o=G(o,a,r,n,e[i+4],11,1272893353),n=G(n,o,a,r,e[i+7],16,-155497632),r=G(r,n,o,a,e[i+10],23,-1094730640),a=G(a,r,n,o,e[i+13],4,681279174),o=G(o,a,r,n,e[i],11,-358537222),n=G(n,o,a,r,e[i+3],16,-722521979),r=G(r,n,o,a,e[i+6],23,76029189),a=G(a,r,n,o,e[i+9],4,-640364487),o=G(o,a,r,n,e[i+12],11,-421815835),n=G(n,o,a,r,e[i+15],16,530742520),r=G(r,n,o,a,e[i+2],23,-995338651),a=V(a,r,n,o,e[i],6,-198630844),o=V(o,a,r,n,e[i+7],10,1126891415),n=V(n,o,a,r,e[i+14],15,-1416354905),r=V(r,n,o,a,e[i+5],21,-57434055),a=V(a,r,n,o,e[i+12],6,1700485571),o=V(o,a,r,n,e[i+3],10,-1894986606),n=V(n,o,a,r,e[i+10],15,-1051523),r=V(r,n,o,a,e[i+1],21,-2054922799),a=V(a,r,n,o,e[i+8],6,1873313359),o=V(o,a,r,n,e[i+15],10,-30611744),n=V(n,o,a,r,e[i+6],15,-1560198380),r=V(r,n,o,a,e[i+13],21,1309151649),a=V(a,r,n,o,e[i+4],6,-145523070),o=V(o,a,r,n,e[i+11],10,-1120210379),n=V(n,o,a,r,e[i+2],15,718787259),r=V(r,n,o,a,e[i+9],21,-343485551),a=R(a,s),r=R(r,l),n=R(n,c),o=R(o,u)}return[a,r,n,o]}function P(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(U(t)),r=0;r<t;r+=8)a[r>>5]|=(255&e[r/8])<<r%32;return a}function R(e,t){var a=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(a>>16);return r<<16|65535&a}function D(e,t){return e<<t|e>>>32-t}function z(e,t,a,r,n,o){return R(D(R(R(t,e),R(r,o)),n),a)}function F(e,t,a,r,n,o,i){return z(t&a|~t&r,e,t,n,o,i)}function N(e,t,a,r,n,o,i){return z(t&r|a&~r,e,t,n,o,i)}function G(e,t,a,r,n,o,i){return z(t^a^r,e,t,n,o,i)}function V(e,t,a,r,n,o,i){return z(a^(t|~r),e,t,n,o,i)}var J=T,B=I("v3",48,J),W=B;function q(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 Z=q;function X(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 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 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]=Y(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),k=Y(b,5)+X(w,m,g,x)+y+t[w]+d[h]>>>0;y=x,x=g,g=Y(m,30)>>>0,m=b,b=k}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 K=H,Q=I("v5",80,K),$=Q,ee={v1:S,v3:W,v4:Z,v5:$};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),k=Object(i["f"])(),_=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.";_.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.",_.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,k.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.",_.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.";_.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:_,programName:r,skill:s,profName:l,showSuccessMessage:w,resMessage:k}}}),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}}}]);
|
|
1
|
+
(window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationCreateOffCyele"],{"01d3":function(e,t){t.f=Object.getOwnPropertySymbols},"0454":function(e,t,a){var r=a("dfa6"),n=a("227c"),o=a("3736"),i=a("f045");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}},"06a2":function(e,t,a){var r=a("a6ed"),n=a("f864"),o=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"0e88":function(e,t,a){var r=a("d27f"),n=Math.min;e.exports=function(e){return e>0?n(r(e),9007199254740991):0}},1059:function(e,t,a){var r=a("3ffd"),n=a("b04f").f,o=a("e562"),i=a("0454"),s=a("f045"),l=a("ae23"),c=a("26bb");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)}}},"111d":function(e,t,a){var r=a("5d8e");e.exports=r({}.isPrototypeOf)},15011:function(e,t,a){var r=a("5d8e"),n=a("a59a"),o=a("7814"),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},"16b2":function(e,t,a){var r=a("a59a");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"17fa":function(e,t,a){var r=a("16b2"),n=a("a59a");e.exports=r&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"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},2251:function(e,t){e.exports=function(e){return null===e||void 0===e}},"227c":function(e,t,a){var r=a("16b2"),n=a("fab5"),o=a("17fa"),i=a("f461"),s=a("36c6"),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}},2390:function(e,t,a){"use strict";var r=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")}})])])])])])},n=[],o=a("6bcf"),i=Object(o["b"])({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=Object(o["f"])(""),a=Object(o["f"])(localStorage.getItem("helpmateLink"));return Object(o["c"])(async()=>{t.value=e.errorMessage}),{errorMsg:t,helpmateLink:a}}}),s=i,l=a("8619"),c=Object(l["a"])(s,r,n,!1,null,null,null);t["a"]=c.exports},"26bb":function(e,t,a){var r=a("a59a"),n=a("dfa6"),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},"2cb9":function(e,t,a){var r=a("0e88");e.exports=function(e){return r(e.length)}},"32b3":function(e,t,a){"use strict";a("7b6e")},"36c6":function(e,t,a){var r=a("d575"),n=a("989e");e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},3736:function(e,t,a){var r=a("5d8e"),n=a("a59a"),o=a("dfa6"),i=a("ea63"),s=a("16b2"),l=a("4a23").CONFIGURABLE,c=a("5de1"),u=a("7d69"),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")},"3bb2":function(e,t,a){var r=a("3ffd"),n=a("bd18"),o=r.document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"3ffd":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"))},"41d3":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)}},"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},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})},"47db":function(e,t,a){"use strict";var r=a("16b2"),n=a("8d6b"),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}},4945:function(e,t,a){"use strict";a.d(t,"d",(function(){return n})),a.d(t,"f",(function(){return o})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"e",(function(){return c}));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,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data,a)),a},c=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t}},"4a23":function(e,t,a){var r=a("16b2"),n=a("ea63"),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}},5113:function(e,t){var a=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw a("Maximum allowed index exceeded");return e}},"5a03":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5d8e":function(e,t,a){var r=a("8576"),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)}}},"5de1":function(e,t,a){var r=a("5d8e"),n=a("dfa6"),o=a("a407"),i=r(Function.toString);n(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),e.exports=o.inspectSource},"61ee":function(e,t,a){"use strict";var r=a("1059"),n=a("8e09"),o=a("2cb9"),i=a("47db"),s=a("5113"),l=a("a59a"),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}})},"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}},7430:function(e,t,a){"use strict";a("4455")},7814:function(e,t,a){var r=a("5d8e"),n=r({}.toString),o=r("".slice);e.exports=function(e){return o(n(e),8,-1)}},"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})},"7b7d":function(e,t,a){var r=a("e163"),n=a("85de"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=n(e))}},"7d0d":function(e,t){e.exports=!1},"7d69":function(e,t,a){var r,n,o,i=a("8735"),s=a("3ffd"),l=a("bd18"),c=a("e562"),u=a("ea63"),f=a("a407"),d=a("7b7d"),p=a("d282"),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}},"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}},"81ce":function(e,t,a){var r=a("15011"),n=a("e12a");e.exports=function(e){return r(n(e))}},"83ce":function(e,t){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},8576:function(e,t,a){var r=a("a59a");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"85de":function(e,t,a){var r=a("5d8e"),n=0,o=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+o,36)}},8735:function(e,t,a){var r=a("3ffd"),n=a("dfa6"),o=r.WeakMap;e.exports=n(o)&&/native code/.test(String(o))},"8d6b":function(e,t,a){var r=a("7814");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"8e09":function(e,t,a){var r=a("e12a"),n=Object;e.exports=function(e){return n(r(e))}},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["f"])("/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["f"])("/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}},k=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 k()}),{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},"92b4":function(e,t,a){var r=a("dfa6"),n=a("98db"),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(n(e)+" is not a function")}},"989e":function(e,t,a){var r=a("a179"),n=a("dfa6"),o=a("111d"),i=a("c147"),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))}},"98db":function(e,t){var a=String;e.exports=function(e){try{return a(e)}catch(t){return"Object"}}},"9d04":function(e,t,a){e.exports=a.p+"img/loadernew.gif"},a179:function(e,t,a){var r=a("3ffd"),n=a("dfa6"),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]}},a407:function(e,t,a){var r=a("3ffd"),n=a("f045"),o="__core-js_shared__",i=r[o]||n(o,{});e.exports=i},a59a:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},a6ed:function(e,t,a){var r=a("5d8e"),n=a("ea63"),o=a("81ce"),i=a("c008").indexOf,s=a("d282"),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}},a884:function(e,t){e.exports="data:image/png;base64,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"},aadf:function(e,t,a){var r=a("92b4"),n=a("2251");e.exports=function(e,t){var a=e[t];return n(a)?void 0:r(a)}},adb9:function(e,t,a){"use strict";a("bb77")},ae23:function(e,t,a){var r=a("ea63"),n=a("c9ea"),o=a("b04f"),i=a("227c");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))}}},b04f:function(e,t,a){var r=a("16b2"),n=a("ece8"),o=a("bee7"),i=a("5a03"),s=a("81ce"),l=a("36c6"),c=a("ea63"),u=a("fab5"),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])}},baa5:function(e,t,a){var r=a("cb93"),n=a("a59a");e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},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})},bd18:function(e,t,a){var r=a("dfa6"),n=a("c8b5"),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)}},bee7: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},c008:function(e,t,a){var r=a("81ce"),n=a("e63b"),o=a("2cb9"),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)}},c147:function(e,t,a){var r=a("baa5");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},c8b5:function(e,t){var a="object"==typeof document&&document.all,r="undefined"==typeof a&&void 0!==a;e.exports={all:a,IS_HTMLDDA:r}},c9ea:function(e,t,a){var r=a("a179"),n=a("5d8e"),o=a("06a2"),i=a("01d3"),s=a("f461"),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}},cb93:function(e,t,a){var r,n,o=a("3ffd"),i=a("83ce"),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},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},d27f:function(e,t,a){var r=a("41d3");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},d282:function(e,t){e.exports={}},d575:function(e,t,a){var r=a("ece8"),n=a("bd18"),o=a("989e"),i=a("aadf"),s=a("f684"),l=a("fd99"),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)}},dfa6:function(e,t,a){var r=a("c8b5"),n=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},e12a:function(e,t,a){var r=a("2251"),n=TypeError;e.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}},e163:function(e,t,a){var r=a("7d0d"),n=a("a407");(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},e562:function(e,t,a){var r=a("16b2"),n=a("227c"),o=a("5a03");e.exports=r?function(e,t,a){return n.f(e,t,o(1,a))}:function(e,t,a){return e[t]=a,e}},e63b:function(e,t,a){var r=a("d27f"),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)}},ea63:function(e,t,a){var r=a("5d8e"),n=a("8e09"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(n(e),t)}},ece8:function(e,t,a){var r=a("8576"),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},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["f"])("/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["f"])("/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}},k=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 k()}),{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},f045:function(e,t,a){var r=a("3ffd"),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}},f461:function(e,t,a){var r=a("bd18"),n=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(n(e)+" is not an object")}},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("61ee"),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,k=0;function _(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:k+1,u=l-w+(c-k)/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,k=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=_;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 A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8",I=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=A,r.URL=M,r};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 E(L(P(e),8*e.length))}function E(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 U(e){return 14+(e+64>>>9<<4)+1}function L(e,t){e[t>>5]|=128<<t%32,e[U(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=F(a,r,n,o,e[i],7,-680876936),o=F(o,a,r,n,e[i+1],12,-389564586),n=F(n,o,a,r,e[i+2],17,606105819),r=F(r,n,o,a,e[i+3],22,-1044525330),a=F(a,r,n,o,e[i+4],7,-176418897),o=F(o,a,r,n,e[i+5],12,1200080426),n=F(n,o,a,r,e[i+6],17,-1473231341),r=F(r,n,o,a,e[i+7],22,-45705983),a=F(a,r,n,o,e[i+8],7,1770035416),o=F(o,a,r,n,e[i+9],12,-1958414417),n=F(n,o,a,r,e[i+10],17,-42063),r=F(r,n,o,a,e[i+11],22,-1990404162),a=F(a,r,n,o,e[i+12],7,1804603682),o=F(o,a,r,n,e[i+13],12,-40341101),n=F(n,o,a,r,e[i+14],17,-1502002290),r=F(r,n,o,a,e[i+15],22,1236535329),a=N(a,r,n,o,e[i+1],5,-165796510),o=N(o,a,r,n,e[i+6],9,-1069501632),n=N(n,o,a,r,e[i+11],14,643717713),r=N(r,n,o,a,e[i],20,-373897302),a=N(a,r,n,o,e[i+5],5,-701558691),o=N(o,a,r,n,e[i+10],9,38016083),n=N(n,o,a,r,e[i+15],14,-660478335),r=N(r,n,o,a,e[i+4],20,-405537848),a=N(a,r,n,o,e[i+9],5,568446438),o=N(o,a,r,n,e[i+14],9,-1019803690),n=N(n,o,a,r,e[i+3],14,-187363961),r=N(r,n,o,a,e[i+8],20,1163531501),a=N(a,r,n,o,e[i+13],5,-1444681467),o=N(o,a,r,n,e[i+2],9,-51403784),n=N(n,o,a,r,e[i+7],14,1735328473),r=N(r,n,o,a,e[i+12],20,-1926607734),a=G(a,r,n,o,e[i+5],4,-378558),o=G(o,a,r,n,e[i+8],11,-2022574463),n=G(n,o,a,r,e[i+11],16,1839030562),r=G(r,n,o,a,e[i+14],23,-35309556),a=G(a,r,n,o,e[i+1],4,-1530992060),o=G(o,a,r,n,e[i+4],11,1272893353),n=G(n,o,a,r,e[i+7],16,-155497632),r=G(r,n,o,a,e[i+10],23,-1094730640),a=G(a,r,n,o,e[i+13],4,681279174),o=G(o,a,r,n,e[i],11,-358537222),n=G(n,o,a,r,e[i+3],16,-722521979),r=G(r,n,o,a,e[i+6],23,76029189),a=G(a,r,n,o,e[i+9],4,-640364487),o=G(o,a,r,n,e[i+12],11,-421815835),n=G(n,o,a,r,e[i+15],16,530742520),r=G(r,n,o,a,e[i+2],23,-995338651),a=V(a,r,n,o,e[i],6,-198630844),o=V(o,a,r,n,e[i+7],10,1126891415),n=V(n,o,a,r,e[i+14],15,-1416354905),r=V(r,n,o,a,e[i+5],21,-57434055),a=V(a,r,n,o,e[i+12],6,1700485571),o=V(o,a,r,n,e[i+3],10,-1894986606),n=V(n,o,a,r,e[i+10],15,-1051523),r=V(r,n,o,a,e[i+1],21,-2054922799),a=V(a,r,n,o,e[i+8],6,1873313359),o=V(o,a,r,n,e[i+15],10,-30611744),n=V(n,o,a,r,e[i+6],15,-1560198380),r=V(r,n,o,a,e[i+13],21,1309151649),a=V(a,r,n,o,e[i+4],6,-145523070),o=V(o,a,r,n,e[i+11],10,-1120210379),n=V(n,o,a,r,e[i+2],15,718787259),r=V(r,n,o,a,e[i+9],21,-343485551),a=R(a,s),r=R(r,l),n=R(n,c),o=R(o,u)}return[a,r,n,o]}function P(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(U(t)),r=0;r<t;r+=8)a[r>>5]|=(255&e[r/8])<<r%32;return a}function R(e,t){var a=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(a>>16);return r<<16|65535&a}function D(e,t){return e<<t|e>>>32-t}function z(e,t,a,r,n,o){return R(D(R(R(t,e),R(r,o)),n),a)}function F(e,t,a,r,n,o,i){return z(t&a|~t&r,e,t,n,o,i)}function N(e,t,a,r,n,o,i){return z(t&r|a&~r,e,t,n,o,i)}function G(e,t,a,r,n,o,i){return z(t^a^r,e,t,n,o,i)}function V(e,t,a,r,n,o,i){return z(a^(t|~r),e,t,n,o,i)}var J=T,B=I("v3",48,J),W=B;function q(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 Z=q;function X(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 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 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]=Y(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),k=Y(b,5)+X(w,m,g,x)+y+t[w]+d[h]>>>0;y=x,x=g,g=Y(m,30)>>>0,m=b,b=k}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 K=H,Q=I("v5",80,K),$=Q,ee={v1:S,v3:W,v4:Z,v5:$};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),k=Object(i["f"])(),_=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.";_.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.",_.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,k.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.",_.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.";_.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:_,programName:r,skill:s,profName:l,showSuccessMessage:w,resMessage:k}}}),ie=oe,se=(a("adb9"),a("8619")),le=Object(se["a"])(ie,n,o,!1,null,"d79b6af4",null);t["default"]=le.exports},f684:function(e,t,a){var r=a("ece8"),n=a("dfa6"),o=a("bd18"),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")}},f864:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},fab5:function(e,t,a){var r=a("16b2"),n=a("a59a"),o=a("3bb2");e.exports=!r&&!n((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},fd99:function(e,t,a){var r=a("3ffd"),n=a("e163"),o=a("ea63"),i=a("85de"),s=a("baa5"),l=a("c147"),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]}}}]);
|
|
2
2
|
//# sourceMappingURL=SolidifyAdministrationCreateOffCyele.js.map
|