@genpact/genome.mfe.solidify-app 1.22.0 → 1.23.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/index.html +1 -1
- 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.map +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.map +1 -1
- package/dist/js/SolidifyAdministrationNeedReviewerReport.js +1 -1
- package/dist/js/SolidifyAdministrationNeedReviewerReport.js.map +1 -1
- package/dist/js/SolidifyAdministrationOffcycleDashboard.js +2 -0
- package/dist/js/SolidifyAdministrationOffcycleDashboard.js.map +1 -0
- package/dist/js/SolidifyAdministrationOperationalDetails.js +1 -1
- package/dist/js/SolidifyAdministrationOperationalDetails.js.map +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.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.map +1 -1
- package/dist/js/SolidifyAdministrationViewProxyRequests.js +1 -1
- package/dist/js/SolidifyAdministrationViewProxyRequests.js.map +1 -1
- package/dist/js/SolidifyAdministrationViewRereviewRequests.js.map +1 -1
- package/dist/js/SolidifyAdministrationharvestReport.js.map +1 -1
- package/dist/js/SolidifyAdministrationsendEmailToUser.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/SolidifyLearnerError.js.map +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.map +1 -1
- package/dist/js/SolidifyLearnerSubmitTask.js +1 -1
- package/dist/js/SolidifyLearnerSubmitTask.js.map +1 -1
- package/dist/js/SystemUnderMaintenance.js.map +1 -1
- package/dist/js/app.js +4 -4
- package/dist/js/app.js.map +1 -1
- package/dist/js/chunk-2241a8bc.js +2 -0
- package/dist/js/chunk-2241a8bc.js.map +1 -0
- package/package.json +1 -1
- package/dist/js/chunk-4194880a.js +0 -2
- package/dist/js/chunk-4194880a.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationAssignProxy"],{"0323":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"0418":function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("cad9")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"0978":function(e,t,r){var n=r("5a82");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("c69b").default;a("e174cd5c",n,!0,{sourceMap:!1,shadowMode:!1})},"112f":function(e,t,r){"use strict";var n=r("7de8").version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};function s(e,t,r){if("object"!==typeof e)throw new TypeError("options must be an object");var n=Object.keys(e),a=n.length;while(a-- >0){var o=n[a],s=t[o];if(s){var i=e[o],c=void 0===i||s(i,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}}a.transitional=function(e,t,r){function a(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(a(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:s,validators:a}},"122c":function(e,t,r){"use strict";var n=r("8a5d");e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},1464:function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},1501:function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"1dba":function(e,t,r){e.exports=r("46c8")},"26fa":function(e,t,r){"use strict";var n=r("1dba"),a=r.n(n);function o({$http:e}){const t=localStorage.getItem("accessToken");t?e.defaults.headers.common.Authorization="Bearer "+t:delete e.defaults.headers.common.Authorization}var s=({$http:e})=>{o({$http:e}),e.interceptors.request.use(t=>(o({$http:e}),t),e=>Promise.reject(e)),e.interceptors.response.use(e=>e,e=>{if(console.log("inside interceptor"),console.warn(e.message,{...e}),!e||!e.response||!e.response.config)return Promise.reject(e);if(e.response&&e.response.config&&"newRelic"===e.response.config.requestName)return Promise.reject(e);try{console.log("error.response.status "+e.response.status),(e.response&&401===e.response.status||e.response&&403===e.response.status)&&(alert("Oops! Your session expired. Please log in again!"),window.location.reload())}catch(t){try{console.warn(t,{...t}),console.warn(JSON.stringify({...t}))}catch(r){console.warn(r)}alert("Generic error")}return Promise.reject(e)})};let i="poc";const{host:c}=window.location;console.log(" solidify "+c),"dev.genome.genpact.com"===c?i="dev":"uat.genome.genpact.com"===c?i="uat":"genome-eda-rel.azurewebsites.net"===c?i="prod":c.includes("localhost")&&(i="local");let u="";u="local"===i?"http://localhost:3000/local/genome-solidify-api-svc":`https://api-router.azurefd.net/${i}/aws/api/genome/solidify`,console.log(" solidify "+u),a.a.defaults.baseURL=u,a.a.defaults.headers.common["x-oauth-config-provider"]="cognito-aps1",s({$http:a.a});t["a"]=a.a},2998:function(e,t,r){"use strict";var n=r("8a5d");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,a,o,s){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),n.isString(a)&&i.push("path="+a),n.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},3212:function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"f",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"i",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"g",(function(){return l})),r.d(t,"h",(function(){return f})),r.d(t,"d",(function(){return d}));var n=r("26fa");const a=async e=>{let t;return await n["a"].get(e).then(e=>(console.log("Response",e),t=e.data.response.program_name,t)),t},o=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},s=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},i=async e=>{let t;try{return await n["a"].get("/task/"+e).then(e=>(t=e.data.data,t)),t}catch(r){return r}},c=async(e,t)=>{try{const r=await fetch(""+e,{method:"put",body:t}),n=r;return n}catch(r){return console.error(r),r}},u=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},l=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},f=async e=>{console.log("inside save task data "+JSON.stringify(e));const t=await n["a"].post("/task/create",e);return t},d=async e=>{try{let t;return await n["a"].get("/admin/task/taskExport/"+e).then(async e=>(t=e.data,t)),t}catch(t){return t}}},"386e":function(e,t,r){"use strict";var n=r("8a5d");e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},3884:function(e,t,r){"use strict";var n=r("8a5d");function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(a(t)+"="+a(e))})))})),o=s.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"46c8":function(e,t,r){"use strict";var n=r("8a5d"),a=r("1464"),o=r("6c7d"),s=r("76b7"),i=r("cc3a");function c(e){var t=new o(e),r=a(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r.create=function(t){return c(s(e,t))},r}var u=c(i);u.Axios=o,u.Cancel=r("82ac"),u.CancelToken=r("823a"),u.isCancel=r("0323"),u.VERSION=r("7de8").version,u.all=function(e){return Promise.all(e)},u.spread=r("c279"),u.isAxiosError=r("122c"),e.exports=u,e.exports.default=u},"4af6":function(e,t,r){"use strict";var n=r("8a5d"),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(s[t]&&a.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},"59c5":function(e,t,r){"use strict";r("0978")},"5a82":function(e,t,r){var n=r("a8d8");t=n(!1),t.push([e.i,".pageLoader[data-v-3e42982e]{position:fixed;top:30%;left:42%}.tableScroll[data-v-3e42982e]{max-height:50vh;overflow-y:auto}",""]),e.exports=t},"5cd4":function(e,t,r){"use strict";var n=r("8a5d"),a=r("cc3a");e.exports=function(e,t,r){var o=this||a;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},"5df9":function(e,t,r){"use strict";var n=r("8a5d");function a(){this.handlers=[]}a.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},6136:function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6235:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return i}));var n=r("26fa");const a=async(e,t)=>{const r=await n["a"].post(e,t);return r},o=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},s=async(e,t)=>{let r;return await n["a"].get(`${e}/${t}`).then(e=>(r=e.data.allProxyList,r)),r},i=async(e,t)=>{const r=await n["a"].post(e,t);return r}},"639e":function(e,t,r){"use strict";var n=r("6136"),a=r("1501");e.exports=function(e,t){return e&&!n(t)?a(e,t):t}},"6c7d":function(e,t,r){"use strict";var n=r("8a5d"),a=r("3884"),o=r("5df9"),s=r("93f9"),i=r("76b7"),c=r("112f"),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){if("string"===typeof e?(t=t||{},t.url=e):t=e||{},!t.url)throw new Error("Provided config url is not valid");t=i(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!a){var f=[s,void 0];Array.prototype.unshift.apply(f,n),f=f.concat(l),o=Promise.resolve(t);while(f.length)o=o.then(f.shift(),f.shift());return o}var d=t;while(n.length){var p=n.shift(),h=n.shift();try{d=p(d)}catch(g){h(g);break}}try{o=s(d)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=i(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(i(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(i(n||{},{method:e,url:t,data:r}))}})),e.exports=l},"76b7":function(e,t,r){"use strict";var n=r("8a5d");e.exports=function(e,t){t=t||{};var r={};function a(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:a(void 0,e[r]):a(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return a(void 0,t[e])}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:a(void 0,e[r]):a(void 0,t[r])}function c(r){return r in t?a(e[r],t[r]):r in e?a(void 0,e[r]):void 0}var u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,a=t(e);n.isUndefined(a)&&t!==c||(r[e]=a)})),r}},7750:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Select Program ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedProgram(t)}}},[t("option",[e._v("Select Program")]),e._l(e.programDetails,(function(r){return t("option",{key:r.program_id,domProps:{value:r.program_id}},[e._v(e._s(r.program_display_name?r.program_display_name:r.program_name))])}))],2),e.programErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.programErrorMessage))]):e._e()]),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedSkill(t)}}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(r){return t("option",{key:r.skill_id,domProps:{value:r.skill_id}},[e._v(e._s(r.skill_alias))])}))],2),e.skillErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.skillErrorMessage))]):e._e()]):e._e(),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedProficiency(t)}}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(r){return t("option",{key:r.prof_id,domProps:{value:r.prof_id}},[e._v(e._s(r.prof_name))])}))],2),e.proficiencyError?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proficiencyError))]):e._e()]):e._e(),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.getLearnerForProxy()}}},[e._v("Search Learner")])])]),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.showProxy()}}},[e._v("View available Proxy")])])]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(r){return t("tr",{key:r.id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:r.learner_task_id},domProps:{value:r.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,r.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(t){var n=e.selectedTaskId,a=t.target,o=!!a.checked;if(Array.isArray(n)){var s=r.learner_task_id,i=e._i(n,s);a.checked?i<0&&(e.selectedTaskId=n.concat([s])):i>-1&&(e.selectedTaskId=n.slice(0,i).concat(n.slice(i+1)))}else e.selectedTaskId=o},function(t){return e.setProxyBtn(t)}]}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.submission_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(2),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.proxyList,(function(r){return t("tr",{key:r.proxy_ohr,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:r.proxy_ohr},domProps:{value:r.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,r.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var n=e.selectedProxyOhr,a=t.target,o=!!a.checked;if(Array.isArray(n)){var s=r.proxy_ohr,i=e._i(n,s);a.checked?i<0&&(e.selectedProxyOhr=n.concat([s])):i>-1&&(e.selectedProxyOhr=n.slice(0,i).concat(n.slice(i+1)))}else e.selectedProxyOhr=o},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_email))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_role))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(r.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:r("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},a=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Assign Proxy")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("ID - Learner Activities")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Reviewer Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task Submission Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],o=r("78d0"),s=r("bb03"),i=r.n(s),c=r("8596"),u=r("6235"),l=r("3212"),f=r("7856"),d=Object(o["b"])({name:"AssignProxy",setup(){const e=Object(o["f"])(),t=Object(o["f"])(),r=Object(o["f"])(),n=Object(o["f"])(),a=Object(o["f"])(),s=Object(o["f"])(),d=Object(o["f"])(!1),p=Object(o["f"])(!1),h=Object(o["f"])(),g=Object(o["f"])([]),y=Object(o["f"])(),v=Object(o["f"])(!1),m=Object(o["f"])(),b=Object(o["f"])(),x=Object(o["f"])(!0),w=Object(o["f"])(!1),_=Object(o["f"])(),k=Object(o["f"])(),C=Object(o["f"])(),P=Object(o["f"])(),O=()=>{y.value=[]},j=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",g.value),p.value=!0):0===g.value.length&&(p.value=!1,d.value=!1)},S={},A=async()=>{n.value=!1,b.value=await Object(l["e"])("/cache?cache=program"),n.value=!0},E=async()=>{n.value=!1;const e=await Object(u["d"])("/getAllSkillProf?skill_type=genome");t.value=e.skill,r.value=e.proficiency,n.value=!0},T=async()=>{try{if(!_.value)return k.value="Please Select Program",void setTimeout(()=>{k.value=null},6e3);if("infinity"===_.value){if(!a.value)return C.value="Please Select Skill",void setTimeout(()=>{C.value=null},6e3);if(!s.value)return P.value="Please Select Proficiency",void setTimeout(()=>{P.value=null},6e3)}n.value=!1,await O(),g.value=[],p.value=!1;const t=await Object(u["c"])("/learnerTaskToProxyAssign",S),r=t.data;if(e.value=r.learnerToProxyAssign,e.value){for(let t=0;t<e.value.length;t+=1){const r=e.value[t],n=i()().utc().format("YYYY-MM-DD");if(r.proxy_requested_date){const e=i()(r.proxy_requested_date).utc().format("YYYY-MM-DD");r.ageing=i()(n).diff(i()(e),"days"),r.proxy_requested_date=i()(r.proxy_requested_date).format("DD-MM-YYYY")}r.submission_date&&(r.submission_date=i()(r.submission_date).format("DD-MM-YYYY"))}e.value=e.value.sort((e,t)=>t.ageing-e.ageing)}d.value=!1,console.log("Learner Data",e.value),n.value=!0}catch(t){console.log(t)}},R=async e=>{_.value=e.target.value,Object.assign(S,{program_id:_.value}),"Select Program"!==_.value&&("infinity"===_.value?w.value=!0:(a.value="",w.value=!1))},N=async e=>{a.value=e.target.value,Object.assign(S,{skill:a.value})},L=async e=>{s.value=e.target.value,Object.assign(S,{proficiency:s.value})},B=async()=>{d.value=!0,n.value=!1;let e="/v2/admin/proxy/program/"+_.value;if(!_.value)return k.value="Please Select Program",void setTimeout(()=>{k.value=null},6e3);if("infinity"===_.value&&(e="/v2/admin/proxy/program/infinity/skill/"+a.value,!a.value))return C.value="Please Select Skill",void setTimeout(()=>{C.value=null},6e3);const t=await Object(f["d"])(e);h.value=t.all_proxies,console.log("Proxy Data",h.value),n.value=!0,console.log("Proxy List",h.value)},D=async e=>{const t=e.target.checked;v.value=!0===t},U=async()=>{try{n.value=!1;const e={proxy_key:y.value[0],learners:g.value,linked_program_name:_.value,skill:a.value,proficiency:s.value};console.log("Selected Data",e);const t=await Object(u["a"])("/proxyreview",e);d.value=!1,await T(),n.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}};return Object(o["c"])(async()=>{const e=await Object(c["g"])("/getUserRole");m.value=e.user_roles,m.value.length>0&&(console.log("inside length"),m.value.includes("System Admin")||m.value.includes("Proxy Admin")||m.value.includes("Community Manager")?(x.value=!0,await E(),await A()):x.value=!1)}),{learnerData:e,skills:t,proficiency:r,renderReady:n,getSelectedSkill:N,getSelectedProficiency:L,isVisible:d,showProxy:B,getSkillandProf:E,getLearnerForProxy:T,selectedTaskId:g,proxyButtonVisible:p,setProxyBtn:j,proxyList:h,selectedProxyOhr:y,checkOne:O,showAssignProxyBtn:D,proxyAssignedBtn:v,assignLearnerToProxy:U,showScreen:x,programDetails:b,showSkillProf:w,getSelectedProgram:R,programErrorMessage:k,skillErrorMessage:C,proficiencyError:P}}}),p=d,h=(r("59c5"),r("bce8")),g=Object(h["a"])(p,n,a,!1,null,"3e42982e",null);t["default"]=g.exports},7856:function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return c}));var n=r("26fa");const a=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},o=async e=>{const t=await n["a"].get(e);return t.data},s=async(e,t)=>{const r=await n["a"].post(e,t);return r.data},i=async(e,t)=>{const r=await n["a"].post(e,t);return r.data.resp_message},c=async(e,t)=>{const r=await n["a"].post(e,t);return r.data.resp_message}},"7de8":function(e,t){e.exports={version:"0.25.0"}},"7f31":function(e,t,r){"use strict";var n=r("8a5d");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(t){var r=n.isString(t)?a(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},"823a":function(e,t,r){"use strict";var n=r("82ac");function a(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e,t=new a((function(t){e=t}));return{token:t,cancel:e}},e.exports=a},"82ac":function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},8596:function(e,t,r){"use strict";r.d(t,"y",(function(){return a})),r.d(t,"t",(function(){return o})),r.d(t,"u",(function(){return s})),r.d(t,"e",(function(){return i})),r.d(t,"x",(function(){return c})),r.d(t,"z",(function(){return u})),r.d(t,"r",(function(){return l})),r.d(t,"s",(function(){return f})),r.d(t,"f",(function(){return d})),r.d(t,"v",(function(){return p})),r.d(t,"h",(function(){return h})),r.d(t,"j",(function(){return g})),r.d(t,"q",(function(){return y})),r.d(t,"o",(function(){return v})),r.d(t,"p",(function(){return m})),r.d(t,"m",(function(){return b})),r.d(t,"k",(function(){return x})),r.d(t,"l",(function(){return w})),r.d(t,"A",(function(){return _})),r.d(t,"C",(function(){return k})),r.d(t,"w",(function(){return C})),r.d(t,"n",(function(){return P})),r.d(t,"i",(function(){return O})),r.d(t,"g",(function(){return j})),r.d(t,"a",(function(){return S})),r.d(t,"B",(function(){return A})),r.d(t,"b",(function(){return E})),r.d(t,"d",(function(){return T})),r.d(t,"c",(function(){return R}));var n=r("26fa");const a=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},o=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},s=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},i=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},c=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},u=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},l=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},f=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},d=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},p=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},h=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},g=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},y=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},v=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},m=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},b=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},x=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},w=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},_=async e=>{const t=await n["a"].get(e);return t},k=async e=>{const t=await n["a"].get(e);return t},C=async e=>{const t=await n["a"].get(e);return t},P=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},O=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},j=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},S=async e=>{const t=await n["a"].post("/user/role",e);return t},A=async e=>{const t=await n["a"].post("/user/removeRole",e);return t},E=async()=>{const e=await n["a"].get("role");return e},T=async e=>{const t=await n["a"].post("/user/saveLSS",e);return t},R=async e=>{const t=await n["a"].post("/user/saveEnvAccess",e);return t}},"8a5d":function(e,t,r){"use strict";var n=r("1464"),a=Object.prototype.toString;function o(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}function i(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===a.call(e)}function u(e){return"[object FormData]"===a.call(e)}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function h(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===a.call(e)}function y(e){return"[object File]"===a.call(e)}function v(e){return"[object Blob]"===a.call(e)}function m(e){return"[object Function]"===a.call(e)}function b(e){return p(e)&&m(e.pipe)}function x(e){return"[object URLSearchParams]"===a.call(e)}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function C(){var e={};function t(t,r){h(e[r])&&h(t)?e[r]=C(e[r],t):h(t)?e[r]=C({},t):o(t)?e[r]=t.slice():e[r]=t}for(var r=0,n=arguments.length;r<n;r++)k(arguments[r],t);return e}function P(e,t,r){return k(t,(function(t,a){e[a]=r&&"function"===typeof t?n(t,r):t})),e}function O(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:c,isBuffer:i,isFormData:u,isArrayBufferView:l,isString:f,isNumber:d,isObject:p,isPlainObject:h,isUndefined:s,isDate:g,isFile:y,isBlob:v,isFunction:m,isStream:b,isURLSearchParams:x,isStandardBrowserEnv:_,forEach:k,merge:C,extend:P,trim:w,stripBOM:O}},"93f9":function(e,t,r){"use strict";var n=r("8a5d"),a=r("5cd4"),o=r("0323"),s=r("cc3a"),i=r("82ac");function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return c(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"9d04":function(e,t,r){e.exports=r.p+"img/loadernew.gif"},a417:function(e,t,r){"use strict";e.exports=function(e,t,r,n,a){return e.config=t,r&&(e.code=r),e.request=n,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},aa01:function(e,t,r){"use strict";var n=r("fccd");e.exports=function(e,t,r){var a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},c279:function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},cad9:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){r=t+1;break}}else-1===n&&(a=!1,n=t+1);return-1===n?"":e.slice(r,n)}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,n="/"===s.charAt(0))}return t=r(a(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),s="/"===o(e,-1);return e=r(a(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&s&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var a=n(e.split("/")),o=n(r.split("/")),s=Math.min(a.length,o.length),i=s,c=0;c<s;c++)if(a[c]!==o[c]){i=c;break}var u=[];for(c=i;c<a.length;c++)u.push("..");return u=u.concat(o.slice(i)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!a){n=o;break}}else a=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var i=e.charCodeAt(s);if(47!==i)-1===n&&(a=!1,n=s+1),46===i?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!a){r=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("0418"))},cc3a:function(e,t,r){"use strict";(function(t){var n=r("8a5d"),a=r("386e"),o=r("a417"),s={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=r("e50c")),e}function u(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(r||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(i(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||a&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(s){if("SyntaxError"===i.name)throw o(i,this,"E_JSON_PARSE");throw i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(s)})),e.exports=l}).call(this,r("0418"))},e50c:function(e,t,r){"use strict";var n=r("8a5d"),a=r("aa01"),o=r("2998"),s=r("3884"),i=r("639e"),c=r("4af6"),u=r("7f31"),l=r("fccd"),f=r("cc3a"),d=r("82ac");e.exports=function(e){return new Promise((function(t,r){var p,h=e.data,g=e.headers,y=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(h)&&delete g["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+x)}var w=i(e.baseURL,e.url);function _(){if(m){var n="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,o=y&&"text"!==y&&"json"!==y?m.response:m.responseText,s={data:o,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};a((function(e){t(e),v()}),(function(e){r(e),v()}),s),m=null}}if(m.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=_:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(_)},m.onabort=function(){m&&(r(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){r(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||u(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(g[e.xsrfHeaderName]=k)}"setRequestHeader"in m&&n.forEach(g,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete g[t]:m.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),y&&"json"!==y&&(m.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){m&&(r(!e||e&&e.type?new d("canceled"):e),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),m.send(h)}))}},fccd:function(e,t,r){"use strict";var n=r("a417");e.exports=function(e,t,r,a,o){var s=new Error(e);return n(s,t,r,a,o)}}}]);
|
|
1
|
+
(window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationAssignProxy"],{"0323":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"0418":function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("cad9")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"112f":function(e,t,r){"use strict";var n=r("7de8").version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};function s(e,t,r){if("object"!==typeof e)throw new TypeError("options must be an object");var n=Object.keys(e),a=n.length;while(a-- >0){var o=n[a],s=t[o];if(s){var i=e[o],c=void 0===i||s(i,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}}a.transitional=function(e,t,r){function a(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(a(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:s,validators:a}},"122c":function(e,t,r){"use strict";var n=r("8a5d");e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},1464:function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},1501:function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"1dba":function(e,t,r){e.exports=r("46c8")},"26fa":function(e,t,r){"use strict";var n=r("1dba"),a=r.n(n);function o({$http:e}){const t=localStorage.getItem("accessToken");t?e.defaults.headers.common.Authorization="Bearer "+t:delete e.defaults.headers.common.Authorization}var s=({$http:e})=>{o({$http:e}),e.interceptors.request.use(t=>(o({$http:e}),t),e=>Promise.reject(e)),e.interceptors.response.use(e=>e,e=>{if(console.log("inside interceptor"),console.warn(e.message,{...e}),!e||!e.response||!e.response.config)return Promise.reject(e);if(e.response&&e.response.config&&"newRelic"===e.response.config.requestName)return Promise.reject(e);try{console.log("error.response.status "+e.response.status),(e.response&&401===e.response.status||e.response&&403===e.response.status)&&(alert("Oops! Your session expired. Please log in again!"),window.location.reload())}catch(t){try{console.warn(t,{...t}),console.warn(JSON.stringify({...t}))}catch(r){console.warn(r)}alert("Generic error")}return Promise.reject(e)})};let i="poc";const{host:c}=window.location;console.log(" solidify "+c),"dev.genome.genpact.com"===c?i="dev":"uat.genome.genpact.com"===c?i="uat":"genome-eda-rel.azurewebsites.net"===c?i="prod":c.includes("localhost")&&(i="local");let u="";u="local"===i?"http://localhost:3000/local/genome-solidify-api-svc":`https://api-router.azurefd.net/${i}/aws/api/genome/solidify`,console.log(" solidify "+u),a.a.defaults.baseURL=u,a.a.defaults.headers.common["x-oauth-config-provider"]="cognito-aps1",s({$http:a.a});t["a"]=a.a},2998:function(e,t,r){"use strict";var n=r("8a5d");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,a,o,s){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),n.isString(a)&&i.push("path="+a),n.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},3212:function(e,t,r){"use strict";r.d(t,"f",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"a",(function(){return s})),r.d(t,"d",(function(){return i})),r.d(t,"j",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"k",(function(){return l})),r.d(t,"c",(function(){return f})),r.d(t,"h",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"e",(function(){return h}));var n=r("26fa");const a=async e=>{let t;return await n["a"].get(e).then(e=>(console.log("Response",e),t=e.data.response.program_name,t)),t},o=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},s=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.learnerDetails,r)),r},i=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},c=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data,r)),r},u=async e=>{let t;try{return await n["a"].get("/task/"+e).then(e=>(t=e.data.data,t)),t}catch(r){return r}},l=async(e,t)=>{try{const r=await fetch(""+e,{method:"put",body:t}),n=r;return n}catch(r){return console.error(r),r}},f=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},d=async(e,t)=>{let r;return await n["a"].post(e,t).then(e=>(r=e.data.tasks,r)),r},p=async e=>{console.log("inside save task data "+JSON.stringify(e));const t=await n["a"].post("/task/create",e);return t},h=async e=>{try{let t;return await n["a"].get("/admin/task/taskExport/"+e).then(async e=>(t=e.data,t)),t}catch(t){return t}}},"386e":function(e,t,r){"use strict";var n=r("8a5d");e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},3884:function(e,t,r){"use strict";var n=r("8a5d");function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(a(t)+"="+a(e))})))})),o=s.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"3cef":function(e,t,r){"use strict";r("731e")},"46c8":function(e,t,r){"use strict";var n=r("8a5d"),a=r("1464"),o=r("6c7d"),s=r("76b7"),i=r("cc3a");function c(e){var t=new o(e),r=a(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r.create=function(t){return c(s(e,t))},r}var u=c(i);u.Axios=o,u.Cancel=r("82ac"),u.CancelToken=r("823a"),u.isCancel=r("0323"),u.VERSION=r("7de8").version,u.all=function(e){return Promise.all(e)},u.spread=r("c279"),u.isAxiosError=r("122c"),e.exports=u,e.exports.default=u},"4af6":function(e,t,r){"use strict";var n=r("8a5d"),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(s[t]&&a.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},"5cd4":function(e,t,r){"use strict";var n=r("8a5d"),a=r("cc3a");e.exports=function(e,t,r){var o=this||a;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},"5df9":function(e,t,r){"use strict";var n=r("8a5d");function a(){this.handlers=[]}a.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},6136:function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6235:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return i}));var n=r("26fa");const a=async(e,t)=>{const r=await n["a"].post(e,t);return r},o=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},s=async(e,t)=>{let r;return await n["a"].get(`${e}/${t}`).then(e=>(r=e.data.allProxyList,r)),r},i=async(e,t)=>{const r=await n["a"].post(e,t);return r}},"639e":function(e,t,r){"use strict";var n=r("6136"),a=r("1501");e.exports=function(e,t){return e&&!n(t)?a(e,t):t}},"6c7d":function(e,t,r){"use strict";var n=r("8a5d"),a=r("3884"),o=r("5df9"),s=r("93f9"),i=r("76b7"),c=r("112f"),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){if("string"===typeof e?(t=t||{},t.url=e):t=e||{},!t.url)throw new Error("Provided config url is not valid");t=i(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!a){var f=[s,void 0];Array.prototype.unshift.apply(f,n),f=f.concat(l),o=Promise.resolve(t);while(f.length)o=o.then(f.shift(),f.shift());return o}var d=t;while(n.length){var p=n.shift(),h=n.shift();try{d=p(d)}catch(g){h(g);break}}try{o=s(d)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=i(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(i(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(i(n||{},{method:e,url:t,data:r}))}})),e.exports=l},"731e":function(e,t,r){var n=r("7465");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("c69b").default;a("3da3e199",n,!0,{sourceMap:!1,shadowMode:!1})},7465:function(e,t,r){var n=r("a8d8");t=n(!1),t.push([e.i,".pageLoader[data-v-c65c6044]{position:fixed;top:30%;left:42%}.tableScroll[data-v-c65c6044]{max-height:50vh;overflow-y:auto}",""]),e.exports=t},"76b7":function(e,t,r){"use strict";var n=r("8a5d");e.exports=function(e,t){t=t||{};var r={};function a(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:a(void 0,e[r]):a(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return a(void 0,t[e])}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:a(void 0,e[r]):a(void 0,t[r])}function c(r){return r in t?a(e[r],t[r]):r in e?a(void 0,e[r]):void 0}var u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,a=t(e);n.isUndefined(a)&&t!==c||(r[e]=a)})),r}},7750:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Select Program ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedProgram(t)}}},[t("option",[e._v("Select Program")]),e._l(e.programDetails,(function(r){return t("option",{key:r.program_id,domProps:{value:r.program_id}},[e._v(e._s(r.program_display_name?r.program_display_name:r.program_name))])}))],2),e.programErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.programErrorMessage))]):e._e()]),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedSkill(t)}}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(r){return t("option",{key:r.skill_id,domProps:{value:r.skill_id}},[e._v(e._s(r.skill_alias))])}))],2),e.skillErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.skillErrorMessage))]):e._e()]):e._e(),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedProficiency(t)}}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(r){return t("option",{key:r.prof_id,domProps:{value:r.prof_id}},[e._v(e._s(r.prof_name))])}))],2),e.proficiencyError?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proficiencyError))]):e._e()]):e._e(),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.getLearnerForProxy()}}},[e._v("Search Learner")])])]),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.showProxy()}}},[e._v("View available Proxy")])])]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(r){return t("tr",{key:r.id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:r.learner_task_id},domProps:{value:r.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,r.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(t){var n=e.selectedTaskId,a=t.target,o=!!a.checked;if(Array.isArray(n)){var s=r.learner_task_id,i=e._i(n,s);a.checked?i<0&&(e.selectedTaskId=n.concat([s])):i>-1&&(e.selectedTaskId=n.slice(0,i).concat(n.slice(i+1)))}else e.selectedTaskId=o},function(t){return e.setProxyBtn(t)}]}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.submission_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyList?t("div",{staticClass:"w-full flex mt-6"},[t("SearchBar",{attrs:{data:e.proxyDetailsArray,placeholder:"Search By Proxy Name"},on:{Filtered:e.getFilteredList}})],1):e._e(),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(2),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredproxyDetails,(function(r,n){return t("tr",{key:n,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:r.proxy_ohr},domProps:{value:r.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,r.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var n=e.selectedProxyOhr,a=t.target,o=!!a.checked;if(Array.isArray(n)){var s=r.proxy_ohr,i=e._i(n,s);a.checked?i<0&&(e.selectedProxyOhr=n.concat([s])):i>-1&&(e.selectedProxyOhr=n.slice(0,i).concat(n.slice(i+1)))}else e.selectedProxyOhr=o},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_email))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(r.proxy_role))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(r.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:r("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},a=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Assign Proxy")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("ID - Learner Activities")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Reviewer Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task Submission Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],o=r("78d0"),s=r("bb03"),i=r.n(s),c=r("8596"),u=r("6235"),l=r("3212"),f=r("7856"),d=r("faec"),p=Object(o["b"])({name:"AssignProxy",components:{SearchBar:d["a"]},setup(){const e=Object(o["f"])(),t=Object(o["f"])(),r=Object(o["f"])(),n=Object(o["f"])(),a=Object(o["f"])(),s=Object(o["f"])(),d=Object(o["f"])(!1),p=Object(o["f"])(!1),h=Object(o["f"])(),g=Object(o["f"])([]),y=Object(o["f"])(),v=Object(o["f"])(!1),m=Object(o["f"])(),b=Object(o["f"])(),x=Object(o["f"])(!0),w=Object(o["f"])(!1),_=Object(o["f"])(),k=Object(o["f"])(),C=Object(o["f"])(),P=Object(o["f"])(),O=Object(o["f"])(),j=Object(o["f"])(),S=()=>{y.value=[]},A=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",g.value),p.value=!0):0===g.value.length&&(p.value=!1,d.value=!1)},E={},T=async()=>{n.value=!1,b.value=await Object(l["f"])("/cache?cache=program"),n.value=!0},N=async()=>{n.value=!1;const e=await Object(u["d"])("/getAllSkillProf?skill_type=genome");t.value=e.skill,r.value=e.proficiency,n.value=!0},R=async()=>{try{if(!_.value)return k.value="Please Select Program",void setTimeout(()=>{k.value=null},6e3);if("infinity"===_.value){if(!a.value)return C.value="Please Select Skill",void setTimeout(()=>{C.value=null},6e3);if(!s.value)return P.value="Please Select Proficiency",void setTimeout(()=>{P.value=null},6e3)}n.value=!1,await S(),g.value=[],p.value=!1;const t=await Object(u["c"])("/learnerTaskToProxyAssign",E),r=t.data;if(e.value=r.learnerToProxyAssign,e.value){for(let t=0;t<e.value.length;t+=1){const r=e.value[t],n=i()().utc().format("YYYY-MM-DD");if(r.proxy_requested_date){const e=i()(r.proxy_requested_date).utc().format("YYYY-MM-DD");r.ageing=i()(n).diff(i()(e),"days"),r.proxy_requested_date=i()(r.proxy_requested_date).format("DD-MM-YYYY")}r.submission_date&&(r.submission_date=i()(r.submission_date).format("DD-MM-YYYY"))}e.value=e.value.sort((e,t)=>t.ageing-e.ageing)}d.value=!1,console.log("Learner Data",e.value),n.value=!0}catch(t){console.log(t)}},D=async e=>{_.value=e.target.value,Object.assign(E,{program_id:_.value}),"Select Program"!==_.value&&("infinity"===_.value?w.value=!0:(a.value="",w.value=!1))},L=async e=>{a.value=e.target.value,Object.assign(E,{skill:a.value})},B=async e=>{s.value=e.target.value,Object.assign(E,{proficiency:s.value})},U=async()=>{d.value=!0,n.value=!1;let e="/v2/admin/proxy/program/"+_.value;if(!_.value)return k.value="Please Select Program",void setTimeout(()=>{k.value=null},6e3);if("infinity"===_.value&&(e="/v2/admin/proxy/program/infinity/skill/"+a.value,!a.value))return C.value="Please Select Skill",void setTimeout(()=>{C.value=null},6e3);const t=await Object(f["d"])(e);h.value=t.all_proxies,O.value=h.value.map(e=>e.proxy_name),j.value=h.value,console.log("Proxy Data",h.value),n.value=!0,console.log("Proxy List",h.value)},q=e=>{j.value=h.value.filter(t=>e.includes(t.proxy_name)),console.log("filteredproxyDetails",j.value)},M=async e=>{const t=e.target.checked;v.value=!0===t},I=async()=>{try{n.value=!1;const e={proxy_key:y.value[0],learners:g.value,linked_program_name:_.value,skill:a.value,proficiency:s.value};console.log("Selected Data",e);const t=await Object(u["a"])("/proxyreview",e);d.value=!1,await R(),n.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}};return Object(o["c"])(async()=>{const e=await Object(c["g"])("/getUserRole");m.value=e.user_roles,m.value.length>0&&(console.log("inside length"),m.value.includes("System Admin")||m.value.includes("Proxy Admin")||m.value.includes("Community Manager")?(x.value=!0,await N(),await T()):x.value=!1)}),{learnerData:e,skills:t,proficiency:r,renderReady:n,getSelectedSkill:L,getSelectedProficiency:B,isVisible:d,showProxy:U,getSkillandProf:N,getLearnerForProxy:R,selectedTaskId:g,proxyButtonVisible:p,setProxyBtn:A,proxyList:h,selectedProxyOhr:y,checkOne:S,showAssignProxyBtn:M,proxyAssignedBtn:v,assignLearnerToProxy:I,showScreen:x,programDetails:b,showSkillProf:w,getSelectedProgram:D,programErrorMessage:k,skillErrorMessage:C,proficiencyError:P,proxyDetailsArray:O,getFilteredList:q,filteredproxyDetails:j}}}),h=p,g=(r("3cef"),r("bce8")),y=Object(g["a"])(h,n,a,!1,null,"c65c6044",null);t["default"]=y.exports},7856:function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return c}));var n=r("26fa");const a=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},o=async e=>{const t=await n["a"].get(e);return t.data},s=async(e,t)=>{const r=await n["a"].post(e,t);return r.data},i=async(e,t)=>{const r=await n["a"].post(e,t);return r.data.resp_message},c=async(e,t)=>{const r=await n["a"].post(e,t);return r.data.resp_message}},"7de8":function(e,t){e.exports={version:"0.25.0"}},"7f31":function(e,t,r){"use strict";var n=r("8a5d");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(t){var r=n.isString(t)?a(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},"823a":function(e,t,r){"use strict";var n=r("82ac");function a(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},a.source=function(){var e,t=new a((function(t){e=t}));return{token:t,cancel:e}},e.exports=a},"82ac":function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},8596:function(e,t,r){"use strict";r.d(t,"y",(function(){return a})),r.d(t,"t",(function(){return o})),r.d(t,"u",(function(){return s})),r.d(t,"e",(function(){return i})),r.d(t,"x",(function(){return c})),r.d(t,"z",(function(){return u})),r.d(t,"r",(function(){return l})),r.d(t,"s",(function(){return f})),r.d(t,"f",(function(){return d})),r.d(t,"v",(function(){return p})),r.d(t,"h",(function(){return h})),r.d(t,"j",(function(){return g})),r.d(t,"q",(function(){return y})),r.d(t,"o",(function(){return v})),r.d(t,"p",(function(){return m})),r.d(t,"m",(function(){return b})),r.d(t,"k",(function(){return x})),r.d(t,"l",(function(){return w})),r.d(t,"A",(function(){return _})),r.d(t,"C",(function(){return k})),r.d(t,"w",(function(){return C})),r.d(t,"n",(function(){return P})),r.d(t,"i",(function(){return O})),r.d(t,"g",(function(){return j})),r.d(t,"a",(function(){return S})),r.d(t,"B",(function(){return A})),r.d(t,"b",(function(){return E})),r.d(t,"d",(function(){return T})),r.d(t,"c",(function(){return N}));var n=r("26fa");const a=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},o=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},s=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},i=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},c=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},u=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},l=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},f=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},d=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},p=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},h=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},g=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},y=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},v=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},m=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},b=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},x=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},w=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},_=async e=>{const t=await n["a"].get(e);return t},k=async e=>{const t=await n["a"].get(e);return t},C=async e=>{const t=await n["a"].get(e);return t},P=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},O=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,t)),t},j=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},S=async e=>{const t=await n["a"].post("/user/role",e);return t},A=async e=>{const t=await n["a"].post("/user/removeRole",e);return t},E=async()=>{const e=await n["a"].get("role");return e},T=async e=>{const t=await n["a"].post("/user/saveLSS",e);return t},N=async e=>{const t=await n["a"].post("/user/saveEnvAccess",e);return t}},"8a5d":function(e,t,r){"use strict";var n=r("1464"),a=Object.prototype.toString;function o(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}function i(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===a.call(e)}function u(e){return"[object FormData]"===a.call(e)}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function h(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===a.call(e)}function y(e){return"[object File]"===a.call(e)}function v(e){return"[object Blob]"===a.call(e)}function m(e){return"[object Function]"===a.call(e)}function b(e){return p(e)&&m(e.pipe)}function x(e){return"[object URLSearchParams]"===a.call(e)}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function C(){var e={};function t(t,r){h(e[r])&&h(t)?e[r]=C(e[r],t):h(t)?e[r]=C({},t):o(t)?e[r]=t.slice():e[r]=t}for(var r=0,n=arguments.length;r<n;r++)k(arguments[r],t);return e}function P(e,t,r){return k(t,(function(t,a){e[a]=r&&"function"===typeof t?n(t,r):t})),e}function O(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:c,isBuffer:i,isFormData:u,isArrayBufferView:l,isString:f,isNumber:d,isObject:p,isPlainObject:h,isUndefined:s,isDate:g,isFile:y,isBlob:v,isFunction:m,isStream:b,isURLSearchParams:x,isStandardBrowserEnv:_,forEach:k,merge:C,extend:P,trim:w,stripBOM:O}},"93f9":function(e,t,r){"use strict";var n=r("8a5d"),a=r("5cd4"),o=r("0323"),s=r("cc3a"),i=r("82ac");function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return c(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"9d04":function(e,t,r){e.exports=r.p+"img/loadernew.gif"},a417:function(e,t,r){"use strict";e.exports=function(e,t,r,n,a){return e.config=t,r&&(e.code=r),e.request=n,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},aa01:function(e,t,r){"use strict";var n=r("fccd");e.exports=function(e,t,r){var a=r.config.validateStatus;r.status&&a&&!a(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},c279:function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},cad9:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){r=t+1;break}}else-1===n&&(a=!1,n=t+1);return-1===n?"":e.slice(r,n)}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,n="/"===s.charAt(0))}return t=r(a(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),s="/"===o(e,-1);return e=r(a(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&s&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var a=n(e.split("/")),o=n(r.split("/")),s=Math.min(a.length,o.length),i=s,c=0;c<s;c++)if(a[c]!==o[c]){i=c;break}var u=[];for(c=i;c<a.length;c++)u.push("..");return u=u.concat(o.slice(i)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!a){n=o;break}}else a=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var i=e.charCodeAt(s);if(47!==i)-1===n&&(a=!1,n=s+1),46===i?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!a){r=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("0418"))},cc3a:function(e,t,r){"use strict";(function(t){var n=r("8a5d"),a=r("386e"),o=r("a417"),s={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=r("e50c")),e}function u(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(r||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(i(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||a&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(s){if("SyntaxError"===i.name)throw o(i,this,"E_JSON_PARSE");throw i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(s)})),e.exports=l}).call(this,r("0418"))},e50c:function(e,t,r){"use strict";var n=r("8a5d"),a=r("aa01"),o=r("2998"),s=r("3884"),i=r("639e"),c=r("4af6"),u=r("7f31"),l=r("fccd"),f=r("cc3a"),d=r("82ac");e.exports=function(e){return new Promise((function(t,r){var p,h=e.data,g=e.headers,y=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(h)&&delete g["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+x)}var w=i(e.baseURL,e.url);function _(){if(m){var n="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,o=y&&"text"!==y&&"json"!==y?m.response:m.responseText,s={data:o,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};a((function(e){t(e),v()}),(function(e){r(e),v()}),s),m=null}}if(m.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=_:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(_)},m.onabort=function(){m&&(r(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){r(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||u(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(g[e.xsrfHeaderName]=k)}"setRequestHeader"in m&&n.forEach(g,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete g[t]:m.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),y&&"json"!==y&&(m.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){m&&(r(!e||e&&e.type?new d("canceled"):e),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),m.send(h)}))}},faec:function(e,t,r){"use strict";var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex mt-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"appearance-none border rounded py-2 px-14 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text",placeholder:e.placeHolder1},domProps:{value:e.search},on:{keyup:function(t){e.filterProgramDetails(),e.$emit("Filtered",e.filteredProgramDetails)},input:function(t){t.target.composing||(e.search=t.target.value)}}})])},a=[],o=r("78d0"),s=Object(o["b"])({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=Object(o["f"])(""),r=Object(o["f"])(),n=Object(o["f"])(),a=Object(o["f"])(),s=()=>{a.value=e.data,n.value=a.value.filter(e=>e.toLowerCase().includes(t.value.toLowerCase()))};return Object(o["c"])(async()=>{r.value=e.placeholder,console.log("props.placeholder",e.placeholder)}),{placeHolder1:r,filteredProgramDetails:n,filterProgramDetails:s,search:t}}}),i=s,c=r("bce8"),u=Object(c["a"])(i,n,a,!1,null,null,null);t["a"]=u.exports},fccd:function(e,t,r){"use strict";var n=r("a417");e.exports=function(e,t,r,a,o){var s=new Error(e);return n(s,t,r,a,o)}}}]);
|
|
2
2
|
//# sourceMappingURL=SolidifyAdministrationAssignProxy.js.map
|