@genpact/genome.mfe.solidify-app 1.17.2-alpha.31 → 1.17.2-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/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/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/SolidifyAdministrationProgramAdministration.js +1 -1
- package/dist/js/SolidifyAdministrationProgramAdministration.js.map +1 -1
- package/dist/js/SolidifyAdministrationTaskManagement.js +1 -1
- package/dist/js/SolidifyAdministrationTaskManagement.js.map +1 -1
- package/dist/js/SolidifyAdministrationViewAllProxyRequests.js +1 -1
- package/dist/js/SolidifyAdministrationViewAllProxyRequests.js.map +1 -1
- package/dist/js/SolidifyAdministrationharvestReport.js +1 -1
- package/dist/js/SolidifyAdministrationharvestReport.js.map +1 -1
- package/dist/js/app.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationProgramAdministration"],{"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}},"11ce":function(e,t){var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var a,o,s,i,c;for(s in t)if(a=e[s],o=t[s],a&&r.test(s))if("class"===s&&("string"===typeof a&&(c=a,e[s]=a={},a[c]=!0),"string"===typeof o&&(c=o,t[s]=o={},o[c]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(i in o)a[i]=n(a[i],o[i]);else if(Array.isArray(a))e[s]=a.concat(o);else if(Array.isArray(o))e[s]=[a].concat(o);else for(i in o)a[i]=o[i];else e[s]=t[s];return e}),{})}},"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(){}}}()},"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}},"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)}},"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}},"675e":function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"d",(function(){return c}));var n=r("26fa");const a=async(e,t)=>{const r=await n["a"].post(e,t);return r},o=async(e,t)=>{let r;const n=await fetch(""+e,{method:"put",body:t});return r=n,r},s=async e=>{const t=await n["a"].get("/task/"+e);return t},i=async(e,t)=>{const r=await n["a"].post(e,{learner_task_id:t});return r},c=async(e,t)=>{const r=await n["a"].post(e,t);return r}},"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},7069:function(e,t,r){var n=r("9efb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("c69b").default;a("297585c6",n,!0,{sourceMap:!1,shadowMode:!1})},"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}},"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 m})),r.d(t,"o",(function(){return v})),r.d(t,"p",(function(){return y})),r.d(t,"m",(function(){return w})),r.d(t,"k",(function(){return b})),r.d(t,"l",(function(){return x})),r.d(t,"A",(function(){return k})),r.d(t,"C",(function(){return _})),r.d(t,"w",(function(){return C})),r.d(t,"n",(function(){return O})),r.d(t,"i",(function(){return j})),r.d(t,"g",(function(){return P})),r.d(t,"a",(function(){return S})),r.d(t,"B",(function(){return A})),r.d(t,"b",(function(){return N})),r.d(t,"d",(function(){return E})),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},m=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},y=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},w=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,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},k=async e=>{const t=await n["a"].get(e);return t},_=async e=>{const t=await n["a"].get(e);return t},C=async e=>{const t=await n["a"].get(e);return 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,t)),t},P=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},N=async()=>{const e=await n["a"].get("role");return e},E=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 m(e){return"[object File]"===a.call(e)}function v(e){return"[object Blob]"===a.call(e)}function y(e){return"[object Function]"===a.call(e)}function w(e){return p(e)&&y(e.pipe)}function b(e){return"[object URLSearchParams]"===a.call(e)}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function k(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(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++)_(arguments[r],t);return e}function O(e,t,r){return _(t,(function(t,a){e[a]=r&&"function"===typeof t?n(t,r):t})),e}function j(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:m,isBlob:v,isFunction:y,isStream:w,isURLSearchParams:b,isStandardBrowserEnv:k,forEach:_,merge:C,extend:O,trim:x,stripBOM:j}},"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)}))}},"949b":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return l}));var n=r("11ce"),a=r.n(n),o={name:"ChevronDownIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-chevron-down"},t.data]),[e("polyline",{attrs:{points:"6 9 12 15 18 9"}})])}},s={name:"ChevronUpIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-chevron-up"},t.data]),[e("polyline",{attrs:{points:"18 15 12 9 6 15"}})])}},i={name:"FilterIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-filter"},t.data]),[e("polygon",{attrs:{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"}})])}},c={name:"RefreshCcwIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-refresh-ccw"},t.data]),[e("polyline",{attrs:{points:"1 4 1 10 7 10"}}),e("polyline",{attrs:{points:"23 20 23 14 17 14"}}),e("path",{attrs:{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"}})])}},u={name:"SearchIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-search"},t.data]),[e("circle",{attrs:{cx:"11",cy:"11",r:"8"}}),e("line",{attrs:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}})])}},l={name:"XIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-x"},t.data]),[e("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),e("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])}}},"9d04":function(e,t,r){e.exports=r.p+"img/loadernew.gif"},"9efb":function(e,t,r){var n=r("a8d8");t=n(!1),t.push([e.i,".pageLoader[data-v-b96fa82a]{position:fixed;top:30%;left:42%}.tableScroll[data-v-b96fa82a]{max-height:50vh;overflow-y:auto}.tableScroll1[data-v-b96fa82a]{max-height:60vh;overflow-y:auto}.modal-overlay[data-v-b96fa82a]{background-color:rgba(0,0,0,.8549019607843137)}.modal-fade-enter[data-v-b96fa82a],.modal-fade-leave-to[data-v-b96fa82a]{opacity:0}.modal-fade-enter-active[data-v-b96fa82a],.modal-fade-leave-active[data-v-b96fa82a]{transition:opacity .5s ease}",""]),e.exports=t},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"))},d47c:function(e,t,r){"use strict";r("7069")},e206:function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"g",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return l})),r.d(t,"f",(function(){return f})),r.d(t,"d",(function(){return d}));var n=r("26fa");const a=async e=>{const t=await n["a"].get("assignProxyToCohortLearner/"+e);return 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.AllGrade,t)),t},i=async(e,t)=>{try{let r;return console.log("programName "+t),await n["a"].get("/skill/edcast/"+e).then(async e=>{r=e.data;const t=document.createElement("a");return t.href=r,t.click(),URL.revokeObjectURL(t.href),r}),r}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)=>{try{const r=await fetch(""+e,{method:"put",body:t}),n=r;return n}catch(r){return console.error(r),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=>{try{let t;return await n["a"].post("/program/proxy",e).then(e=>(t=e.data,t)),t}catch(t){return t}},d=async e=>{try{let t;return await n["a"].get("/program/report/"+e).then(e=>(t=e.data,t)),t}catch(t){return t}}},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,m=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 y=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+b)}var x=i(e.baseURL,e.url);function k(){if(y){var n="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?y.response:y.responseText,s={data:o,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};a((function(e){t(e),v()}),(function(e){r(e),v()}),s),y=null}}if(y.open(e.method.toUpperCase(),s(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(k)},y.onabort=function(){y&&(r(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(l("Network Error",e,null,y)),y=null},y.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",y)),y=null},n.isStandardBrowserEnv()){var _=(e.withCredentials||u(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;_&&(g[e.xsrfHeaderName]=_)}"setRequestHeader"in y&&n.forEach(g,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(r(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),y.send(h)}))}},ee89:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.userRole?t("div",{staticClass:"admin program_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),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),t("div",{staticClass:"w-full flex mt-6"},[t("SearchBar",{attrs:{data:e.ProgramDetailsArray,placeholder:"Search By Program Name"},on:{Filtered:e.getFilteredList}})],1),t("div",{staticClass:"w-full flex mt-6"},[t("div",{staticClass:"w-full text-left"},[e.programBtnShow?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.viewProgramDetails()}}},[e._v("View Program Details")]):e._e(),e.programBtnShow?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.viewParticipant()}}},[e._v("View Participants")]):e._e(),e.edcastBtnShow?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.getEdcastUrl()}}},[e._v("Generate Ed-cast URL")]):e._e(),e.showBulkBtn?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){e.showTaskImport=!0}}},[e._v("Bulk Participant Import")]):e._e(),e.showReportBtn?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.triggerReport()}}},[e._v("Generate Participant Report")]):e._e(),e.showTriggerProxyAssignment?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.triggerProxyAssignmentForCohort()}}},[e._v("Trigger Proxy Assignment")]):e._e()])]),e.showTaskImport?t("div",{staticClass:"border border-background-secondary mt-6 p-8 w-full"},[t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}})]),e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mt-4",on:{click:e.bulkImportParticipants}},[e._v("Import")])]):e._e(),t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredProgramDetails,(function(r){return t("tr",{key:r.program_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.programCheckOne,expression:"programCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:r.program_id},domProps:{value:r.program_id,checked:Array.isArray(e.programCheckOne)?e._i(e.programCheckOne,r.program_id)>-1:e.programCheckOne},on:{change:[function(t){var n=e.programCheckOne,a=t.target,o=!!a.checked;if(Array.isArray(n)){var s=r.program_id,i=e._i(n,s);a.checked?i<0&&(e.programCheckOne=n.concat([s])):i>-1&&(e.programCheckOne=n.slice(0,i).concat(n.slice(i+1)))}else e.programCheckOne=o},function(t){return e.showProgramDetailsBtn(t,r.program_id,r.participants,r.program_name)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3 text-left"},[e._v(e._s(r.program_display_name?r.program_display_name:r.program_name))]),t("td",{staticClass:"p-2 px-3 text-left capitalize"},[e._v(e._s(r.isAcademy))]),t("td",{staticClass:"p-2 px-3 text-center"},[e._v(e._s(r.start_date))]),t("td",{staticClass:"p-2 px-3 text-center"},[e._v(e._s(r.end_date))])])})),0)])])]):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")]),[e.showParticipant?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay modal-overlay fixed top-0 bottom-0 left-0 right-0 flex justify-center"},[t("div",{staticClass:"bg-white h-3/4 modal relative text-center w-2/5 mt-5% pt-8"},[t("div",{staticClass:"justify-content"},[t("div",{staticClass:"text-xl px-3 text-left"},[e._v(e._s(e.selectedProgramName))]),t("div",{staticClass:"absolute right-2 pr-4 top-9 cursor-pointer",on:{click:function(t){return e.closeModal()}}},[t("x-icon",{attrs:{size:"1.5x"}})],1)]),t("div",{staticClass:"pt-4 tableScroll1"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4 text-over text-left"},[t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"py-2 pl-3 pr-0 w-6"},[e._v("Participant OHR")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.participantList,(function(r){return t("tr",{key:r,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[e._v(e._s(r))])])})),0)])])])])])],1):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...")])])],2):e._e()},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("Program Administration")])])},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:"py-2 pl-3 pr-0 w-6"}),t("th",{staticClass:"p-2 px-3 text-background-secondary text-left"},[e._v("Program Name")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-left"},[e._v("is Academy")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-center"},[e._v("Start Date")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-center"},[e._v("End Date")])])])}],o=r("d1ce"),s=r("949b"),i=r("bb03"),c=r.n(i),u=r("1dba"),l=r.n(u),f=r("afbc"),d=r("675e"),p=r("8596"),h=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)}}})])},g=[],m=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}}}),v=m,y=r("bce8"),w=Object(y["a"])(v,h,g,!1,null,null,null),b=w.exports,x=r("e206"),k=Object(o["b"])({name:"ProgramAdministration",components:{XIcon:s["f"],SearchBar:b},setup(){const e=Object(o["f"])(!1),t=Object(o["f"])(!1),r=Object(o["f"])(),n=Object(o["f"])(),a=Object(o["f"])(),s=Object(o["f"])(),i=Object(o["f"])([]),u=Object(o["f"])(),h=Object(o["f"])(),g=Object(o["f"])(0),m=Object(o["f"])(),v=Object(o["f"])(),y=Object(o["f"])(!1),w=Object(o["f"])(),b=Object(o["f"])(),k=Object(o["f"])(!1),_=Object(o["f"])(),C=Object(o["f"])(),O=Object(o["f"])(),j=Object(o["f"])(),P=Object(o["f"])(),S=Object(o["f"])(),A=Object(o["f"])(!1),N=Object(o["f"])(!1),E=Object(o["f"])(!1),R=Object(o["f"])(!1),T=Object(o["f"])(!1),B=Object(o["f"])(!1),z=()=>{i.value=[]},U=async()=>{g.value+=1,h.value=null,u.value=null},L=async e=>{try{const t=e.target.files[0],r=t.name,n=r.endsWith(".csv");n?(u.value=r,h.value=t):(_.value="Please Select valid file to upload, only CSV file is allowed",setTimeout(()=>{_.value=null},6e3),g.value+=1,h.value=null,u.value=null)}catch(t){console.log(t)}},D=async()=>{s.value=!1;const e=await Object(x["c"])("/program"),t=e.data;let n;n=P.value.includes("System Admin")?t:t.filter(e=>{const t=e.program_admin;return!!t&&t.includes(S.value)});const a=n.sort((e,t)=>c()(t.start_date).utc().unix()-c()(e.start_date).utc().unix());for(let r=0;r<a.length;r+=1){const e=a[r];e.start_date=c()(e.start_date).format("DD-MM-YYYY"),e.end_date=c()(e.end_date).format("DD-MM-YYYY")}r.value=a,s.value=!0},I=(e,t,r,n)=>{const a=e.target.checked;!0===a?(v.value=!0,m.value=t,w.value=r,b.value=n,P.value.includes("System Admin")&&"infinity"!==t&&(B.value=!0),(P.value.includes("Program Admin")||P.value.includes("System Admin"))&&(R.value=!0,"infinity"===m.value||"S2"===m.value?(E.value=!1,T.value=!1):(E.value=!0,T.value=!0))):(v.value=!1,R.value=!1)},M=async()=>{s.value=!1,await Object(x["a"])(m.value,b.value),s.value=!0},F=async()=>{y.value=!0},q=async()=>{y.value=!1,i.value=[],v.value=!1,await D()},J=()=>{f["a"].push({path:"programDetails",query:{program_id:m.value}})},$=async()=>{const e=c()().format("llll");s.value=!1;const t=`Program_Proxy_Admin_Participants_${m.value}_${e}.csv`;console.log("key Name",t),console.log("File Name",u.value),console.log("File",h.value);const r=await Object(d["a"])("/v1/pretAuthUrlForUpload",{folder_name:"task_import",key_name:t});console.log("presigned URL",r),j.value=r.data.preSignedUrl;const n=await Object(x["g"])(j.value,h.value);if(200===n.status){const e={program_id:m.value,file_key:"task_import/"+t},r=await Object(x["f"])(e);console.log(r),s.value=!1,C.value="Participant added",h.value=null,u.value=null,s.value=!0,setTimeout(()=>{C.value=null,N.value=!1},6e3)}},H=async()=>{s.value=!1;const e=await Object(x["d"])(m.value);O.value="The report will be emailed to you",setTimeout(()=>{O.value=null},6e3),console.log("Report Trigger Response "+e),s.value=!0},Y=async()=>{try{const e=await Object(x["e"])(m.value),t=e.data;O.value=t.message,setTimeout(()=>{O.value=null},6e3),console.log("Report Trigger Response "+JSON.stringify(t))}catch(t){if(s.value=!0,console.log("error peer review "+t),l.a.isAxiosError(t)){var e;const r=t;s.value=!0,_.value=null===(e=r.response)||void 0===e?void 0:e.data.message,setTimeout(()=>{_.value=null},2e3)}}},V=e=>{a.value=r.value.filter(t=>e.includes(t.program_name)),console.log("filteredProgramDetails",a.value)};return Object(o["c"])(async()=>{const e=await Object(p["g"])("/getUserRole");S.value=e.user_key,P.value=e.user_roles,P.value.length>0&&(P.value.includes("Program Admin")||P.value.includes("System Admin")||P.value.includes("System Admin View Access")?A.value=!0:A.value=!1,await D()),console.log("ProgramDetails.value",r.value),a.value=r.value,n.value=r.value.map(e=>e.program_name)}),{openShareModal:e,openShareModalParticipant:t,ProgramDetails:r,renderReady:s,programCheckOne:i,checkOne:z,selectedProgramId:m,showProgramDetailsBtn:I,programBtnShow:v,viewParticipant:F,showParticipant:y,participantList:w,closeModal:q,viewProgramDetails:J,selectedProgramName:b,getEdcastUrl:M,showBulkParticipantPanel:k,selectedFile:L,clearFile:U,bulkParticipantsFile:h,errorMessage:_,bulkImportParticipants:$,showScreen:A,userRole:P,loggedInUser:S,fileInputKey:g,successMessage:C,showReportBtn:E,showTaskImport:N,triggerReport:H,edcastBtnShow:R,showBulkBtn:T,reportSuccessMessage:O,triggerProxyAssignmentForCohort:Y,showTriggerProxyAssignment:B,filteredProgramDetails:a,getFilteredList:V,ProgramDetailsArray:n}}}),_=k,C=(r("d47c"),Object(y["a"])(_,n,a,!1,null,"b96fa82a",null));t["default"]=C.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)}}}]);
|
|
1
|
+
(window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationProgramAdministration"],{"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}},"11ce":function(e,t){var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var a,o,s,i,c;for(s in t)if(a=e[s],o=t[s],a&&r.test(s))if("class"===s&&("string"===typeof a&&(c=a,e[s]=a={},a[c]=!0),"string"===typeof o&&(c=o,t[s]=o={},o[c]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(i in o)a[i]=n(a[i],o[i]);else if(Array.isArray(a))e[s]=a.concat(o);else if(Array.isArray(o))e[s]=[a].concat(o);else for(i in o)a[i]=o[i];else e[s]=t[s];return e}),{})}},"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(){}}}()},"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}},3990:function(e,t,r){"use strict";r("c0de")},"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)}},"61df":function(e,t,r){var n=r("a8d8");t=n(!1),t.push([e.i,".pageLoader[data-v-f38a8056]{position:fixed;top:30%;left:42%}.tableScroll[data-v-f38a8056]{max-height:50vh;overflow-y:auto}.tableScroll1[data-v-f38a8056]{max-height:60vh;overflow-y:auto}.modal-overlay[data-v-f38a8056]{background-color:rgba(0,0,0,.8549019607843137)}.modal-fade-enter[data-v-f38a8056],.modal-fade-leave-to[data-v-f38a8056]{opacity:0}.modal-fade-enter-active[data-v-f38a8056],.modal-fade-leave-active[data-v-f38a8056]{transition:opacity .5s ease}",""]),e.exports=t},"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}},"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 m})),r.d(t,"o",(function(){return v})),r.d(t,"p",(function(){return y})),r.d(t,"m",(function(){return w})),r.d(t,"k",(function(){return b})),r.d(t,"l",(function(){return x})),r.d(t,"A",(function(){return C})),r.d(t,"C",(function(){return k})),r.d(t,"w",(function(){return O})),r.d(t,"n",(function(){return _})),r.d(t,"i",(function(){return j})),r.d(t,"g",(function(){return S})),r.d(t,"a",(function(){return P})),r.d(t,"B",(function(){return A})),r.d(t,"b",(function(){return N})),r.d(t,"d",(function(){return E})),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},m=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},y=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},w=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data,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},C=async e=>{const t=await n["a"].get(e);return t},k=async e=>{const t=await n["a"].get(e);return t},O=async e=>{const t=await n["a"].get(e);return t},_=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,t)),t},S=async e=>{let t;return await n["a"].get(e).then(e=>(t=e.data.userObj,t)),t},P=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},N=async()=>{const e=await n["a"].get("role");return e},E=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 m(e){return"[object File]"===a.call(e)}function v(e){return"[object Blob]"===a.call(e)}function y(e){return"[object Function]"===a.call(e)}function w(e){return p(e)&&y(e.pipe)}function b(e){return"[object URLSearchParams]"===a.call(e)}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){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 O(){var e={};function t(t,r){h(e[r])&&h(t)?e[r]=O(e[r],t):h(t)?e[r]=O({},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 _(e,t,r){return k(t,(function(t,a){e[a]=r&&"function"===typeof t?n(t,r):t})),e}function j(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:m,isBlob:v,isFunction:y,isStream:w,isURLSearchParams:b,isStandardBrowserEnv:C,forEach:k,merge:O,extend:_,trim:x,stripBOM:j}},"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)}))}},"949b":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return l}));var n=r("11ce"),a=r.n(n),o={name:"ChevronDownIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-chevron-down"},t.data]),[e("polyline",{attrs:{points:"6 9 12 15 18 9"}})])}},s={name:"ChevronUpIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-chevron-up"},t.data]),[e("polyline",{attrs:{points:"18 15 12 9 6 15"}})])}},i={name:"FilterIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-filter"},t.data]),[e("polygon",{attrs:{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"}})])}},c={name:"RefreshCcwIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-refresh-ccw"},t.data]),[e("polyline",{attrs:{points:"1 4 1 10 7 10"}}),e("polyline",{attrs:{points:"23 20 23 14 17 14"}}),e("path",{attrs:{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"}})])}},u={name:"SearchIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-search"},t.data]),[e("circle",{attrs:{cx:"11",cy:"11",r:"8"}}),e("line",{attrs:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}})])}},l={name:"XIcon",props:{size:{type:String,default:"24",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},functional:!0,render:function(e,t){var r="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",n=t.data.attrs||{};return n.width=n.width||r,n.height=n.height||r,t.data.attrs=n,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},class:"feather feather-x"},t.data]),[e("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),e("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])}}},"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)}},c0de:function(e,t,r){var n=r("61df");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("c69b").default;a("3013dbbb",n,!0,{sourceMap:!1,shadowMode:!1})},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"))},e206:function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"h",(function(){return l})),r.d(t,"d",(function(){return f}));var n=r("26fa");const a=async e=>{const t=await n["a"].get("assignProxyToCohortLearner/"+e);return 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.AllGrade,t)),t},i=async(e,t)=>{try{let r;return console.log("programName "+t),await n["a"].get("/skill/edcast/"+e).then(async e=>{r=e.data;const t=document.createElement("a");return t.href=r,t.click(),URL.revokeObjectURL(t.href),r}),r}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)=>{try{const r=await fetch(""+e,{method:"put",body:t}),n=r;return n}catch(r){return console.error(r),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=>{try{let t;return await n["a"].get("/program/report/"+e).then(e=>(t=e.data,t)),t}catch(t){return t}}},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,m=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 y=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+b)}var x=i(e.baseURL,e.url);function C(){if(y){var n="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?y.response:y.responseText,s={data:o,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};a((function(e){t(e),v()}),(function(e){r(e),v()}),s),y=null}}if(y.open(e.method.toUpperCase(),s(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=C:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(C)},y.onabort=function(){y&&(r(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(l("Network Error",e,null,y)),y=null},y.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",y)),y=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||u(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(g[e.xsrfHeaderName]=k)}"setRequestHeader"in y&&n.forEach(g,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(r(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),y.send(h)}))}},ee89:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.userRole?t("div",{staticClass:"admin program_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),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),t("div",{staticClass:"w-full flex mt-6"},[t("SearchBar",{attrs:{data:e.ProgramDetailsArray,placeholder:"Search By Program Name"},on:{Filtered:e.getFilteredList}})],1),t("div",{staticClass:"w-full flex mt-6"},[t("div",{staticClass:"w-full text-left"},[e.programBtnShow?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.viewProgramDetails()}}},[e._v("View Program Details")]):e._e(),e.programBtnShow?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.viewParticipant()}}},[e._v("View Participants")]):e._e(),e.edcastBtnShow?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.getEdcastUrl()}}},[e._v("Generate Ed-cast URL")]):e._e(),e.showReportBtn?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.triggerReport()}}},[e._v("Generate Participant Report")]):e._e(),e.showTriggerProxyAssignment?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.triggerProxyAssignmentForCohort()}}},[e._v("Trigger Proxy Assignment")]):e._e()])]),t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredProgramDetails,(function(r){return t("tr",{key:r.program_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.programCheckOne,expression:"programCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:r.program_id},domProps:{value:r.program_id,checked:Array.isArray(e.programCheckOne)?e._i(e.programCheckOne,r.program_id)>-1:e.programCheckOne},on:{change:[function(t){var n=e.programCheckOne,a=t.target,o=!!a.checked;if(Array.isArray(n)){var s=r.program_id,i=e._i(n,s);a.checked?i<0&&(e.programCheckOne=n.concat([s])):i>-1&&(e.programCheckOne=n.slice(0,i).concat(n.slice(i+1)))}else e.programCheckOne=o},function(t){return e.showProgramDetailsBtn(t,r.program_id,r.participants,r.program_name)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3 text-left"},[e._v(e._s(r.program_display_name?r.program_display_name:r.program_name))]),t("td",{staticClass:"p-2 px-3 text-left capitalize"},[e._v(e._s(r.isAcademy))]),t("td",{staticClass:"p-2 px-3 text-center"},[e._v(e._s(r.start_date))]),t("td",{staticClass:"p-2 px-3 text-center"},[e._v(e._s(r.end_date))])])})),0)])])]):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")]),[e.showParticipant?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay modal-overlay fixed top-0 bottom-0 left-0 right-0 flex justify-center"},[t("div",{staticClass:"bg-white h-3/4 modal relative text-center w-2/5 mt-5% pt-8"},[t("div",{staticClass:"justify-content"},[t("div",{staticClass:"text-xl px-3 text-left"},[e._v(e._s(e.selectedProgramName))]),t("div",{staticClass:"absolute right-2 pr-4 top-9 cursor-pointer",on:{click:function(t){return e.closeModal()}}},[t("x-icon",{attrs:{size:"1.5x"}})],1)]),t("div",{staticClass:"pt-4 tableScroll1"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4 text-over text-left"},[t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"py-2 pl-3 pr-0 w-6"},[e._v("Participant OHR")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.participantList,(function(r){return t("tr",{key:r,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[e._v(e._s(r))])])})),0)])])])])])],1):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...")])])],2):e._e()},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("Program Administration")])])},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:"py-2 pl-3 pr-0 w-6"}),t("th",{staticClass:"p-2 px-3 text-background-secondary text-left"},[e._v("Program Name")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-left"},[e._v("is Academy")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-center"},[e._v("Start Date")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-center"},[e._v("End Date")])])])}],o=r("d1ce"),s=r("949b"),i=r("bb03"),c=r.n(i),u=r("1dba"),l=r.n(u),f=r("afbc"),d=r("8596"),p=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)}}})])},h=[],g=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}}}),m=g,v=r("bce8"),y=Object(v["a"])(m,p,h,!1,null,null,null),w=y.exports,b=r("e206"),x=Object(o["b"])({name:"ProgramAdministration",components:{XIcon:s["f"],SearchBar:w},setup(){const e=Object(o["f"])(!1),t=Object(o["f"])(!1),r=Object(o["f"])(),n=Object(o["f"])(),a=Object(o["f"])(),s=Object(o["f"])(),i=Object(o["f"])([]),u=Object(o["f"])(),p=Object(o["f"])(),h=Object(o["f"])(0),g=Object(o["f"])(),m=Object(o["f"])(),v=Object(o["f"])(!1),y=Object(o["f"])(),w=Object(o["f"])(),x=Object(o["f"])(!1),C=Object(o["f"])(),k=Object(o["f"])(),O=Object(o["f"])(),_=Object(o["f"])(),j=Object(o["f"])(),S=Object(o["f"])(!1),P=Object(o["f"])(!1),A=Object(o["f"])(!1),N=Object(o["f"])(!1),E=Object(o["f"])(!1),R=Object(o["f"])(!1),T=()=>{i.value=[]},B=async()=>{h.value+=1,p.value=null,u.value=null},z=async e=>{try{const t=e.target.files[0],r=t.name,n=r.endsWith(".csv");n?(u.value=r,p.value=t):(C.value="Please Select valid file to upload, only CSV file is allowed",setTimeout(()=>{C.value=null},6e3),h.value+=1,p.value=null,u.value=null)}catch(t){console.log(t)}},L=async()=>{s.value=!1;const e=await Object(b["c"])("/program"),t=e.data;let n;n=_.value.includes("System Admin")?t:t.filter(e=>{const t=e.program_admin;return!!t&&t.includes(j.value)});const a=n.sort((e,t)=>c()(t.start_date).utc().unix()-c()(e.start_date).utc().unix());for(let r=0;r<a.length;r+=1){const e=a[r];e.start_date=c()(e.start_date).format("DD-MM-YYYY"),e.end_date=c()(e.end_date).format("DD-MM-YYYY")}r.value=a,s.value=!0},U=(e,t,r,n)=>{const a=e.target.checked;!0===a?(m.value=!0,g.value=t,y.value=r,w.value=n,_.value.includes("System Admin")&&"infinity"!==t&&(R.value=!0),(_.value.includes("Program Admin")||_.value.includes("System Admin"))&&(N.value=!0,"infinity"===g.value||"S2"===g.value?(A.value=!1,E.value=!1):(A.value=!0,E.value=!0))):(m.value=!1,N.value=!1)},D=async()=>{s.value=!1,await Object(b["a"])(g.value,w.value),s.value=!0},M=async()=>{v.value=!0},I=async()=>{v.value=!1,i.value=[],m.value=!1,await L()},q=()=>{f["a"].push({path:"programDetails",query:{program_id:g.value}})},F=async()=>{s.value=!1;const e=await Object(b["d"])(g.value);O.value="The report will be emailed to you",setTimeout(()=>{O.value=null},6e3),console.log("Report Trigger Response "+e),s.value=!0},J=async()=>{try{const e=await Object(b["e"])(g.value),t=e.data;O.value=t.message,setTimeout(()=>{O.value=null},6e3),console.log("Report Trigger Response "+JSON.stringify(t))}catch(t){if(s.value=!0,console.log("error peer review "+t),l.a.isAxiosError(t)){var e;const r=t;s.value=!0,C.value=null===(e=r.response)||void 0===e?void 0:e.data.message,setTimeout(()=>{C.value=null},2e3)}}},H=e=>{a.value=r.value.filter(t=>e.includes(t.program_name)),console.log("filteredProgramDetails",a.value)};return Object(o["c"])(async()=>{const e=await Object(d["g"])("/getUserRole");j.value=e.user_key,_.value=e.user_roles,_.value.length>0&&(_.value.includes("Program Admin")||_.value.includes("System Admin")||_.value.includes("System Admin View Access")?S.value=!0:S.value=!1,await L()),console.log("ProgramDetails.value",r.value),a.value=r.value,n.value=r.value.map(e=>e.program_name)}),{openShareModal:e,openShareModalParticipant:t,ProgramDetails:r,renderReady:s,programCheckOne:i,checkOne:T,selectedProgramId:g,showProgramDetailsBtn:U,programBtnShow:m,viewParticipant:M,showParticipant:v,participantList:y,closeModal:I,viewProgramDetails:q,selectedProgramName:w,getEdcastUrl:D,showBulkParticipantPanel:x,selectedFile:z,clearFile:B,bulkParticipantsFile:p,errorMessage:C,showScreen:S,userRole:_,loggedInUser:j,fileInputKey:h,successMessage:k,showReportBtn:A,showTaskImport:P,triggerReport:F,edcastBtnShow:N,showBulkBtn:E,reportSuccessMessage:O,triggerProxyAssignmentForCohort:J,showTriggerProxyAssignment:R,filteredProgramDetails:a,getFilteredList:H,ProgramDetailsArray:n}}}),C=x,k=(r("3990"),Object(v["a"])(C,n,a,!1,null,"f38a8056",null));t["default"]=k.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=SolidifyAdministrationProgramAdministration.js.map
|