@genpact/genome.mfe.solidify-app 1.17.2-alpha.41 → 1.17.2-alpha.43

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.
@@ -1,2 +1,2 @@
1
- (window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationManageProxy"],{"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,"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}},"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(v){h(v);break}}try{o=s(d)}catch(v){return Promise.reject(v)}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},"6e1a":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:"m-auto shadow p-5 text-background-secondary mb-4"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showErrorMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),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.showSkill?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 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.skillData,(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(),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.getAllProxyList()}}},[e._v("Search Proxy")])])]),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("button",{directives:[{name:"show",rawName:"v-show",value:e.showAddProxy,expression:"showAddProxy"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){e.showAddProxyPanel=!0,e.showImportProxy=!1}}},[e._v("Add Proxy")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showImportProxyBtn,expression:"showImportProxyBtn"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){e.showImportProxy=!0,e.showAddProxyPanel=!1}}},[e._v("Import Bulk Proxy")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteProxy,expression:"showDeleteProxy"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.DeleteProxy()}}},[e._v("Delete Proxy")])])]),e.showAddProxyPanel?t("div",{staticClass:"border border-background-secondary mt-6 mb-6 p-8 w-full"},[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(" Enter OHR ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.proxyOhr,expression:"proxyOhr"}],staticClass:"appearance-none border rounded w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:e.proxyOhr},on:{input:function(t){t.target.composing||(e.proxyOhr=t.target.value)}}}),e.proxyErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proxyErrorMessage))]):e._e()]),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 Role ")]),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.getSelectedRoles(t)}}},[t("option",[e._v("Select Role")]),t("option",{attrs:{value:"Community Manager"}},[e._v("Community Manager")]),t("option",{attrs:{value:"Knowledge Manager"}},[e._v("Knowledge Manager")]),t("option",{attrs:{value:"Guru"}},[e._v("Guru")]),t("option",{attrs:{value:"Master Guru"}},[e._v("Master Guru")])]),e.roleErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.roleErrorMessage))]):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.addProxy()}}},[e._v("Add Proxy")])])])]):e._e(),e.showImportProxy?t("div",{staticClass:"border border-background-secondary mt-6 mb-4 p-8 w-full"},[t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})]),e.proxyerrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proxyerrorMessage))]):e._e(),e.proxysuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.proxysuccessMessage))]):e._e(),t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mt-4",on:{click:e.bulkImportProxy}},[e._v("Import Proxy")])]):e._e(),e.proxyData?t("table",{staticClass:"w-full text-md bg-white rounded mb-4"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800"},e._l(e.proxyData,(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.proxyCheckOne,expression:"proxyCheckOne"}],attrs:{type:"checkbox",id:r.proxy_ohr},domProps:{value:r.proxy_ohr,checked:Array.isArray(e.proxyCheckOne)?e._i(e.proxyCheckOne,r.proxy_ohr)>-1:e.proxyCheckOne},on:{change:[function(t){var n=e.proxyCheckOne,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.proxyCheckOne=n.concat([s])):i>-1&&(e.proxyCheckOne=n.slice(0,i).concat(n.slice(i+1)))}else e.proxyCheckOne=o},function(t){return e.showDeleteBtn(t,r.proxy_ohr,r.proxy_role)}],click:e.proxycheckedOne}})]),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_ohr))]),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))])])})),0)]):e._e()])])]):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 this page")]),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...")])])])},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("Manage 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("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")]),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")])])])}],o=r("d1ce"),s=r("7856"),i=r("8596"),c=r("3212"),u=r("1dba"),l=r.n(u),f=r("675e"),d=Object(o["b"])({name:"ManageProxy",setup(){const e=Object(o["f"])(),t=Object(o["f"])(!0),r=Object(o["f"])(),n=Object(o["f"])(),a=Object(o["f"])(),u=Object(o["f"])(),d=Object(o["f"])(),p=Object(o["f"])(),h=Object(o["f"])(!0),v=Object(o["f"])(!1),g=Object(o["f"])(!1),y=Object(o["f"])(!1),m=Object(o["f"])(!1),b=Object(o["f"])([]),x=Object(o["f"])(),w=Object(o["f"])(),_=Object(o["f"])(),k=Object(o["f"])(),C=Object(o["f"])(),O=Object(o["f"])(),j=Object(o["f"])(),P=Object(o["f"])(),S=Object(o["f"])(),E=Object(o["f"])(!1),A=Object(o["f"])(!1),R=Object(o["f"])(),T=Object(o["f"])(!1),N=Object(o["f"])(!1),M=Object(o["f"])(),U=Object(o["f"])(),B=Object(o["f"])(),D=Object(o["f"])(),L=Object(o["f"])(),q=async(e,t,r)=>{const n=e.target.checked;!0===n?(k.value=t,C.value=r,g.value=!0):g.value=!1},I=async()=>{let t="/v2/admin/proxy/program/"+u.value;if(!u.value)return x.value="Please Select Program",void setTimeout(()=>{x.value=null},6e3);if("infinity"===u.value&&(t="/v2/admin/proxy/program/infinity/skill/"+a.value,!a.value||"Select Skill"===a.value))return w.value="Please Select Skill",void setTimeout(()=>{w.value=null},6e3);const r=await Object(s["d"])(t);e.value=r.all_proxies,console.log("Proxy Data",e.value)},F=()=>{b.value=[]},J=async()=>{t.value=!1;try{const e={proxy_ohr:k.value,proxy_skill:a.value,program_id:u.value,proxy_role:C.value};console.log("Data for Delete",e);const r=await Object(s["b"])("/v2/admin/proxy/delete",e);S.value=r,console.log(r),t.value=!0,A.value=!0,setTimeout(()=>{A.value=!1},2e3),await I()}catch(n){if(l.a.isAxiosError(n)){var e,r;const a=n;console.log(null===(e=a.response)||void 0===e?void 0:e.data),t.value=!0,S.value=null===(r=a.response)||void 0===r?void 0:r.data.message,console.log("errorMessage.value "+R.value),E.value=!0,setTimeout(()=>{E.value=!1},2e3)}}},z=async()=>{try{if(!_.value)return j.value="Please Enter OHR",void setTimeout(()=>{j.value=null},6e3);if("Select Role"===P.value||void 0===P.value)return O.value="Please Enter Roles",void setTimeout(()=>{O.value=null},6e3);t.value=!1;const e={proxy_skill:a.value,program_id:u.value,proxy_role:P.value,proxy_ohr:_.value},r=await Object(s["a"])("/v2/admin/proxy",e);S.value=r,t.value=!0,A.value=!0,setTimeout(()=>{A.value=!1,y.value=!1,P.value=null,_.value=null},2e3),await I()}catch(n){if(l.a.isAxiosError(n)){var e,r;const a=n;console.log(null===(e=a.response)||void 0===e?void 0:e.data),t.value=!0,S.value=null===(r=a.response)||void 0===r?void 0:r.data.message,console.log("errorMessage.value "+R.value),E.value=!0,setTimeout(()=>{E.value=!1},2e3)}}},H=async e=>{t.value=!1,u.value=e.target.value,console.log("Selected Program",u.value),"Select Program"!==u.value&&("infinity"===u.value?(m.value=!0,v.value=!1):(a.value="",m.value=!1,N.value=!0,v.value=!0)),N.value=!0,t.value=!0},$=async e=>{P.value=e.target.value},G=async e=>{t.value=!1,a.value=e.target.value,"Select Skill"!==a.value?v.value=!0:v.value=!1,console.log("selectedSkill.value",a.value),t.value=!0},V=async()=>{const e=await Object(s["e"])("/getAllSkillProf?skill_type=genome");r.value=e.skill},W=async()=>{t.value=!1,n.value=await Object(c["e"])("/cache?cache=program"),t.value=!0},X=async e=>{const t=e.target.files[0],r=t.name,n=r.endsWith(".csv");n?(U.value=r,M.value=t):(D.value="Please Select valid file to upload, only CSV file is allowed",setTimeout(()=>{D.value=null},6e3),M.value=null,U.value=null)},K=async()=>{if(!U.value)return D.value="Please Select valid file to upload, only CSV file is allowed",void setTimeout(()=>{D.value=null},6e3);t.value=!1;try{const e="proxy_flat.csv",r=await Object(f["a"])("/v1/pretAuthUrlForUpload",{folder_name:"users",key_name:e});console.log("presigned URL",r),B.value=r.data.preSignedUrl;const n=await Object(c["i"])(B.value,M.value);if(200===n.status){const e=await Object(s["c"])("/seed/proxy/program/v2",{program_id:u.value});L.value=e,await I(),setTimeout(()=>{L.value=null,T.value=!1},6e3)}t.value=!0}catch(n){if(l.a.isAxiosError(n)){var e,r;const a=n;console.log(null===(e=a.response)||void 0===e?void 0:e.data),t.value=!0,D.value=null===(r=a.response)||void 0===r?void 0:r.data.message,setTimeout(()=>{D.value=!1},2e3)}}};return Object(o["c"])(async()=>{const e=await Object(i["g"])("/getUserRole");d.value=e.user_roles,d.value.length>0&&(console.log("inside length"),d.value.includes("System Admin")||d.value.includes("Proxy Admin")||d.value.includes("Community Manager")?h.value=!0:h.value=!1),await W(),V()}),{proxyData:e,renderReady:t,skillData:r,getSelectedSkill:G,showScreen:h,skillName:p,programDetails:n,getAllProxyList:I,showAddProxy:v,showDeleteProxy:g,proxyCheckOne:b,showDeleteBtn:q,proxycheckedOne:F,showSkill:m,getSelectedProgram:H,programErrorMessage:x,skillErrorMessage:w,showAddProxyPanel:y,proxyOhr:_,roleErrorMessage:O,proxyErrorMessage:j,addProxy:z,getSelectedRoles:$,DeleteProxy:J,showErrorMessage:E,resMessage:S,errorMessage:R,showSuccessMessage:A,showImportProxy:T,bulkImportProxy:K,proxyFile:M,proxyFileName:U,preSignedUrl:B,selectedFile:X,proxyerrorMessage:D,proxysuccessMessage:L,showImportProxyBtn:N}}}),p=d,h=(r("d03c"),r("bce8")),v=Object(h["a"])(p,n,a,!1,null,"13f17f35",null);t["default"]=v.exports},"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}},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 v})),r.d(t,"q",(function(){return g})),r.d(t,"o",(function(){return y})),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 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 E})),r.d(t,"b",(function(){return A})),r.d(t,"d",(function(){return R})),r.d(t,"c",(function(){return T}));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},v=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.userObj,t)),t},y=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},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},E=async e=>{const t=await n["a"].post("/user/removeRole",e);return t},A=async()=>{const e=await n["a"].get("role");return e},R=async e=>{const t=await n["a"].post("/user/saveLSS",e);return t},T=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 v(e){return"[object Date]"===a.call(e)}function g(e){return"[object File]"===a.call(e)}function y(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 O(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:v,isFile:g,isBlob:y,isFunction:m,isStream:b,isURLSearchParams:x,isStandardBrowserEnv:_,forEach:k,merge:C,extend:O,trim:w,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)}))}},"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)}},ae0d:function(e,t,r){var n=r("a8d8");t=n(!1),t.push([e.i,".pageLoader[data-v-13f17f35]{position:fixed;top:30%;left:42%}",""]),e.exports=t},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"))},d03c:function(e,t,r){"use strict";r("fd24")},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,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(h)&&delete v["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.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=g&&"text"!==g&&"json"!==g?m.response:m.responseText,s={data:o,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};a((function(e){t(e),y()}),(function(e){r(e),y()}),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&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in m&&n.forEach(v,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete v[t]:m.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),g&&"json"!==g&&(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)}},fd24:function(e,t,r){var n=r("ae0d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("c69b").default;a("58c6ef7c",n,!0,{sourceMap:!1,shadowMode:!1})}}]);
1
+ (window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationManageProxy"],{"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,"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 d})),r.d(t,"d",(function(){return f}));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},d=async e=>{console.log("inside save task data "+JSON.stringify(e));const t=await n["a"].post("/task/create",e);return t},f=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}},"579b":function(e,t,r){var n=r("9042");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("c69b").default;a("764f4dd4",n,!0,{sourceMap:!1,shadowMode:!1})},"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 d=[s,void 0];Array.prototype.unshift.apply(d,n),d=d.concat(l),o=Promise.resolve(t);while(d.length)o=o.then(d.shift(),d.shift());return o}var f=t;while(n.length){var p=n.shift(),h=n.shift();try{f=p(f)}catch(v){h(v);break}}try{o=s(f)}catch(v){return Promise.reject(v)}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},"6e1a":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:"m-auto shadow p-5 text-background-secondary mb-4"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showErrorMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),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.showSkill?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 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.skillData,(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(),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.getAllProxyList()}}},[e._v("Search Proxy")])])]),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("button",{directives:[{name:"show",rawName:"v-show",value:e.showAddProxy,expression:"showAddProxy"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){e.showAddProxyPanel=!0,e.showImportProxy=!1}}},[e._v("Add Proxy")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showImportProxyBtn,expression:"showImportProxyBtn"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){e.showImportProxy=!0,e.showAddProxyPanel=!1}}},[e._v("Import Bulk Proxy")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteProxy,expression:"showDeleteProxy"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.DeleteProxy()}}},[e._v("Delete Proxy")])])]),e.showAddProxyPanel?t("div",{staticClass:"border border-background-secondary mt-6 mb-6 p-8 w-full"},[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(" Enter OHR ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.proxyOhr,expression:"proxyOhr"}],staticClass:"appearance-none border rounded w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:e.proxyOhr},on:{input:function(t){t.target.composing||(e.proxyOhr=t.target.value)}}}),e.proxyErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proxyErrorMessage))]):e._e()]),"infinity"===e.selectedProgram?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 Role ")]),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.getSelectedRoles(t)}}},[t("option",[e._v("Select Role")]),t("option",{attrs:{value:"Community Manager"}},[e._v("Community Manager")]),t("option",{attrs:{value:"Knowledge Manager"}},[e._v("Knowledge Manager")]),t("option",{attrs:{value:"Guru"}},[e._v("Guru")]),t("option",{attrs:{value:"Master Guru"}},[e._v("Master Guru")])]),e.roleErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.roleErrorMessage))]):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.addProxy()}}},[e._v("Add Proxy")])])])]):e._e(),e.showImportProxy?t("div",{staticClass:"border border-background-secondary mt-6 mb-4 p-8 w-full"},[t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})]),e.proxyerrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proxyerrorMessage))]):e._e(),e.proxysuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.proxysuccessMessage))]):e._e(),t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mt-4",on:{click:e.bulkImportProxy}},[e._v("Import Proxy")])]):e._e(),e.proxyData?t("table",{staticClass:"w-full text-md bg-white rounded mb-4"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800"},e._l(e.proxyData,(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.proxyCheckOne,expression:"proxyCheckOne"}],attrs:{type:"checkbox",id:r.proxy_ohr},domProps:{value:r.proxy_ohr,checked:Array.isArray(e.proxyCheckOne)?e._i(e.proxyCheckOne,r.proxy_ohr)>-1:e.proxyCheckOne},on:{change:[function(t){var n=e.proxyCheckOne,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.proxyCheckOne=n.concat([s])):i>-1&&(e.proxyCheckOne=n.slice(0,i).concat(n.slice(i+1)))}else e.proxyCheckOne=o},function(t){return e.showDeleteBtn(t,r.proxy_ohr,r.proxy_role)}],click:e.proxycheckedOne}})]),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_ohr))]),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))])])})),0)]):e._e()])])]):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 this page")]),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...")])])])},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("Manage 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("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")]),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")])])])}],o=r("d1ce"),s=r("7856"),i=r("8596"),c=r("3212"),u=r("1dba"),l=r.n(u),d=r("675e"),f=Object(o["b"])({name:"ManageProxy",setup(){const e=Object(o["f"])(),t=Object(o["f"])(!0),r=Object(o["f"])(),n=Object(o["f"])(),a=Object(o["f"])(),u=Object(o["f"])(),f=Object(o["f"])(),p=Object(o["f"])(),h=Object(o["f"])(!0),v=Object(o["f"])(!1),g=Object(o["f"])(!1),y=Object(o["f"])(!1),m=Object(o["f"])(!1),b=Object(o["f"])([]),x=Object(o["f"])(),w=Object(o["f"])(),_=Object(o["f"])(),k=Object(o["f"])(),C=Object(o["f"])(),O=Object(o["f"])(),j=Object(o["f"])(),P=Object(o["f"])(),S=Object(o["f"])(),E=Object(o["f"])(!1),A=Object(o["f"])(!1),R=Object(o["f"])(),T=Object(o["f"])(!1),N=Object(o["f"])(!1),M=Object(o["f"])(),U=Object(o["f"])(),B=Object(o["f"])(),D=Object(o["f"])(),L=Object(o["f"])(),q=async(e,t,r)=>{const n=e.target.checked;!0===n?(k.value=t,C.value=r,g.value=!0):g.value=!1},I=async()=>{let t="/v2/admin/proxy/program/"+u.value;if(!u.value)return x.value="Please Select Program",void setTimeout(()=>{x.value=null},6e3);if("infinity"===u.value&&(t="/v2/admin/proxy/program/infinity/skill/"+a.value,!a.value||"Select Skill"===a.value))return w.value="Please Select Skill",void setTimeout(()=>{w.value=null},6e3);const r=await Object(s["d"])(t);e.value=r.all_proxies,console.log("Proxy Data",e.value)},F=()=>{b.value=[]},J=async()=>{t.value=!1;try{const e={proxy_ohr:k.value,proxy_skill:a.value,program_id:u.value,proxy_role:C.value};console.log("Data for Delete",e);const r=await Object(s["b"])("/v2/admin/proxy/delete",e);S.value=r,console.log(r),t.value=!0,A.value=!0,setTimeout(()=>{A.value=!1},2e3),await I()}catch(n){if(l.a.isAxiosError(n)){var e,r;const a=n;console.log(null===(e=a.response)||void 0===e?void 0:e.data),t.value=!0,S.value=null===(r=a.response)||void 0===r?void 0:r.data.message,console.log("errorMessage.value "+R.value),E.value=!0,setTimeout(()=>{E.value=!1},2e3)}}},z=async()=>{try{if("infinity"!==u.value&&(P.value="Knowledge Manager"),!_.value)return j.value="Please Enter OHR",void setTimeout(()=>{j.value=null},6e3);if("Select Role"===P.value||void 0===P.value)return O.value="Please Enter Roles",void setTimeout(()=>{O.value=null},6e3);t.value=!1;const e={proxy_skill:a.value,program_id:u.value,proxy_role:P.value,proxy_ohr:_.value},r=await Object(s["a"])("/v2/admin/proxy",e);S.value=r,t.value=!0,A.value=!0,setTimeout(()=>{A.value=!1,y.value=!1,P.value=null,_.value=null},2e3),await I()}catch(n){if(l.a.isAxiosError(n)){var e,r;const a=n;console.log(null===(e=a.response)||void 0===e?void 0:e.data),t.value=!0,S.value=null===(r=a.response)||void 0===r?void 0:r.data.message,console.log("errorMessage.value "+R.value),E.value=!0,setTimeout(()=>{E.value=!1},2e3)}}},H=async e=>{y.value=!1,t.value=!1,u.value=e.target.value,console.log("Selected Program",u.value),"Select Program"!==u.value&&("infinity"===u.value?(m.value=!0,v.value=!1):(a.value="",m.value=!1,N.value=!0,v.value=!0)),N.value=!0,t.value=!0},$=async e=>{P.value=e.target.value},G=async e=>{t.value=!1,a.value=e.target.value,"Select Skill"!==a.value?v.value=!0:v.value=!1,console.log("selectedSkill.value",a.value),t.value=!0},V=async()=>{const e=await Object(s["e"])("/getAllSkillProf?skill_type=genome");r.value=e.skill},K=async()=>{t.value=!1,n.value=await Object(c["e"])("/cache?cache=program"),t.value=!0},W=async e=>{const t=e.target.files[0],r=t.name,n=r.endsWith(".csv");n?(U.value=r,M.value=t):(D.value="Please Select valid file to upload, only CSV file is allowed",setTimeout(()=>{D.value=null},6e3),M.value=null,U.value=null)},X=async()=>{if(!U.value)return D.value="Please Select valid file to upload, only CSV file is allowed",void setTimeout(()=>{D.value=null},6e3);t.value=!1;try{const e="proxy_flat.csv",r=await Object(d["a"])("/v1/pretAuthUrlForUpload",{folder_name:"users",key_name:e});console.log("presigned URL",r),B.value=r.data.preSignedUrl;const n=await Object(c["i"])(B.value,M.value);if(200===n.status){const e=await Object(s["c"])("/seed/proxy/program/v2",{program_id:u.value});L.value=e,await I(),setTimeout(()=>{L.value=null,T.value=!1},6e3)}t.value=!0}catch(n){if(l.a.isAxiosError(n)){var e,r;const a=n;console.log(null===(e=a.response)||void 0===e?void 0:e.data),t.value=!0,D.value=null===(r=a.response)||void 0===r?void 0:r.data.message,setTimeout(()=>{D.value=!1},2e3)}}};return Object(o["c"])(async()=>{const e=await Object(i["g"])("/getUserRole");f.value=e.user_roles,f.value.length>0&&(console.log("inside length"),f.value.includes("System Admin")||f.value.includes("Proxy Admin")||f.value.includes("Community Manager")?h.value=!0:h.value=!1),await K(),V()}),{proxyData:e,renderReady:t,skillData:r,getSelectedSkill:G,showScreen:h,skillName:p,programDetails:n,getAllProxyList:I,showAddProxy:v,showDeleteProxy:g,proxyCheckOne:b,showDeleteBtn:q,proxycheckedOne:F,showSkill:m,getSelectedProgram:H,programErrorMessage:x,skillErrorMessage:w,showAddProxyPanel:y,proxyOhr:_,roleErrorMessage:O,proxyErrorMessage:j,addProxy:z,getSelectedRoles:$,DeleteProxy:J,showErrorMessage:E,resMessage:S,errorMessage:R,showSuccessMessage:A,showImportProxy:T,bulkImportProxy:X,proxyFile:M,proxyFileName:U,preSignedUrl:B,selectedFile:W,proxyerrorMessage:D,proxysuccessMessage:L,showImportProxyBtn:N,selectedProgram:u}}}),p=f,h=(r("9590"),r("bce8")),v=Object(h["a"])(p,n,a,!1,null,"99ad1514",null);t["default"]=v.exports},"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}},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 d})),r.d(t,"f",(function(){return f})),r.d(t,"v",(function(){return p})),r.d(t,"h",(function(){return h})),r.d(t,"j",(function(){return v})),r.d(t,"q",(function(){return g})),r.d(t,"o",(function(){return y})),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 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 E})),r.d(t,"b",(function(){return A})),r.d(t,"d",(function(){return R})),r.d(t,"c",(function(){return T}));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},d=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},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},v=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.userObj,t)),t},y=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},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},E=async e=>{const t=await n["a"].post("/user/removeRole",e);return t},A=async()=>{const e=await n["a"].get("role");return e},R=async e=>{const t=await n["a"].post("/user/saveLSS",e);return t},T=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 d(e){return"string"===typeof e}function f(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 v(e){return"[object Date]"===a.call(e)}function g(e){return"[object File]"===a.call(e)}function y(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 O(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:d,isNumber:f,isObject:p,isPlainObject:h,isUndefined:s,isDate:v,isFile:g,isBlob:y,isFunction:m,isStream:b,isURLSearchParams:x,isStandardBrowserEnv:_,forEach:k,merge:C,extend:O,trim:w,stripBOM:j}},9042:function(e,t,r){var n=r("a8d8");t=n(!1),t.push([e.i,".pageLoader[data-v-99ad1514]{position:fixed;top:30%;left:42%}",""]),e.exports=t},"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)}))}},9590:function(e,t,r){"use strict";r("579b")},"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"),d=r("cc3a"),f=r("82ac");e.exports=function(e){return new Promise((function(t,r){var p,h=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(h)&&delete v["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.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=g&&"text"!==g&&"json"!==g?m.response:m.responseText,s={data:o,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};a((function(e){t(e),y()}),(function(e){r(e),y()}),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||d.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&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in m&&n.forEach(v,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete v[t]:m.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),g&&"json"!==g&&(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 f("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)}}}]);
2
2
  //# sourceMappingURL=SolidifyAdministrationManageProxy.js.map