@genpact/genome.mfe.solidify-app 1.17.2-alpha.126 → 1.17.2-alpha.129
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/index.html +1 -4
- 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/SolidifyAdministration.js +1 -1
- package/dist/js/SolidifyAdministration.js.map +1 -1
- package/dist/js/SolidifyAdministrationAssignProxy.js +1 -1
- package/dist/js/SolidifyAdministrationAssignProxy.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/SolidifyAdministrationLearnerEvents.js +1 -1
- package/dist/js/SolidifyAdministrationLearnerEvents.js.map +1 -1
- package/dist/js/SolidifyAdministrationLearnerGrades.js +1 -1
- package/dist/js/SolidifyAdministrationLearnerGrades.js.map +1 -1
- package/dist/js/SolidifyAdministrationManageProxy.js +1 -1
- package/dist/js/SolidifyAdministrationManageProxy.js.map +1 -1
- package/dist/js/SolidifyAdministrationMasterAdministration.js +1 -1
- package/dist/js/SolidifyAdministrationMasterAdministration.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/SolidifyAdministrationPlagiarsimReport.js +1 -1
- package/dist/js/SolidifyAdministrationPlagiarsimReport.js.map +1 -1
- package/dist/js/SolidifyAdministrationProgramAdministration.js +1 -1
- package/dist/js/SolidifyAdministrationProgramAdministration.js.map +1 -1
- package/dist/js/SolidifyAdministrationProgramDetails.js +1 -1
- package/dist/js/SolidifyAdministrationProgramDetails.js.map +1 -1
- package/dist/js/SolidifyAdministrationSystemSetting.js +1 -1
- package/dist/js/SolidifyAdministrationSystemSetting.js.map +1 -1
- package/dist/js/SolidifyAdministrationTaskDetails.js +2 -2
- package/dist/js/SolidifyAdministrationTaskDetails.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/SolidifyAdministrationViewEmailQueue.js +1 -1
- package/dist/js/SolidifyAdministrationViewEmailQueue.js.map +1 -1
- package/dist/js/SolidifyAdministrationViewProxyRequests.js +1 -1
- package/dist/js/SolidifyAdministrationViewProxyRequests.js.map +1 -1
- package/dist/js/SolidifyAdministrationViewRereviewRequests.js +1 -1
- package/dist/js/SolidifyAdministrationViewRereviewRequests.js.map +1 -1
- package/dist/js/SolidifyAdministrationharvestReport.js +1 -1
- package/dist/js/SolidifyAdministrationharvestReport.js.map +1 -1
- package/dist/js/SolidifyAdministrationsendEmailToUser.js +1 -1
- package/dist/js/SolidifyAdministrationsendEmailToUser.js.map +1 -1
- package/dist/js/SolidifyLearner.js +3 -3
- 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/SolidifyLearnerError.js +1 -1
- package/dist/js/SolidifyLearnerError.js.map +1 -1
- package/dist/js/SolidifyLearnerGating.js +1 -1
- package/dist/js/SolidifyLearnerGating.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/SolidifyLearnerStatus.js +1 -1
- package/dist/js/SolidifyLearnerStatus.js.map +1 -1
- package/dist/js/SolidifyLearnerSubmitTask.js +1 -1
- package/dist/js/SolidifyLearnerSubmitTask.js.map +1 -1
- package/dist/js/SystemUnderMaintenance.js +1 -1
- package/dist/js/SystemUnderMaintenance.js.map +1 -1
- package/dist/js/app.js +143 -143
- package/dist/js/app.js.map +1 -1
- package/dist/js/chunk-c84d4944.js +2 -0
- package/dist/js/chunk-c84d4944.js.map +1 -0
- package/package.json +1 -1
- package/dist/js/chunk-570a2604.js +0 -2
- package/dist/js/chunk-570a2604.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
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]}}}]);
|
|
1
|
+
(window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationCreateOffCyele"],{2390:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"flex"},[s("div",{staticClass:"w-full pt-16 px-32"},[s("div",{staticClass:"md:px-0 lg:px-0 text-center"},[s("div",{staticClass:"text-gray-500"},[s("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),s("div",{staticClass:"pt-8"},[s("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[s("img",{staticClass:"mx-auto",attrs:{src:a("a884")}})])])])])])},r=[],l=a("c1ec"),o=Object(l["b"])({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=Object(l["f"])(""),a=Object(l["f"])(localStorage.getItem("helpmateLink"));return Object(l["c"])(async()=>{t.value=e.errorMessage}),{errorMsg:t,helpmateLink:a}}}),i=o,n=a("dcde"),c=Object(n["a"])(i,s,r,!1,null,null,null);t["a"]=c.exports},"32b3":function(e,t,a){"use strict";a("b08d")},4945:function(e,t,a){"use strict";a.d(t,"d",(function(){return r})),a.d(t,"f",(function(){return l})),a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"e",(function(){return c}));var s=a("26fa");const r=async(e,t)=>{let a;return await s["b"].post(e,t).then(e=>(a=e.data,a)),a},l=async(e,t)=>{const a=await s["b"].post(e,t);return a},o=async(e,t)=>{const a=await s["b"].post(e,t);return a},i=async e=>{let t;return await s["b"].get(e).then(e=>(t=e.data,t)),t},n=async(e,t)=>{let a;return await s["b"].post(e,t).then(e=>(a=e.data,a)),a},c=async e=>{let t;return await s["b"].get(e).then(e=>(t=e.data,t)),t}},"675e":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return n}));var s=a("26fa");const r=async(e,t)=>{const a=await s["b"].post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(""+e,{method:"put",body:t});return a=s,a},o=async e=>{const t=await s["b"].get("/task/"+e);return t},i=async(e,t)=>{const a=await s["b"].post(e,{learner_task_id:t});return a},n=async(e,t)=>{const a=await s["b"].post(e,t);return a}},7430:function(e,t,a){"use strict";a("e778")},"7c0b":function(e,t,a){var s=a("aff5");t=s(!1),t.push([e.i,'.ul-nav ul[data-v-39cc4cfa]{display:flex;width:100%}.ul-nav ul li.active[data-v-39cc4cfa]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-39cc4cfa]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-39cc4cfa]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-39cc4cfa]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-39cc4cfa]{padding-left:20px!important}.box-overflow1[data-v-39cc4cfa]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-39cc4cfa]{overflow-x:scroll}.box-overflow1[data-v-39cc4cfa]{max-height:none;overflow-y:auto}.ul-nav li[data-v-39cc4cfa]:first-child,.ul-nav li[data-v-39cc4cfa]:nth-child(2){display:none}}',""]),e.exports=t},"7f15":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return l}));var s=a("26fa");const r=async(e,t)=>{const a=await s["b"].post(e,t);return a},l=async(e,t)=>{const a=await s["b"].post(e,t);return a}},8270:function(e,t,a){var s=a("c524");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("c69b").default;r("18f1d709",s,!0,{sourceMap:!1,shadowMode:!1})},9265:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"admin"},[s("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[s("div",{staticClass:"flex"},[s("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?s("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),s("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[s("div",{staticClass:"block mt-4"},[s("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?s("div",{staticClass:"mt-4"},[s("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),s("div",{staticClass:"flex"},[s("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?s("div",{staticClass:"pt-12"},[s("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?s("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),s("div",{staticClass:"block text-center pt-12"},[s("div",{staticClass:"pt-4"}),s("div",{staticClass:"mb-4 text-center"},[s("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")]),s("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?s("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():s("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[s("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),s("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[a("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a("c1ec"),o=a("1dba"),i=a.n(o),n=a("4945"),c=a("675e"),u=a("2390"),d=Object(l["b"])({name:"UploadSubmission",components:{ErrorMessage:u["a"]},props:{query:{type:Object,default:()=>({})}},setup(e){const t=Object(l["f"])(e.query.linked_task_id);console.log("Task ID",t.value);const a=Object(l["f"])(e.query.learner_task_id),s=Object(l["f"])(),r=Object(l["f"])(),o=Object(l["f"])(),u=Object(l["f"])(null),d=Object(l["f"])(),f=Object(l["f"])(!0),v=Object(l["f"])(),p=Object(l["f"])(0),m=Object(l["f"])(!1),b=Object(l["f"])(),g=Object(l["f"])(!1),x=Object(l["f"])(),h=Object(l["f"])(!1),y=async e=>{try{u.value=e.target.files[0],o.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),m.value=!0,i.a.isAxiosError(a)){var t;const e=a;b.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else b.value="Something went wrong, please contact helpmate.";h.value=!0}},w=async()=>{try{if(m.value=!1,o.value){let e;const t={learner_task_id:a.value,learner_submission:o.value,taskType:s.value};if("Desktop"===s.value){const s=await Object(c["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:o.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await Object(c["e"])(d.value,u.value);200===l.status?e=await Object(n["f"])("/uploadLearnerSubmissionFromAdmin",t):(m.value=!0,b.value="There is issue in the file upload, please contact with helpmate.",h.value=!0)}else e=await Object(n["f"])("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(m.value=!0,x.value=e.data.message,g.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3)):(m.value=!0,b.value="There is some issue while submitting learner submission, please contact with helpmate.",h.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3))}else"Mobile"===s.value?(m.value=!0,o.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{r.value=null},6e3))):"Desktop"===s.value&&(m.value=!0,console.log("learnerSubmission.value "+o.value),o.value||(r.value="please select File",setTimeout(()=>{r.value=null},6e3)))}catch(t){if(m.value=!0,console.log("error "+t),i.a.isAxiosError(t)){var e;const a=t;b.value=null===(e=a.response)||void 0===e?void 0:e.data.message}else b.value="There is some issue while submitting learner submission, please contact with helpmate.";h.value=!0}},k=async()=>{m.value=!1;const e=await Object(c["b"])(t.value);console.log("task data "+JSON.stringify(e));const a=e.data.data;a?s.value=a.task_type:(b.value="There is an issue to fetch task, please contact helpmate.",h.value=!0),m.value=!0};return Object(l["c"])(async()=>{await k()}),{taskType:s,learnerTaskId:a,renderReady:m,errorResponse:b,showErrorMessage:h,showSuccessMessage:g,resMessage:x,fileValidationMsg:r,submitSubmiision:w,learnerSubmission:o,selectedFile:y,preSignedUrl:d,buttonDisable:f,validationError:v,fileInputKey:p}}}),f=d,v=(a("32b3"),a("dcde")),p=Object(v["a"])(f,s,r,!1,null,"39cc4cfa",null);t["default"]=p.exports},"9d04":function(e,t,a){e.exports=a.p+"img/loadernew.gif"},a884:function(e,t){e.exports="data:image/png;base64,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"},adb9:function(e,t,a){"use strict";a("8270")},b08d:function(e,t,a){var s=a("7c0b");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("c69b").default;r("5dd613c2",s,!0,{sourceMap:!1,shadowMode:!1})},b0c4:function(e,t,a){var s=a("aff5");t=s(!1),t.push([e.i,'.ul-nav ul[data-v-188276e1]{display:flex;width:100%}.ul-nav ul li.active[data-v-188276e1]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-188276e1]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-188276e1]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-188276e1]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-188276e1]{padding-left:20px!important}.box-overflow1[data-v-188276e1]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-188276e1]{overflow-x:scroll}.box-overflow1[data-v-188276e1]{max-height:none;overflow-y:auto}.ul-nav li[data-v-188276e1]:first-child,.ul-nav li[data-v-188276e1]:nth-child(2){display:none}}',""]),e.exports=t},c524:function(e,t,a){var s=a("aff5");t=s(!1),t.push([e.i,'.ul-nav ul[data-v-d79b6af4]{display:flex;width:100%}.ul-nav ul li.active[data-v-d79b6af4]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-d79b6af4]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-d79b6af4]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-d79b6af4]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-d79b6af4]{padding-left:20px!important}.box-overflow1[data-v-d79b6af4]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-d79b6af4]{overflow-x:scroll}.box-overflow1[data-v-d79b6af4]{max-height:none;overflow-y:auto}.ul-nav li[data-v-d79b6af4]:first-child,.ul-nav li[data-v-d79b6af4]:nth-child(2){display:none}}',""]),e.exports=t},e778:function(e,t,a){var s=a("b0c4");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("c69b").default;r("47d7f154",s,!0,{sourceMap:!1,shadowMode:!1})},edfa:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"admin"},[s("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[s("div",{staticClass:"flex"},[s("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?s("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),s("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[s("div",{staticClass:"block mt-4"},[s("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?s("div",{staticClass:"mt-4"},[s("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),s("div",{staticClass:"flex"},[s("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?s("div",{staticClass:"pt-12"},[s("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?s("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),s("div",{staticClass:"block text-center pt-12"},[s("div",{staticClass:"pt-4"}),s("div",{staticClass:"mb-4 text-center"},[s("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")]),s("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?s("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():s("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[s("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),s("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[a("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a("c1ec"),o=a("1dba"),i=a.n(o),n=a("4945"),c=a("675e"),u=a("2390"),d=Object(l["b"])({name:"UpdateSubmission",components:{ErrorMessage:u["a"]},props:{query:{type:Object,default:()=>({})}},setup(e){const t=Object(l["f"])(e.query.linked_task_id);console.log("Task ID",t.value);const a=Object(l["f"])(e.query.learner_task_id),s=Object(l["f"])(),r=Object(l["f"])(),o=Object(l["f"])(),u=Object(l["f"])(null),d=Object(l["f"])(),f=Object(l["f"])(!0),v=Object(l["f"])(),p=Object(l["f"])(0),m=Object(l["f"])(!1),b=Object(l["f"])(),g=Object(l["f"])(!1),x=Object(l["f"])(),h=Object(l["f"])(!1),y=async e=>{try{u.value=e.target.files[0],o.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),m.value=!0,i.a.isAxiosError(a)){var t;const e=a;b.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else b.value="Something went wrong, please contact helpmate.";h.value=!0}},w=async()=>{try{if(m.value=!1,o.value){let e;const t={learner_task_id:a.value,learner_submission:o.value,taskType:s.value};if("Desktop"===s.value){const s=await Object(c["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:o.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await Object(c["e"])(d.value,u.value);200===l.status?e=await Object(n["f"])("/uploadLearnerSubmissionFromAdmin",t):(m.value=!0,b.value="There is issue in the file upload, please contact with helpmate.",h.value=!0)}else e=await Object(n["f"])("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(m.value=!0,x.value=e.data.message,g.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3)):(m.value=!0,b.value="There is some issue while submitting learner submission, please contact with helpmate.",h.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3))}else"Mobile"===s.value?(m.value=!0,o.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{r.value=null},6e3))):"Desktop"===s.value&&(m.value=!0,console.log("learnerSubmission.value "+o.value),o.value||(r.value="please select File",setTimeout(()=>{r.value=null},6e3)))}catch(t){if(m.value=!0,console.log("error "+t),i.a.isAxiosError(t)){var e;const a=t;b.value=null===(e=a.response)||void 0===e?void 0:e.data.message}else b.value="There is some issue while submitting learner submission, please contact with helpmate.";h.value=!0}},k=async()=>{m.value=!1;const e=await Object(c["b"])(t.value);console.log("task data "+JSON.stringify(e));const a=e.data.data;a?s.value=a.task_type:(b.value="There is an issue to fetch task, please contact helpmate.",h.value=!0),m.value=!0};return Object(l["c"])(async()=>{await k()}),{taskType:s,learnerTaskId:a,renderReady:m,errorResponse:b,showErrorMessage:h,showSuccessMessage:g,resMessage:x,fileValidationMsg:r,submitSubmiision:w,learnerSubmission:o,selectedFile:y,preSignedUrl:d,buttonDisable:f,validationError:v,fileInputKey:p}}}),f=d,v=(a("7430"),a("dcde")),p=Object(v["a"])(f,s,r,!1,null,"188276e1",null);t["default"]=p.exports},f568:function(e,t,a){"use strict";a.r(t);var s,r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"admin"},[s("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[s("div",{staticClass:"flex"},[s("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?s("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),s("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[s("div",{staticClass:"block mt-4"},[s("div",{staticClass:"text-gray-600"},[s("div",["infinity"===e.programId?s("p",[e._v(" Proficiency: "),s("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?s("p",{staticClass:"pt-2"},[e._v(" Skill: "),s("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?s("p",{staticClass:"pt-2"},[e._v(" Program: "),s("strong",[e._v(e._s(e.programName))])]):e._e(),s("p",{staticClass:"pt-2"},[s("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?s("div",{staticClass:"mt-4"},[e._m(1),s("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),s("div",{staticClass:"flex"},[s("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?s("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?s("div",{staticClass:"pt-12"},[s("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?s("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),s("div",{staticClass:"block text-center pt-12"},[e._m(2),s("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?s("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")]):s("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")]),s("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?s("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():s("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[s("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),s("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[a("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.$createElement,a=e._self._c||t;return a("p",{staticClass:"pt-2"},[a("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pt-4"},[a("p",{staticClass:"text-xl"},[a("em",[e._v("Please don't click the browser back button")])])])}],o=a("c1ec"),i=a("949b"),n=a("1dba"),c=a.n(n),u=new Uint8Array(16);function d(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function v(e){return"string"===typeof e&&f.test(e)}for(var p=v,m=[],b=0;b<256;++b)m.push((b+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase();if(!p(a))throw TypeError("Stringified UUID is invalid");return a}var x,h,y=g,w=0,k=0;function _(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||x,o=void 0!==e.clockseq?e.clockseq:h;if(null==l||null==o){var i=e.random||(e.rng||d)();null==l&&(l=x=[1|i[0],i[1],i[2],i[3],i[4],i[5]]),null==o&&(o=h=16383&(i[6]<<8|i[7]))}var n=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:k+1,u=n-w+(c-k)/1e4;if(u<0&&void 0===e.clockseq&&(o=o+1&16383),(u<0||n>w)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=n,k=c,h=o,n+=122192928e5;var f=(1e4*(268435455&n)+c)%4294967296;r[s++]=f>>>24&255,r[s++]=f>>>16&255,r[s++]=f>>>8&255,r[s++]=255&f;var v=n/4294967296*1e4&268435455;r[s++]=v>>>8&255,r[s++]=255&v,r[s++]=v>>>24&15|16,r[s++]=v>>>16&255,r[s++]=o>>>8|128,r[s++]=255&o;for(var p=0;p<6;++p)r[s+p]=l[p];return t||y(r)}var C=_;function S(e){if(!p(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var j=S;function O(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8",I=function(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=O(e)),"string"===typeof s&&(s=j(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(s),o.set(e,s.length),o=a(o),o[6]=15&o[6]|t,o[8]=63&o[8]|128,r){l=l||0;for(var i=0;i<16;++i)r[l+i]=o[i];return r}return y(o)}try{s.name=e}catch(r){}return s.DNS=A,s.URL=M,s};function T(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return U(R(L(e),8*e.length))}function U(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,o=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(o)}return t}function E(e){return 14+(e+64>>>9<<4)+1}function R(e,t){e[t>>5]|=128<<t%32,e[E(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,o=0;o<e.length;o+=16){var i=a,n=s,c=r,u=l;a=G(a,s,r,l,e[o],7,-680876936),l=G(l,a,s,r,e[o+1],12,-389564586),r=G(r,l,a,s,e[o+2],17,606105819),s=G(s,r,l,a,e[o+3],22,-1044525330),a=G(a,s,r,l,e[o+4],7,-176418897),l=G(l,a,s,r,e[o+5],12,1200080426),r=G(r,l,a,s,e[o+6],17,-1473231341),s=G(s,r,l,a,e[o+7],22,-45705983),a=G(a,s,r,l,e[o+8],7,1770035416),l=G(l,a,s,r,e[o+9],12,-1958414417),r=G(r,l,a,s,e[o+10],17,-42063),s=G(s,r,l,a,e[o+11],22,-1990404162),a=G(a,s,r,l,e[o+12],7,1804603682),l=G(l,a,s,r,e[o+13],12,-40341101),r=G(r,l,a,s,e[o+14],17,-1502002290),s=G(s,r,l,a,e[o+15],22,1236535329),a=F(a,s,r,l,e[o+1],5,-165796510),l=F(l,a,s,r,e[o+6],9,-1069501632),r=F(r,l,a,s,e[o+11],14,643717713),s=F(s,r,l,a,e[o],20,-373897302),a=F(a,s,r,l,e[o+5],5,-701558691),l=F(l,a,s,r,e[o+10],9,38016083),r=F(r,l,a,s,e[o+15],14,-660478335),s=F(s,r,l,a,e[o+4],20,-405537848),a=F(a,s,r,l,e[o+9],5,568446438),l=F(l,a,s,r,e[o+14],9,-1019803690),r=F(r,l,a,s,e[o+3],14,-187363961),s=F(s,r,l,a,e[o+8],20,1163531501),a=F(a,s,r,l,e[o+13],5,-1444681467),l=F(l,a,s,r,e[o+2],9,-51403784),r=F(r,l,a,s,e[o+7],14,1735328473),s=F(s,r,l,a,e[o+12],20,-1926607734),a=N(a,s,r,l,e[o+5],4,-378558),l=N(l,a,s,r,e[o+8],11,-2022574463),r=N(r,l,a,s,e[o+11],16,1839030562),s=N(s,r,l,a,e[o+14],23,-35309556),a=N(a,s,r,l,e[o+1],4,-1530992060),l=N(l,a,s,r,e[o+4],11,1272893353),r=N(r,l,a,s,e[o+7],16,-155497632),s=N(s,r,l,a,e[o+10],23,-1094730640),a=N(a,s,r,l,e[o+13],4,681279174),l=N(l,a,s,r,e[o],11,-358537222),r=N(r,l,a,s,e[o+3],16,-722521979),s=N(s,r,l,a,e[o+6],23,76029189),a=N(a,s,r,l,e[o+9],4,-640364487),l=N(l,a,s,r,e[o+12],11,-421815835),r=N(r,l,a,s,e[o+15],16,530742520),s=N(s,r,l,a,e[o+2],23,-995338651),a=J(a,s,r,l,e[o],6,-198630844),l=J(l,a,s,r,e[o+7],10,1126891415),r=J(r,l,a,s,e[o+14],15,-1416354905),s=J(s,r,l,a,e[o+5],21,-57434055),a=J(a,s,r,l,e[o+12],6,1700485571),l=J(l,a,s,r,e[o+3],10,-1894986606),r=J(r,l,a,s,e[o+10],15,-1051523),s=J(s,r,l,a,e[o+1],21,-2054922799),a=J(a,s,r,l,e[o+8],6,1873313359),l=J(l,a,s,r,e[o+15],10,-30611744),r=J(r,l,a,s,e[o+6],15,-1560198380),s=J(s,r,l,a,e[o+13],21,1309151649),a=J(a,s,r,l,e[o+4],6,-145523070),l=J(l,a,s,r,e[o+11],10,-1120210379),r=J(r,l,a,s,e[o+2],15,718787259),s=J(s,r,l,a,e[o+9],21,-343485551),a=z(a,i),s=z(s,n),r=z(r,c),l=z(l,u)}return[a,s,r,l]}function L(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(E(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function z(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function V(e,t){return e<<t|e>>>32-t}function D(e,t,a,s,r,l){return z(V(z(z(t,e),z(s,l)),r),a)}function G(e,t,a,s,r,l,o){return D(t&a|~t&s,e,t,r,l,o)}function F(e,t,a,s,r,l,o){return D(t&s|a&~s,e,t,r,l,o)}function N(e,t,a,s,r,l,o){return D(t^a^s,e,t,r,l,o)}function J(e,t,a,s,r,l,o){return D(a^(t|~s),e,t,r,l,o)}var B=T,W=I("v3",48,B),q=W;function Z(e,t,a){e=e||{};var s=e.random||(e.rng||d)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return y(s)}var P=Z;function X(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function Y(e,t){return e<<t|e>>>32-t}function H(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,o=Math.ceil(l/16),i=new Array(o),n=0;n<o;++n){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*n+4*u]<<24|e[64*n+4*u+1]<<16|e[64*n+4*u+2]<<8|e[64*n+4*u+3];i[n]=c}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<o;++d){for(var f=new Uint32Array(80),v=0;v<16;++v)f[v]=i[d][v];for(var p=16;p<80;++p)f[p]=Y(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var m=a[0],b=a[1],g=a[2],x=a[3],h=a[4],y=0;y<80;++y){var w=Math.floor(y/20),k=Y(m,5)+X(w,b,g,x)+h+t[w]+f[y]>>>0;h=x,x=g,g=Y(b,30)>>>0,b=m,m=k}a[0]=a[0]+m>>>0,a[1]=a[1]+b>>>0,a[2]=a[2]+g>>>0,a[3]=a[3]+x>>>0,a[4]=a[4]+h>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var K=H,Q=I("v5",80,K),$=Q,ee={v1:C,v3:q,v4:P,v5:$};var te=a("afbc"),ae=a("675e"),se=a("7f15"),re=a("2390"),le=Object(o["b"])({name:"LearnerSubmitTask",components:{XIcon:i["g"],ErrorMessage:re["a"]},setup(){const e=Object(o["f"])(localStorage.getItem("linkedTaskId")),t=Object(o["f"])(ee.v1()),a=Object(o["f"])(localStorage.getItem("programId")),s=Object(o["f"])(localStorage.getItem("programName")),r=Object(o["f"])(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=Object(o["f"])(localStorage.getItem("proficiencyId")),i=Object(o["f"])(localStorage.getItem("skillName")),n=Object(o["f"])(localStorage.getItem("proficiencyName")),u=Object(o["f"])(localStorage.getItem("taskName")),d=Object(o["f"])(localStorage.getItem("taskType")),f=Object(o["f"])(null),v=Object(o["f"])(),p=Object(o["f"])(),m=Object(o["f"])(),b=Object(o["f"])(!0),g=Object(o["f"])(),x=Object(o["f"])(0),h=Object(o["f"])(!1),y=Object(o["f"])(),w=Object(o["f"])(!1),k=Object(o["f"])(),_=Object(o["f"])(!1),C=async()=>{x.value+=1,console.log("before "+p.value),p.value=null,console.log("after "+p.value)},S=e=>{const t=e.target.checked;!0===t?(b.value=!1,console.log(b.value)):(b.value=!0,console.log(b.value))},j=async e=>{try{f.value=e.target.files[0],p.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(v.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),h.value=!0,c.a.isAxiosError(a)){var t;const e=a;y.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else y.value="Something went wrong, please contact helpmate.";_.value=!0}},O=async()=>{try{if(h.value=!1,p.value){let s;if("Desktop"===d.value){const o={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:p.value},i=await Object(ae["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:p.value,learner_task_id:t.value}),n=i.data;m.value=n.preSignedUrl;const c=await Object(ae["e"])(m.value,f.value);200===c.status?s=await Object(se["a"])("/offcycle/create",o):(h.value=!0,y.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const o={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:p.value};s=await Object(se["a"])("/offcycle/create",o)}200===s.status?(h.value=!0,k.value=s.data.message,w.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?te["a"].push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):te["a"].push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(h.value=!0,y.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(h.value=!0,p.value||(v.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{v.value=null},6e3))):"Desktop"===d.value&&(h.value=!0,console.log("learnerSubmission.value "+p.value),p.value||(v.value="please select File",setTimeout(()=>{v.value=null},6e3)))}catch(o){if(h.value=!0,console.log("error "+o),c.a.isAxiosError(o)){var s;const e=o;y.value=null===(s=e.response)||void 0===s?void 0:s.data.message}else y.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return Object(o["c"])(async()=>{h.value=!0}),{learnerSubmissionFile:f,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:u,submitSubmiision:O,learnerSubmission:p,selectedFile:j,fileValidationMsg:v,learnerTaskId:t,preSignedUrl:m,buttonDisable:b,setButtonEnable:S,validationError:g,clearFile:C,fileInputKey:x,renderReady:h,errorResponse:y,showErrorMessage:_,programName:s,skill:i,profName:n,showSuccessMessage:w,resMessage:k}}}),oe=le,ie=(a("adb9"),a("dcde")),ne=Object(ie["a"])(oe,r,l,!1,null,"d79b6af4",null);t["default"]=ne.exports}}]);
|
|
2
2
|
//# sourceMappingURL=SolidifyAdministrationCreateOffCyele.js.map
|