@genpact/genome.mfe.v6-app 1.0.939-alpha → 1.0.940-alpha
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/{AddPrompt-961ef49a.mjs → AddPrompt-1905df0f.mjs} +5 -5
- package/dist/{Admin-f3e4654b.mjs → Admin-440fcfba.mjs} +4 -4
- package/dist/{AlertPopup-17bcd228.mjs → AlertPopup-706b40d5.mjs} +1 -1
- package/dist/{Header-f4f2a071.mjs → Header-c8759c6d.mjs} +3 -3
- package/dist/{HomeView-898d8d04.mjs → HomeView-e0e4db47.mjs} +3 -3
- package/dist/{Loader-814876f3.mjs → Loader-920a06bd.mjs} +1 -1
- package/dist/{Loading-43d893f5.mjs → Loading-c0bf1132.mjs} +1 -1
- package/dist/{ModalComp-db73a293.mjs → ModalComp-60a992b7.mjs} +1 -1
- package/dist/{NewQuestion-a831ec68.mjs → NewQuestion-9c21de1f.mjs} +2 -2
- package/dist/{PopupComponent-9f4b0628.mjs → PopupComponent-69f01456.mjs} +2 -2
- package/dist/{Prompt-ac1bb019.mjs → Prompt-f75da4bf.mjs} +5 -5
- package/dist/{PromptDetails-a1ecd1de.mjs → PromptDetails-bb1f16cc.mjs} +5 -5
- package/dist/{PromptExecutionStatus-937099b5.mjs → PromptExecutionStatus-8ef1c34f.mjs} +2 -2
- package/dist/{PromptPastExecutions-51ce84b1.mjs → PromptPastExecutions-499f643f.mjs} +5 -5
- package/dist/{PromptTesting-2e9f6206.mjs → PromptTesting-57b45a0a.mjs} +1 -1
- package/dist/{SkillshareprofileComponent-737665cb.mjs → SkillshareprofileComponent-9c5e423b.mjs} +2 -2
- package/dist/{Taleo-7ee0be65.mjs → Taleo-ea848eec.mjs} +5 -5
- package/dist/{UnderMaintenance-d394e00f.mjs → UnderMaintenance-7df97e65.mjs} +1 -1
- package/dist/{UnderMaintenance-450b9572.mjs → UnderMaintenance-ef0890bc.mjs} +1 -1
- package/dist/{Version6-116bd88f.mjs → Version6-43113fce.mjs} +7 -7
- package/dist/{delphi_utils-ab8b70e4.mjs → delphi_utils-7a78d64c.mjs} +1 -1
- package/dist/{index-4e0e8d1e.mjs → index-74abc5c2.mjs} +1 -1
- package/dist/{index.es-bdaeb2ec.mjs → index.es-f022ab3d.mjs} +3 -3
- package/dist/{main-12285f00.mjs → main-92fcb7ce.mjs} +1014 -1014
- package/dist/{simulation-396f4c85.mjs → simulation-b66b0b93.mjs} +3 -3
- package/dist/{simulation.vue_vue_type_script_setup_true_lang-b481e144.mjs → simulation.vue_vue_type_script_setup_true_lang-4f2d747b.mjs} +3 -3
- package/dist/v6.es.min.js +1 -1
- package/dist/v6.umd.min.js +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as o } from "./simulation.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as o } from "./simulation.vue_vue_type_script_setup_true_lang-4f2d747b.mjs";
|
|
2
2
|
import "./loadernew-ac153a51.mjs";
|
|
3
|
-
import "./Loading-
|
|
4
|
-
import "./main-
|
|
3
|
+
import "./Loading-c0bf1132.mjs";
|
|
4
|
+
import "./main-92fcb7ce.mjs";
|
|
5
5
|
export {
|
|
6
6
|
o as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as nE } from "./loadernew-ac153a51.mjs";
|
|
2
|
-
import { a as aE, L as Rs, _ as sE, Q as pa, M as Ds, b as gE } from "./Loading-
|
|
3
|
-
import { o as PA, c as $A, a as SA, d as Ie, u as ze, t as Oe, _ as Eo, i as qA, Y as Co, h as Ps, b as ms, f as Ut, F as dn, $ as Gr, r as ji, w as EE, e as ka, q as yr, z as CE, g as yn, a6 as IE, x as xt, U as Xs, n as _s, v as $s, a4 as Ag, a7 as Ra, k as Ks, a5 as Ss, j as ds } from "./main-
|
|
2
|
+
import { a as aE, L as Rs, _ as sE, Q as pa, M as Ds, b as gE } from "./Loading-c0bf1132.mjs";
|
|
3
|
+
import { o as PA, c as $A, a as SA, d as Ie, u as ze, t as Oe, _ as Eo, i as qA, Y as Co, h as Ps, b as ms, f as Ut, F as dn, $ as Gr, r as ji, w as EE, e as ka, q as yr, z as CE, g as yn, a6 as IE, x as xt, U as Xs, n as _s, v as $s, a4 as Ag, a7 as Ra, k as Ks, a5 as Ss, j as ds } from "./main-92fcb7ce.mjs";
|
|
4
4
|
function Mi(e) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return Mi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(i) {
|
|
@@ -7988,7 +7988,7 @@ function(e) {
|
|
|
7988
7988
|
*/
|
|
7989
7989
|
function(e) {
|
|
7990
7990
|
function i() {
|
|
7991
|
-
return (WA.canvg ? Promise.resolve(WA.canvg) : import("./index.es-
|
|
7991
|
+
return (WA.canvg ? Promise.resolve(WA.canvg) : import("./index.es-f022ab3d.mjs")).catch(function(t) {
|
|
7992
7992
|
return Promise.reject(new Error("Could not load canvg: " + t));
|
|
7993
7993
|
}).then(function(t) {
|
|
7994
7994
|
return t.default ? t.default : t;
|
package/dist/v6.es.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./main-
|
|
1
|
+
import "./main-92fcb7ce.mjs";
|
package/dist/v6.umd.min.js
CHANGED
|
@@ -21,7 +21,7 @@ var IYt=Object.defineProperty;var cYt=(NL,Ve,Fj)=>Ve in NL?IYt(NL,Ve,{enumerable
|
|
|
21
21
|
* vue-router v4.5.1
|
|
22
22
|
* (c) 2025 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/const Xy=typeof document<"u";function yf(L){return typeof L=="object"||"displayName"in L||"props"in L||"__vccOpts"in L}function MW(L){return L.__esModule||L[Symbol.toStringTag]==="Module"||L.default&&yf(L.default)}const Lu=Object.assign;function kl(L,M){const t={};for(const j in M){const u=M[j];t[j]=Je(u)?u.map(L):L(u)}return t}const rD=()=>{},Je=Array.isArray,rf=/#/g,tW=/&/g,LW=/\//g,jW=/=/g,uW=/\?/g,nf=/\+/g,NW=/%5B/g,eW=/%5D/g,Df=/%5E/g,AW=/%60/g,Tf=/%7B/g,iW=/%7C/g,sf=/%7D/g,SW=/%20/g;function pl(L){return encodeURI(""+L).replace(iW,"|").replace(NW,"[").replace(eW,"]")}function yW(L){return pl(L).replace(Tf,"{").replace(sf,"}").replace(Df,"^")}function ml(L){return pl(L).replace(nf,"%2B").replace(SW,"+").replace(rf,"%23").replace(tW,"%26").replace(AW,"`").replace(Tf,"{").replace(sf,"}").replace(Df,"^")}function rW(L){return ml(L).replace(jW,"%3D")}function nW(L){return pl(L).replace(rf,"%23").replace(uW,"%3F")}function DW(L){return L==null?"":nW(L).replace(LW,"%2F")}function nD(L){try{return decodeURIComponent(""+L)}catch{}return""+L}const TW=/\/$/,sW=L=>L.replace(TW,"");function bl(L,M,t="/"){let j,u={},N="",e="";const A=M.indexOf("#");let i=M.indexOf("?");return A<i&&A>=0&&(i=-1),i>-1&&(j=M.slice(0,i),N=M.slice(i+1,A>-1?A:M.length),u=L(N)),A>-1&&(j=j||M.slice(0,A),e=M.slice(A,M.length)),j=aW(j??M,t),{fullPath:j+(N&&"?")+N+e,path:j,query:u,hash:nD(e)}}function zW(L,M){const t=M.query?L(M.query):"";return M.path+(t&&"?")+t+(M.hash||"")}function zf(L,M){return!M||!L.toLowerCase().startsWith(M.toLowerCase())?L:L.slice(M.length)||"/"}function IW(L,M,t){const j=M.matched.length-1,u=t.matched.length-1;return j>-1&&j===u&&Jy(M.matched[j],t.matched[u])&&If(M.params,t.params)&&L(M.query)===L(t.query)&&M.hash===t.hash}function Jy(L,M){return(L.aliasOf||L)===(M.aliasOf||M)}function If(L,M){if(Object.keys(L).length!==Object.keys(M).length)return!1;for(const t in L)if(!cW(L[t],M[t]))return!1;return!0}function cW(L,M){return Je(L)?cf(L,M):Je(M)?cf(M,L):L===M}function cf(L,M){return Je(M)?L.length===M.length&&L.every((t,j)=>t===M[j]):L.length===1&&L[0]===M}function aW(L,M){if(L.startsWith("/"))return L;if(!L)return M;const t=M.split("/"),j=L.split("/"),u=j[j.length-1];(u===".."||u===".")&&j.push("");let N=t.length-1,e,A;for(e=0;e<j.length;e++)if(A=j[e],A!==".")if(A==="..")N>1&&N--;else break;return t.slice(0,N).join("/")+"/"+j.slice(e).join("/")}const Ei={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var DD;(function(L){L.pop="pop",L.push="push"})(DD||(DD={}));var TD;(function(L){L.back="back",L.forward="forward",L.unknown=""})(TD||(TD={}));function EW(L){if(!L)if(Xy){const M=document.querySelector("base");L=M&&M.getAttribute("href")||"/",L=L.replace(/^\w+:\/\/[^\/]+/,"")}else L="/";return L[0]!=="/"&&L[0]!=="#"&&(L="/"+L),sW(L)}const oW=/^[^#]+#/;function lW(L,M){return L.replace(oW,"#")+M}function xW(L,M){const t=document.documentElement.getBoundingClientRect(),j=L.getBoundingClientRect();return{behavior:M.behavior,left:j.left-t.left-(M.left||0),top:j.top-t.top-(M.top||0)}}const Qz=()=>({left:window.scrollX,top:window.scrollY});function gW(L){let M;if("el"in L){const t=L.el,j=typeof t=="string"&&t.startsWith("#"),u=typeof t=="string"?j?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!u)return;M=xW(u,L)}else M=L;"scrollBehavior"in document.documentElement.style?window.scrollTo(M):window.scrollTo(M.left!=null?M.left:window.scrollX,M.top!=null?M.top:window.scrollY)}function af(L,M){return(history.state?history.state.position-M:-1)+L}const Rl=new Map;function OW(L,M){Rl.set(L,M)}function dW(L){const M=Rl.get(L);return Rl.delete(L),M}let wW=()=>location.protocol+"//"+location.host;function Ef(L,M){const{pathname:t,search:j,hash:u}=M,N=L.indexOf("#");if(N>-1){let A=u.includes(L.slice(N))?L.slice(N).length:1,i=u.slice(A);return i[0]!=="/"&&(i="/"+i),zf(i,"")}return zf(t,L)+j+u}function UW(L,M,t,j){let u=[],N=[],e=null;const A=({state:n})=>{const r=Ef(L,location),s=t.value,I=M.value;let z=0;if(n){if(t.value=r,M.value=n,e&&e===s){e=null;return}z=I?n.position-I.position:0}else j(r);u.forEach(c=>{c(t.value,s,{delta:z,type:DD.pop,direction:z?z>0?TD.forward:TD.back:TD.unknown})})};function i(){e=t.value}function S(n){u.push(n);const r=()=>{const s=u.indexOf(n);s>-1&&u.splice(s,1)};return N.push(r),r}function y(){const{history:n}=window;n.state&&n.replaceState(Lu({},n.state,{scroll:Qz()}),"")}function D(){for(const n of N)n();N=[],window.removeEventListener("popstate",A),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",A),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:i,listen:S,destroy:D}}function of(L,M,t,j=!1,u=!1){return{back:L,current:M,forward:t,replaced:j,position:window.history.length,scroll:u?Qz():null}}function QW(L){const{history:M,location:t}=window,j={value:Ef(L,t)},u={value:M.state};u.value||N(j.value,{back:null,current:j.value,forward:null,position:M.length-1,replaced:!0,scroll:null},!0);function N(i,S,y){const D=L.indexOf("#"),n=D>-1?(t.host&&document.querySelector("base")?L:L.slice(D))+i:wW()+L+i;try{M[y?"replaceState":"pushState"](S,"",n),u.value=S}catch(r){console.error(r),t[y?"replace":"assign"](n)}}function e(i,S){const y=Lu({},M.state,of(u.value.back,i,u.value.forward,!0),S,{position:u.value.position});N(i,y,!0),j.value=i}function A(i,S){const y=Lu({},u.value,M.state,{forward:i,scroll:Qz()});N(y.current,y,!0);const D=Lu({},of(j.value,i,null),{position:y.position+1},S);N(i,D,!1),j.value=i}return{location:j,state:u,push:A,replace:e}}function fW(L){L=EW(L);const M=QW(L),t=UW(L,M.state,M.location,M.replace);function j(N,e=!0){e||t.pauseListeners(),history.go(N)}const u=Lu({location:"",base:L,go:j,createHref:lW.bind(null,L)},M,t);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>M.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>M.state.value}),u}function CW(L){return typeof L=="string"||L&&typeof L=="object"}function lf(L){return typeof L=="string"||typeof L=="symbol"}const xf=Symbol("");var gf;(function(L){L[L.aborted=4]="aborted",L[L.cancelled=8]="cancelled",L[L.duplicated=16]="duplicated"})(gf||(gf={}));function Ky(L,M){return Lu(new Error,{type:L,[xf]:!0},M)}function c0(L,M){return L instanceof Error&&xf in L&&(M==null||!!(L.type&M))}const Of="[^/]+?",hW={sensitive:!1,strict:!1,start:!0,end:!0},YW=/[.+*?^${}()[\]/\\]/g;function vW(L,M){const t=Lu({},hW,M),j=[];let u=t.start?"^":"";const N=[];for(const S of L){const y=S.length?[]:[90];t.strict&&!S.length&&(u+="/");for(let D=0;D<S.length;D++){const n=S[D];let r=40+(t.sensitive?.25:0);if(n.type===0)D||(u+="/"),u+=n.value.replace(YW,"\\$&"),r+=40;else if(n.type===1){const{value:s,repeatable:I,optional:z,regexp:c}=n;N.push({name:s,repeatable:I,optional:z});const a=c||Of;if(a!==Of){r+=10;try{new RegExp(`(${a})`)}catch(o){throw new Error(`Invalid custom RegExp for param "${s}" (${a}): `+o.message)}}let E=I?`((?:${a})(?:/(?:${a}))*)`:`(${a})`;D||(E=z&&S.length<2?`(?:/${E})`:"/"+E),z&&(E+="?"),u+=E,r+=20,z&&(r+=-8),I&&(r+=-20),a===".*"&&(r+=-50)}y.push(r)}j.push(y)}if(t.strict&&t.end){const S=j.length-1;j[S][j[S].length-1]+=.7000000000000001}t.strict||(u+="/?"),t.end?u+="$":t.strict&&!u.endsWith("/")&&(u+="(?:/|$)");const e=new RegExp(u,t.sensitive?"":"i");function A(S){const y=S.match(e),D={};if(!y)return null;for(let n=1;n<y.length;n++){const r=y[n]||"",s=N[n-1];D[s.name]=r&&s.repeatable?r.split("/"):r}return D}function i(S){let y="",D=!1;for(const n of L){(!D||!y.endsWith("/"))&&(y+="/"),D=!1;for(const r of n)if(r.type===0)y+=r.value;else if(r.type===1){const{value:s,repeatable:I,optional:z}=r,c=s in S?S[s]:"";if(Je(c)&&!I)throw new Error(`Provided param "${s}" is an array but it is not repeatable (* or + modifiers)`);const a=Je(c)?c.join("/"):c;if(!a)if(z)n.length<2&&(y.endsWith("/")?y=y.slice(0,-1):D=!0);else throw new Error(`Missing required param "${s}"`);y+=a}}return y||"/"}return{re:e,score:j,keys:N,parse:A,stringify:i}}function kW(L,M){let t=0;for(;t<L.length&&t<M.length;){const j=M[t]-L[t];if(j)return j;t++}return L.length<M.length?L.length===1&&L[0]===40+40?-1:1:L.length>M.length?M.length===1&&M[0]===40+40?1:-1:0}function df(L,M){let t=0;const j=L.score,u=M.score;for(;t<j.length&&t<u.length;){const N=kW(j[t],u[t]);if(N)return N;t++}if(Math.abs(u.length-j.length)===1){if(wf(j))return 1;if(wf(u))return-1}return u.length-j.length}function wf(L){const M=L[L.length-1];return L.length>0&&M[M.length-1]<0}const pW={type:0,value:""},mW=/[a-zA-Z0-9_]/;function bW(L){if(!L)return[[]];if(L==="/")return[[pW]];if(!L.startsWith("/"))throw new Error(`Invalid path "${L}"`);function M(r){throw new Error(`ERR (${t})/"${S}": ${r}`)}let t=0,j=t;const u=[];let N;function e(){N&&u.push(N),N=[]}let A=0,i,S="",y="";function D(){S&&(t===0?N.push({type:0,value:S}):t===1||t===2||t===3?(N.length>1&&(i==="*"||i==="+")&&M(`A repeatable param (${S}) must be alone in its segment. eg: '/:ids+.`),N.push({type:1,value:S,regexp:y,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):M("Invalid state to consume buffer"),S="")}function n(){S+=i}for(;A<L.length;){if(i=L[A++],i==="\\"&&t!==2){j=t,t=4;continue}switch(t){case 0:i==="/"?(S&&D(),e()):i===":"?(D(),t=1):n();break;case 4:n(),t=j;break;case 1:i==="("?t=2:mW.test(i)?n():(D(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&A--);break;case 2:i===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+i:t=3:y+=i;break;case 3:D(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&A--,y="";break;default:M("Unknown state");break}}return t===2&&M(`Unfinished custom RegExp for param "${S}"`),D(),e(),u}function RW(L,M,t){const j=vW(bW(L.path),t),u=Lu(j,{record:L,parent:M,children:[],alias:[]});return M&&!u.record.aliasOf==!M.record.aliasOf&&M.children.push(u),u}function BW(L,M){const t=[],j=new Map;M=Cf({strict:!1,end:!0,sensitive:!1},M);function u(D){return j.get(D)}function N(D,n,r){const s=!r,I=Qf(D);I.aliasOf=r&&r.record;const z=Cf(M,D),c=[I];if("alias"in D){const o=typeof D.alias=="string"?[D.alias]:D.alias;for(const x of o)c.push(Qf(Lu({},I,{components:r?r.record.components:I.components,path:x,aliasOf:r?r.record:I})))}let a,E;for(const o of c){const{path:x}=o;if(n&&x[0]!=="/"){const Q=n.record.path,C=Q[Q.length-1]==="/"?"":"/";o.path=n.record.path+(x&&C+x)}if(a=RW(o,n,z),r?r.alias.push(a):(E=E||a,E!==a&&E.alias.push(a),s&&D.name&&!ff(a)&&e(D.name)),hf(a)&&i(a),I.children){const Q=I.children;for(let C=0;C<Q.length;C++)N(Q[C],a,r&&r.children[C])}r=r||a}return E?()=>{e(E)}:rD}function e(D){if(lf(D)){const n=j.get(D);n&&(j.delete(D),t.splice(t.indexOf(n),1),n.children.forEach(e),n.alias.forEach(e))}else{const n=t.indexOf(D);n>-1&&(t.splice(n,1),D.record.name&&j.delete(D.record.name),D.children.forEach(e),D.alias.forEach(e))}}function A(){return t}function i(D){const n=ZW(D,t);t.splice(n,0,D),D.record.name&&!ff(D)&&j.set(D.record.name,D)}function S(D,n){let r,s={},I,z;if("name"in D&&D.name){if(r=j.get(D.name),!r)throw Ky(1,{location:D});z=r.record.name,s=Lu(Uf(n.params,r.keys.filter(E=>!E.optional).concat(r.parent?r.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),D.params&&Uf(D.params,r.keys.map(E=>E.name))),I=r.stringify(s)}else if(D.path!=null)I=D.path,r=t.find(E=>E.re.test(I)),r&&(s=r.parse(I),z=r.record.name);else{if(r=n.name?j.get(n.name):t.find(E=>E.re.test(n.path)),!r)throw Ky(1,{location:D,currentLocation:n});z=r.record.name,s=Lu({},n.params,D.params),I=r.stringify(s)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:z,path:I,params:s,matched:c,meta:FW(c)}}L.forEach(D=>N(D));function y(){t.length=0,j.clear()}return{addRoute:N,resolve:S,removeRoute:e,clearRoutes:y,getRoutes:A,getRecordMatcher:u}}function Uf(L,M){const t={};for(const j of M)j in L&&(t[j]=L[j]);return t}function Qf(L){const M={path:L.path,redirect:L.redirect,name:L.name,meta:L.meta||{},aliasOf:L.aliasOf,beforeEnter:L.beforeEnter,props:PW(L),children:L.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in L?L.components||null:L.component&&{default:L.component}};return Object.defineProperty(M,"mods",{value:{}}),M}function PW(L){const M={},t=L.props||!1;if("component"in L)M.default=t;else for(const j in L.components)M[j]=typeof t=="object"?t[j]:t;return M}function ff(L){for(;L;){if(L.record.aliasOf)return!0;L=L.parent}return!1}function FW(L){return L.reduce((M,t)=>Lu(M,t.meta),{})}function Cf(L,M){const t={};for(const j in L)t[j]=j in M?M[j]:L[j];return t}function ZW(L,M){let t=0,j=M.length;for(;t!==j;){const N=t+j>>1;df(L,M[N])<0?j=N:t=N+1}const u=VW(L);return u&&(j=M.lastIndexOf(u,j-1)),j}function VW(L){let M=L;for(;M=M.parent;)if(hf(M)&&df(L,M)===0)return M}function hf({record:L}){return!!(L.name||L.components&&Object.keys(L.components).length||L.redirect)}function HW(L){const M={};if(L===""||L==="?")return M;const j=(L[0]==="?"?L.slice(1):L).split("&");for(let u=0;u<j.length;++u){const N=j[u].replace(nf," "),e=N.indexOf("="),A=nD(e<0?N:N.slice(0,e)),i=e<0?null:nD(N.slice(e+1));if(A in M){let S=M[A];Je(S)||(S=M[A]=[S]),S.push(i)}else M[A]=i}return M}function Yf(L){let M="";for(let t in L){const j=L[t];if(t=rW(t),j==null){j!==void 0&&(M+=(M.length?"&":"")+t);continue}(Je(j)?j.map(N=>N&&ml(N)):[j&&ml(j)]).forEach(N=>{N!==void 0&&(M+=(M.length?"&":"")+t,N!=null&&(M+="="+N))})}return M}function WW(L){const M={};for(const t in L){const j=L[t];j!==void 0&&(M[t]=Je(j)?j.map(u=>u==null?null:""+u):j==null?j:""+j)}return M}const GW=Symbol(""),vf=Symbol(""),fz=Symbol(""),Bl=Symbol(""),Pl=Symbol("");function sD(){let L=[];function M(j){return L.push(j),()=>{const u=L.indexOf(j);u>-1&&L.splice(u,1)}}function t(){L=[]}return{add:M,list:()=>L.slice(),reset:t}}function oi(L,M,t,j,u,N=e=>e()){const e=j&&(j.enterCallbacks[u]=j.enterCallbacks[u]||[]);return()=>new Promise((A,i)=>{const S=n=>{n===!1?i(Ky(4,{from:t,to:M})):n instanceof Error?i(n):CW(n)?i(Ky(2,{from:M,to:n})):(e&&j.enterCallbacks[u]===e&&typeof n=="function"&&e.push(n),A())},y=N(()=>L.call(j&&j.instances[u],M,t,S));let D=Promise.resolve(y);L.length<3&&(D=D.then(S)),D.catch(n=>i(n))})}function Fl(L,M,t,j,u=N=>N()){const N=[];for(const e of L)for(const A in e.components){let i=e.components[A];if(!(M!=="beforeRouteEnter"&&!e.instances[A]))if(yf(i)){const y=(i.__vccOpts||i)[M];y&&N.push(oi(y,t,j,e,A,u))}else{let S=i();N.push(()=>S.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${A}" at "${e.path}"`);const D=MW(y)?y.default:y;e.mods[A]=y,e.components[A]=D;const r=(D.__vccOpts||D)[M];return r&&oi(r,t,j,e,A,u)()}))}}return N}function kf(L){const M=WN(fz),t=WN(Bl),j=eL(()=>{const i=iM(L.to);return M.resolve(i)}),u=eL(()=>{const{matched:i}=j.value,{length:S}=i,y=i[S-1],D=t.matched;if(!y||!D.length)return-1;const n=D.findIndex(Jy.bind(null,y));if(n>-1)return n;const r=pf(i[S-2]);return S>1&&pf(y)===r&&D[D.length-1].path!==r?D.findIndex(Jy.bind(null,i[S-2])):n}),N=eL(()=>u.value>-1&&qW(t.params,j.value.params)),e=eL(()=>u.value>-1&&u.value===t.matched.length-1&&If(t.params,j.value.params));function A(i={}){if(KW(i)){const S=M[iM(L.replace)?"replace":"push"](iM(L.to)).catch(rD);return L.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>S),S}return Promise.resolve()}return{route:j,href:eL(()=>j.value.href),isActive:N,isExactActive:e,navigate:A}}function XW(L){return L.length===1?L[0]:L}const JW=Ct({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:kf,setup(L,{slots:M}){const t=by(kf(L)),{options:j}=WN(fz),u=eL(()=>({[mf(L.activeClass,j.linkActiveClass,"router-link-active")]:t.isActive,[mf(L.exactActiveClass,j.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const N=M.default&&XW(M.default(t));return L.custom?N:Hy("a",{"aria-current":t.isExactActive?L.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:u.value},N)}}});function KW(L){if(!(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey)&&!L.defaultPrevented&&!(L.button!==void 0&&L.button!==0)){if(L.currentTarget&&L.currentTarget.getAttribute){const M=L.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(M))return}return L.preventDefault&&L.preventDefault(),!0}}function qW(L,M){for(const t in M){const j=M[t],u=L[t];if(typeof j=="string"){if(j!==u)return!1}else if(!Je(u)||u.length!==j.length||j.some((N,e)=>N!==u[e]))return!1}return!0}function pf(L){return L?L.aliasOf?L.aliasOf.path:L.path:""}const mf=(L,M,t)=>L??M??t,_W=Ct({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(L,{attrs:M,slots:t}){const j=WN(Pl),u=eL(()=>L.route||j.value),N=WN(vf,0),e=eL(()=>{let S=iM(N);const{matched:y}=u.value;let D;for(;(D=y[S])&&!D.components;)S++;return S}),A=eL(()=>u.value.matched[e.value]);zz(vf,eL(()=>e.value+1)),zz(GW,A),zz(Pl,u);const i=G();return Cj(()=>[i.value,A.value,L.name],([S,y,D],[n,r,s])=>{y&&(y.instances[D]=S,r&&r!==y&&S&&S===n&&(y.leaveGuards.size||(y.leaveGuards=r.leaveGuards),y.updateGuards.size||(y.updateGuards=r.updateGuards))),S&&y&&(!r||!Jy(y,r)||!n)&&(y.enterCallbacks[D]||[]).forEach(I=>I(S))},{flush:"post"}),()=>{const S=u.value,y=L.name,D=A.value,n=D&&D.components[y];if(!n)return bf(t.default,{Component:n,route:S});const r=D.props[y],s=r?r===!0?S.params:typeof r=="function"?r(S):r:null,z=Hy(n,Lu({},s,M,{onVnodeUnmounted:c=>{c.component.isUnmounted&&(D.instances[y]=null)},ref:i}));return bf(t.default,{Component:z,route:S})||z}}});function bf(L,M){if(!L)return null;const t=L(M);return t.length===1?t[0]:t}const Zl=_W;function $W(L){const M=BW(L.routes,L),t=L.parseQuery||HW,j=L.stringifyQuery||Yf,u=L.history,N=sD(),e=sD(),A=sD(),i=Al(Ei);let S=Ei;Xy&&L.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=kl.bind(null,q=>""+q),D=kl.bind(null,DW),n=kl.bind(null,nD);function r(q,F){let B,K;return lf(q)?(B=M.getRecordMatcher(q),K=F):K=q,M.addRoute(K,B)}function s(q){const F=M.getRecordMatcher(q);F&&M.removeRoute(F)}function I(){return M.getRoutes().map(q=>q.record)}function z(q){return!!M.getRecordMatcher(q)}function c(q,F){if(F=Lu({},F||i.value),typeof q=="string"){const MM=bl(t,q,F.path),TM=M.resolve({path:MM.path},F),uM=u.createHref(MM.fullPath);return Lu(MM,TM,{params:n(TM.params),hash:nD(MM.hash),redirectedFrom:void 0,href:uM})}let B;if(q.path!=null)B=Lu({},q,{path:bl(t,q.path,F.path).path});else{const MM=Lu({},q.params);for(const TM in MM)MM[TM]==null&&delete MM[TM];B=Lu({},q,{params:D(MM)}),F.params=D(F.params)}const K=M.resolve(B,F),nM=q.hash||"";K.params=y(n(K.params));const yM=zW(j,Lu({},q,{hash:yW(nM),path:K.path})),$=u.createHref(yM);return Lu({fullPath:yM,hash:nM,query:j===Yf?WW(q.query):q.query||{}},K,{redirectedFrom:void 0,href:$})}function a(q){return typeof q=="string"?bl(t,q,i.value.path):Lu({},q)}function E(q,F){if(S!==q)return Ky(8,{from:F,to:q})}function o(q){return C(q)}function x(q){return o(Lu(a(q),{replace:!0}))}function Q(q){const F=q.matched[q.matched.length-1];if(F&&F.redirect){const{redirect:B}=F;let K=typeof B=="function"?B(q):B;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=a(K):{path:K},K.params={}),Lu({query:q.query,hash:q.hash,params:K.path!=null?{}:q.params},K)}}function C(q,F){const B=S=c(q),K=i.value,nM=q.state,yM=q.force,$=q.replace===!0,MM=Q(B);if(MM)return C(Lu(a(MM),{state:typeof MM=="object"?Lu({},nM,MM.state):nM,force:yM,replace:$}),F||B);const TM=B;TM.redirectedFrom=F;let uM;return!yM&&IW(j,K,B)&&(uM=Ky(16,{to:TM,from:K}),H(K,K,!0,!1)),(uM?Promise.resolve(uM):b(TM,K)).catch(LM=>c0(LM)?c0(LM,2)?LM:k(LM):O(LM,TM,K)).then(LM=>{if(LM){if(c0(LM,2))return C(Lu({replace:$},a(LM.to),{state:typeof LM.to=="object"?Lu({},nM,LM.to.state):nM,force:yM}),F||TM)}else LM=R(TM,K,!0,$,nM);return p(TM,K,LM),LM})}function U(q,F){const B=E(q,F);return B?Promise.reject(B):Promise.resolve()}function v(q){const F=X.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(q):q()}function b(q,F){let B;const[K,nM,yM]=MG(q,F);B=Fl(K.reverse(),"beforeRouteLeave",q,F);for(const MM of K)MM.leaveGuards.forEach(TM=>{B.push(oi(TM,q,F))});const $=U.bind(null,q,F);return B.push($),V(B).then(()=>{B=[];for(const MM of N.list())B.push(oi(MM,q,F));return B.push($),V(B)}).then(()=>{B=Fl(nM,"beforeRouteUpdate",q,F);for(const MM of nM)MM.updateGuards.forEach(TM=>{B.push(oi(TM,q,F))});return B.push($),V(B)}).then(()=>{B=[];for(const MM of yM)if(MM.beforeEnter)if(Je(MM.beforeEnter))for(const TM of MM.beforeEnter)B.push(oi(TM,q,F));else B.push(oi(MM.beforeEnter,q,F));return B.push($),V(B)}).then(()=>(q.matched.forEach(MM=>MM.enterCallbacks={}),B=Fl(yM,"beforeRouteEnter",q,F,v),B.push($),V(B))).then(()=>{B=[];for(const MM of e.list())B.push(oi(MM,q,F));return B.push($),V(B)}).catch(MM=>c0(MM,8)?MM:Promise.reject(MM))}function p(q,F,B){A.list().forEach(K=>v(()=>K(q,F,B)))}function R(q,F,B,K,nM){const yM=E(q,F);if(yM)return yM;const $=F===Ei,MM=Xy?history.state:{};B&&(K||$?u.replace(q.fullPath,Lu({scroll:$&&MM&&MM.scroll},nM)):u.push(q.fullPath,nM)),i.value=q,H(q,F,B,$),k()}let f;function h(){f||(f=u.listen((q,F,B)=>{if(!tM.listening)return;const K=c(q),nM=Q(K);if(nM){C(Lu(nM,{replace:!0,force:!0}),K).catch(rD);return}S=K;const yM=i.value;Xy&&OW(af(yM.fullPath,B.delta),Qz()),b(K,yM).catch($=>c0($,12)?$:c0($,2)?(C(Lu(a($.to),{force:!0}),K).then(MM=>{c0(MM,20)&&!B.delta&&B.type===DD.pop&&u.go(-1,!1)}).catch(rD),Promise.reject()):(B.delta&&u.go(-B.delta,!1),O($,K,yM))).then($=>{$=$||R(K,yM,!1),$&&(B.delta&&!c0($,8)?u.go(-B.delta,!1):B.type===DD.pop&&c0($,20)&&u.go(-1,!1)),p(K,yM,$)}).catch(rD)}))}let w=sD(),l=sD(),g;function O(q,F,B){k(q);const K=l.list();return K.length?K.forEach(nM=>nM(q,F,B)):console.error(q),Promise.reject(q)}function d(){return g&&i.value!==Ei?Promise.resolve():new Promise((q,F)=>{w.add([q,F])})}function k(q){return g||(g=!q,h(),w.list().forEach(([F,B])=>q?B(q):F()),w.reset()),q}function H(q,F,B,K){const{scrollBehavior:nM}=L;if(!Xy||!nM)return Promise.resolve();const yM=!B&&dW(af(q.fullPath,0))||(K||!B)&&history.state&&history.state.scroll||null;return Fy().then(()=>nM(q,F,yM)).then($=>$&&gW($)).catch($=>O($,q,F))}const P=q=>u.go(q);let Z;const X=new Set,tM={currentRoute:i,listening:!0,addRoute:r,removeRoute:s,clearRoutes:M.clearRoutes,hasRoute:z,getRoutes:I,resolve:c,options:L,push:o,replace:x,go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:N.add,beforeResolve:e.add,afterEach:A.add,onError:l.add,isReady:d,install(q){const F=this;q.component("RouterLink",JW),q.component("RouterView",Zl),q.config.globalProperties.$router=F,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>iM(i)}),Xy&&!Z&&i.value===Ei&&(Z=!0,o(u.location).catch(nM=>{}));const B={};for(const nM in Ei)Object.defineProperty(B,nM,{get:()=>i.value[nM],enumerable:!0});q.provide(fz,F),q.provide(Bl,QU(B)),q.provide(Pl,i);const K=q.unmount;X.add(q),q.unmount=function(){X.delete(q),X.size<1&&(S=Ei,f&&f(),f=null,i.value=Ei,Z=!1,g=!1),K()}}};function V(q){return q.reduce((F,B)=>F.then(()=>v(B)),Promise.resolve())}return tM}function MG(L,M){const t=[],j=[],u=[],N=Math.max(M.matched.length,L.matched.length);for(let e=0;e<N;e++){const A=M.matched[e];A&&(L.matched.find(S=>Jy(S,A))?j.push(A):t.push(A));const i=L.matched[e];i&&(M.matched.find(S=>Jy(S,i))||u.push(i))}return[t,j,u]}function tG(){return WN(fz)}function Vl(L){return WN(Bl)}const LG="1.0.939-alpha",jG="1.0.0",uG="2024-07-15";var NG=!1;/*!
|
|
24
|
+
*/const Xy=typeof document<"u";function yf(L){return typeof L=="object"||"displayName"in L||"props"in L||"__vccOpts"in L}function MW(L){return L.__esModule||L[Symbol.toStringTag]==="Module"||L.default&&yf(L.default)}const Lu=Object.assign;function kl(L,M){const t={};for(const j in M){const u=M[j];t[j]=Je(u)?u.map(L):L(u)}return t}const rD=()=>{},Je=Array.isArray,rf=/#/g,tW=/&/g,LW=/\//g,jW=/=/g,uW=/\?/g,nf=/\+/g,NW=/%5B/g,eW=/%5D/g,Df=/%5E/g,AW=/%60/g,Tf=/%7B/g,iW=/%7C/g,sf=/%7D/g,SW=/%20/g;function pl(L){return encodeURI(""+L).replace(iW,"|").replace(NW,"[").replace(eW,"]")}function yW(L){return pl(L).replace(Tf,"{").replace(sf,"}").replace(Df,"^")}function ml(L){return pl(L).replace(nf,"%2B").replace(SW,"+").replace(rf,"%23").replace(tW,"%26").replace(AW,"`").replace(Tf,"{").replace(sf,"}").replace(Df,"^")}function rW(L){return ml(L).replace(jW,"%3D")}function nW(L){return pl(L).replace(rf,"%23").replace(uW,"%3F")}function DW(L){return L==null?"":nW(L).replace(LW,"%2F")}function nD(L){try{return decodeURIComponent(""+L)}catch{}return""+L}const TW=/\/$/,sW=L=>L.replace(TW,"");function bl(L,M,t="/"){let j,u={},N="",e="";const A=M.indexOf("#");let i=M.indexOf("?");return A<i&&A>=0&&(i=-1),i>-1&&(j=M.slice(0,i),N=M.slice(i+1,A>-1?A:M.length),u=L(N)),A>-1&&(j=j||M.slice(0,A),e=M.slice(A,M.length)),j=aW(j??M,t),{fullPath:j+(N&&"?")+N+e,path:j,query:u,hash:nD(e)}}function zW(L,M){const t=M.query?L(M.query):"";return M.path+(t&&"?")+t+(M.hash||"")}function zf(L,M){return!M||!L.toLowerCase().startsWith(M.toLowerCase())?L:L.slice(M.length)||"/"}function IW(L,M,t){const j=M.matched.length-1,u=t.matched.length-1;return j>-1&&j===u&&Jy(M.matched[j],t.matched[u])&&If(M.params,t.params)&&L(M.query)===L(t.query)&&M.hash===t.hash}function Jy(L,M){return(L.aliasOf||L)===(M.aliasOf||M)}function If(L,M){if(Object.keys(L).length!==Object.keys(M).length)return!1;for(const t in L)if(!cW(L[t],M[t]))return!1;return!0}function cW(L,M){return Je(L)?cf(L,M):Je(M)?cf(M,L):L===M}function cf(L,M){return Je(M)?L.length===M.length&&L.every((t,j)=>t===M[j]):L.length===1&&L[0]===M}function aW(L,M){if(L.startsWith("/"))return L;if(!L)return M;const t=M.split("/"),j=L.split("/"),u=j[j.length-1];(u===".."||u===".")&&j.push("");let N=t.length-1,e,A;for(e=0;e<j.length;e++)if(A=j[e],A!==".")if(A==="..")N>1&&N--;else break;return t.slice(0,N).join("/")+"/"+j.slice(e).join("/")}const Ei={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var DD;(function(L){L.pop="pop",L.push="push"})(DD||(DD={}));var TD;(function(L){L.back="back",L.forward="forward",L.unknown=""})(TD||(TD={}));function EW(L){if(!L)if(Xy){const M=document.querySelector("base");L=M&&M.getAttribute("href")||"/",L=L.replace(/^\w+:\/\/[^\/]+/,"")}else L="/";return L[0]!=="/"&&L[0]!=="#"&&(L="/"+L),sW(L)}const oW=/^[^#]+#/;function lW(L,M){return L.replace(oW,"#")+M}function xW(L,M){const t=document.documentElement.getBoundingClientRect(),j=L.getBoundingClientRect();return{behavior:M.behavior,left:j.left-t.left-(M.left||0),top:j.top-t.top-(M.top||0)}}const Qz=()=>({left:window.scrollX,top:window.scrollY});function gW(L){let M;if("el"in L){const t=L.el,j=typeof t=="string"&&t.startsWith("#"),u=typeof t=="string"?j?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!u)return;M=xW(u,L)}else M=L;"scrollBehavior"in document.documentElement.style?window.scrollTo(M):window.scrollTo(M.left!=null?M.left:window.scrollX,M.top!=null?M.top:window.scrollY)}function af(L,M){return(history.state?history.state.position-M:-1)+L}const Rl=new Map;function OW(L,M){Rl.set(L,M)}function dW(L){const M=Rl.get(L);return Rl.delete(L),M}let wW=()=>location.protocol+"//"+location.host;function Ef(L,M){const{pathname:t,search:j,hash:u}=M,N=L.indexOf("#");if(N>-1){let A=u.includes(L.slice(N))?L.slice(N).length:1,i=u.slice(A);return i[0]!=="/"&&(i="/"+i),zf(i,"")}return zf(t,L)+j+u}function UW(L,M,t,j){let u=[],N=[],e=null;const A=({state:n})=>{const r=Ef(L,location),s=t.value,I=M.value;let z=0;if(n){if(t.value=r,M.value=n,e&&e===s){e=null;return}z=I?n.position-I.position:0}else j(r);u.forEach(c=>{c(t.value,s,{delta:z,type:DD.pop,direction:z?z>0?TD.forward:TD.back:TD.unknown})})};function i(){e=t.value}function S(n){u.push(n);const r=()=>{const s=u.indexOf(n);s>-1&&u.splice(s,1)};return N.push(r),r}function y(){const{history:n}=window;n.state&&n.replaceState(Lu({},n.state,{scroll:Qz()}),"")}function D(){for(const n of N)n();N=[],window.removeEventListener("popstate",A),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",A),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:i,listen:S,destroy:D}}function of(L,M,t,j=!1,u=!1){return{back:L,current:M,forward:t,replaced:j,position:window.history.length,scroll:u?Qz():null}}function QW(L){const{history:M,location:t}=window,j={value:Ef(L,t)},u={value:M.state};u.value||N(j.value,{back:null,current:j.value,forward:null,position:M.length-1,replaced:!0,scroll:null},!0);function N(i,S,y){const D=L.indexOf("#"),n=D>-1?(t.host&&document.querySelector("base")?L:L.slice(D))+i:wW()+L+i;try{M[y?"replaceState":"pushState"](S,"",n),u.value=S}catch(r){console.error(r),t[y?"replace":"assign"](n)}}function e(i,S){const y=Lu({},M.state,of(u.value.back,i,u.value.forward,!0),S,{position:u.value.position});N(i,y,!0),j.value=i}function A(i,S){const y=Lu({},u.value,M.state,{forward:i,scroll:Qz()});N(y.current,y,!0);const D=Lu({},of(j.value,i,null),{position:y.position+1},S);N(i,D,!1),j.value=i}return{location:j,state:u,push:A,replace:e}}function fW(L){L=EW(L);const M=QW(L),t=UW(L,M.state,M.location,M.replace);function j(N,e=!0){e||t.pauseListeners(),history.go(N)}const u=Lu({location:"",base:L,go:j,createHref:lW.bind(null,L)},M,t);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>M.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>M.state.value}),u}function CW(L){return typeof L=="string"||L&&typeof L=="object"}function lf(L){return typeof L=="string"||typeof L=="symbol"}const xf=Symbol("");var gf;(function(L){L[L.aborted=4]="aborted",L[L.cancelled=8]="cancelled",L[L.duplicated=16]="duplicated"})(gf||(gf={}));function Ky(L,M){return Lu(new Error,{type:L,[xf]:!0},M)}function c0(L,M){return L instanceof Error&&xf in L&&(M==null||!!(L.type&M))}const Of="[^/]+?",hW={sensitive:!1,strict:!1,start:!0,end:!0},YW=/[.+*?^${}()[\]/\\]/g;function vW(L,M){const t=Lu({},hW,M),j=[];let u=t.start?"^":"";const N=[];for(const S of L){const y=S.length?[]:[90];t.strict&&!S.length&&(u+="/");for(let D=0;D<S.length;D++){const n=S[D];let r=40+(t.sensitive?.25:0);if(n.type===0)D||(u+="/"),u+=n.value.replace(YW,"\\$&"),r+=40;else if(n.type===1){const{value:s,repeatable:I,optional:z,regexp:c}=n;N.push({name:s,repeatable:I,optional:z});const a=c||Of;if(a!==Of){r+=10;try{new RegExp(`(${a})`)}catch(o){throw new Error(`Invalid custom RegExp for param "${s}" (${a}): `+o.message)}}let E=I?`((?:${a})(?:/(?:${a}))*)`:`(${a})`;D||(E=z&&S.length<2?`(?:/${E})`:"/"+E),z&&(E+="?"),u+=E,r+=20,z&&(r+=-8),I&&(r+=-20),a===".*"&&(r+=-50)}y.push(r)}j.push(y)}if(t.strict&&t.end){const S=j.length-1;j[S][j[S].length-1]+=.7000000000000001}t.strict||(u+="/?"),t.end?u+="$":t.strict&&!u.endsWith("/")&&(u+="(?:/|$)");const e=new RegExp(u,t.sensitive?"":"i");function A(S){const y=S.match(e),D={};if(!y)return null;for(let n=1;n<y.length;n++){const r=y[n]||"",s=N[n-1];D[s.name]=r&&s.repeatable?r.split("/"):r}return D}function i(S){let y="",D=!1;for(const n of L){(!D||!y.endsWith("/"))&&(y+="/"),D=!1;for(const r of n)if(r.type===0)y+=r.value;else if(r.type===1){const{value:s,repeatable:I,optional:z}=r,c=s in S?S[s]:"";if(Je(c)&&!I)throw new Error(`Provided param "${s}" is an array but it is not repeatable (* or + modifiers)`);const a=Je(c)?c.join("/"):c;if(!a)if(z)n.length<2&&(y.endsWith("/")?y=y.slice(0,-1):D=!0);else throw new Error(`Missing required param "${s}"`);y+=a}}return y||"/"}return{re:e,score:j,keys:N,parse:A,stringify:i}}function kW(L,M){let t=0;for(;t<L.length&&t<M.length;){const j=M[t]-L[t];if(j)return j;t++}return L.length<M.length?L.length===1&&L[0]===40+40?-1:1:L.length>M.length?M.length===1&&M[0]===40+40?1:-1:0}function df(L,M){let t=0;const j=L.score,u=M.score;for(;t<j.length&&t<u.length;){const N=kW(j[t],u[t]);if(N)return N;t++}if(Math.abs(u.length-j.length)===1){if(wf(j))return 1;if(wf(u))return-1}return u.length-j.length}function wf(L){const M=L[L.length-1];return L.length>0&&M[M.length-1]<0}const pW={type:0,value:""},mW=/[a-zA-Z0-9_]/;function bW(L){if(!L)return[[]];if(L==="/")return[[pW]];if(!L.startsWith("/"))throw new Error(`Invalid path "${L}"`);function M(r){throw new Error(`ERR (${t})/"${S}": ${r}`)}let t=0,j=t;const u=[];let N;function e(){N&&u.push(N),N=[]}let A=0,i,S="",y="";function D(){S&&(t===0?N.push({type:0,value:S}):t===1||t===2||t===3?(N.length>1&&(i==="*"||i==="+")&&M(`A repeatable param (${S}) must be alone in its segment. eg: '/:ids+.`),N.push({type:1,value:S,regexp:y,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):M("Invalid state to consume buffer"),S="")}function n(){S+=i}for(;A<L.length;){if(i=L[A++],i==="\\"&&t!==2){j=t,t=4;continue}switch(t){case 0:i==="/"?(S&&D(),e()):i===":"?(D(),t=1):n();break;case 4:n(),t=j;break;case 1:i==="("?t=2:mW.test(i)?n():(D(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&A--);break;case 2:i===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+i:t=3:y+=i;break;case 3:D(),t=0,i!=="*"&&i!=="?"&&i!=="+"&&A--,y="";break;default:M("Unknown state");break}}return t===2&&M(`Unfinished custom RegExp for param "${S}"`),D(),e(),u}function RW(L,M,t){const j=vW(bW(L.path),t),u=Lu(j,{record:L,parent:M,children:[],alias:[]});return M&&!u.record.aliasOf==!M.record.aliasOf&&M.children.push(u),u}function BW(L,M){const t=[],j=new Map;M=Cf({strict:!1,end:!0,sensitive:!1},M);function u(D){return j.get(D)}function N(D,n,r){const s=!r,I=Qf(D);I.aliasOf=r&&r.record;const z=Cf(M,D),c=[I];if("alias"in D){const o=typeof D.alias=="string"?[D.alias]:D.alias;for(const x of o)c.push(Qf(Lu({},I,{components:r?r.record.components:I.components,path:x,aliasOf:r?r.record:I})))}let a,E;for(const o of c){const{path:x}=o;if(n&&x[0]!=="/"){const Q=n.record.path,C=Q[Q.length-1]==="/"?"":"/";o.path=n.record.path+(x&&C+x)}if(a=RW(o,n,z),r?r.alias.push(a):(E=E||a,E!==a&&E.alias.push(a),s&&D.name&&!ff(a)&&e(D.name)),hf(a)&&i(a),I.children){const Q=I.children;for(let C=0;C<Q.length;C++)N(Q[C],a,r&&r.children[C])}r=r||a}return E?()=>{e(E)}:rD}function e(D){if(lf(D)){const n=j.get(D);n&&(j.delete(D),t.splice(t.indexOf(n),1),n.children.forEach(e),n.alias.forEach(e))}else{const n=t.indexOf(D);n>-1&&(t.splice(n,1),D.record.name&&j.delete(D.record.name),D.children.forEach(e),D.alias.forEach(e))}}function A(){return t}function i(D){const n=ZW(D,t);t.splice(n,0,D),D.record.name&&!ff(D)&&j.set(D.record.name,D)}function S(D,n){let r,s={},I,z;if("name"in D&&D.name){if(r=j.get(D.name),!r)throw Ky(1,{location:D});z=r.record.name,s=Lu(Uf(n.params,r.keys.filter(E=>!E.optional).concat(r.parent?r.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),D.params&&Uf(D.params,r.keys.map(E=>E.name))),I=r.stringify(s)}else if(D.path!=null)I=D.path,r=t.find(E=>E.re.test(I)),r&&(s=r.parse(I),z=r.record.name);else{if(r=n.name?j.get(n.name):t.find(E=>E.re.test(n.path)),!r)throw Ky(1,{location:D,currentLocation:n});z=r.record.name,s=Lu({},n.params,D.params),I=r.stringify(s)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:z,path:I,params:s,matched:c,meta:FW(c)}}L.forEach(D=>N(D));function y(){t.length=0,j.clear()}return{addRoute:N,resolve:S,removeRoute:e,clearRoutes:y,getRoutes:A,getRecordMatcher:u}}function Uf(L,M){const t={};for(const j of M)j in L&&(t[j]=L[j]);return t}function Qf(L){const M={path:L.path,redirect:L.redirect,name:L.name,meta:L.meta||{},aliasOf:L.aliasOf,beforeEnter:L.beforeEnter,props:PW(L),children:L.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in L?L.components||null:L.component&&{default:L.component}};return Object.defineProperty(M,"mods",{value:{}}),M}function PW(L){const M={},t=L.props||!1;if("component"in L)M.default=t;else for(const j in L.components)M[j]=typeof t=="object"?t[j]:t;return M}function ff(L){for(;L;){if(L.record.aliasOf)return!0;L=L.parent}return!1}function FW(L){return L.reduce((M,t)=>Lu(M,t.meta),{})}function Cf(L,M){const t={};for(const j in L)t[j]=j in M?M[j]:L[j];return t}function ZW(L,M){let t=0,j=M.length;for(;t!==j;){const N=t+j>>1;df(L,M[N])<0?j=N:t=N+1}const u=VW(L);return u&&(j=M.lastIndexOf(u,j-1)),j}function VW(L){let M=L;for(;M=M.parent;)if(hf(M)&&df(L,M)===0)return M}function hf({record:L}){return!!(L.name||L.components&&Object.keys(L.components).length||L.redirect)}function HW(L){const M={};if(L===""||L==="?")return M;const j=(L[0]==="?"?L.slice(1):L).split("&");for(let u=0;u<j.length;++u){const N=j[u].replace(nf," "),e=N.indexOf("="),A=nD(e<0?N:N.slice(0,e)),i=e<0?null:nD(N.slice(e+1));if(A in M){let S=M[A];Je(S)||(S=M[A]=[S]),S.push(i)}else M[A]=i}return M}function Yf(L){let M="";for(let t in L){const j=L[t];if(t=rW(t),j==null){j!==void 0&&(M+=(M.length?"&":"")+t);continue}(Je(j)?j.map(N=>N&&ml(N)):[j&&ml(j)]).forEach(N=>{N!==void 0&&(M+=(M.length?"&":"")+t,N!=null&&(M+="="+N))})}return M}function WW(L){const M={};for(const t in L){const j=L[t];j!==void 0&&(M[t]=Je(j)?j.map(u=>u==null?null:""+u):j==null?j:""+j)}return M}const GW=Symbol(""),vf=Symbol(""),fz=Symbol(""),Bl=Symbol(""),Pl=Symbol("");function sD(){let L=[];function M(j){return L.push(j),()=>{const u=L.indexOf(j);u>-1&&L.splice(u,1)}}function t(){L=[]}return{add:M,list:()=>L.slice(),reset:t}}function oi(L,M,t,j,u,N=e=>e()){const e=j&&(j.enterCallbacks[u]=j.enterCallbacks[u]||[]);return()=>new Promise((A,i)=>{const S=n=>{n===!1?i(Ky(4,{from:t,to:M})):n instanceof Error?i(n):CW(n)?i(Ky(2,{from:M,to:n})):(e&&j.enterCallbacks[u]===e&&typeof n=="function"&&e.push(n),A())},y=N(()=>L.call(j&&j.instances[u],M,t,S));let D=Promise.resolve(y);L.length<3&&(D=D.then(S)),D.catch(n=>i(n))})}function Fl(L,M,t,j,u=N=>N()){const N=[];for(const e of L)for(const A in e.components){let i=e.components[A];if(!(M!=="beforeRouteEnter"&&!e.instances[A]))if(yf(i)){const y=(i.__vccOpts||i)[M];y&&N.push(oi(y,t,j,e,A,u))}else{let S=i();N.push(()=>S.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${A}" at "${e.path}"`);const D=MW(y)?y.default:y;e.mods[A]=y,e.components[A]=D;const r=(D.__vccOpts||D)[M];return r&&oi(r,t,j,e,A,u)()}))}}return N}function kf(L){const M=WN(fz),t=WN(Bl),j=eL(()=>{const i=iM(L.to);return M.resolve(i)}),u=eL(()=>{const{matched:i}=j.value,{length:S}=i,y=i[S-1],D=t.matched;if(!y||!D.length)return-1;const n=D.findIndex(Jy.bind(null,y));if(n>-1)return n;const r=pf(i[S-2]);return S>1&&pf(y)===r&&D[D.length-1].path!==r?D.findIndex(Jy.bind(null,i[S-2])):n}),N=eL(()=>u.value>-1&&qW(t.params,j.value.params)),e=eL(()=>u.value>-1&&u.value===t.matched.length-1&&If(t.params,j.value.params));function A(i={}){if(KW(i)){const S=M[iM(L.replace)?"replace":"push"](iM(L.to)).catch(rD);return L.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>S),S}return Promise.resolve()}return{route:j,href:eL(()=>j.value.href),isActive:N,isExactActive:e,navigate:A}}function XW(L){return L.length===1?L[0]:L}const JW=Ct({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:kf,setup(L,{slots:M}){const t=by(kf(L)),{options:j}=WN(fz),u=eL(()=>({[mf(L.activeClass,j.linkActiveClass,"router-link-active")]:t.isActive,[mf(L.exactActiveClass,j.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const N=M.default&&XW(M.default(t));return L.custom?N:Hy("a",{"aria-current":t.isExactActive?L.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:u.value},N)}}});function KW(L){if(!(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey)&&!L.defaultPrevented&&!(L.button!==void 0&&L.button!==0)){if(L.currentTarget&&L.currentTarget.getAttribute){const M=L.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(M))return}return L.preventDefault&&L.preventDefault(),!0}}function qW(L,M){for(const t in M){const j=M[t],u=L[t];if(typeof j=="string"){if(j!==u)return!1}else if(!Je(u)||u.length!==j.length||j.some((N,e)=>N!==u[e]))return!1}return!0}function pf(L){return L?L.aliasOf?L.aliasOf.path:L.path:""}const mf=(L,M,t)=>L??M??t,_W=Ct({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(L,{attrs:M,slots:t}){const j=WN(Pl),u=eL(()=>L.route||j.value),N=WN(vf,0),e=eL(()=>{let S=iM(N);const{matched:y}=u.value;let D;for(;(D=y[S])&&!D.components;)S++;return S}),A=eL(()=>u.value.matched[e.value]);zz(vf,eL(()=>e.value+1)),zz(GW,A),zz(Pl,u);const i=G();return Cj(()=>[i.value,A.value,L.name],([S,y,D],[n,r,s])=>{y&&(y.instances[D]=S,r&&r!==y&&S&&S===n&&(y.leaveGuards.size||(y.leaveGuards=r.leaveGuards),y.updateGuards.size||(y.updateGuards=r.updateGuards))),S&&y&&(!r||!Jy(y,r)||!n)&&(y.enterCallbacks[D]||[]).forEach(I=>I(S))},{flush:"post"}),()=>{const S=u.value,y=L.name,D=A.value,n=D&&D.components[y];if(!n)return bf(t.default,{Component:n,route:S});const r=D.props[y],s=r?r===!0?S.params:typeof r=="function"?r(S):r:null,z=Hy(n,Lu({},s,M,{onVnodeUnmounted:c=>{c.component.isUnmounted&&(D.instances[y]=null)},ref:i}));return bf(t.default,{Component:z,route:S})||z}}});function bf(L,M){if(!L)return null;const t=L(M);return t.length===1?t[0]:t}const Zl=_W;function $W(L){const M=BW(L.routes,L),t=L.parseQuery||HW,j=L.stringifyQuery||Yf,u=L.history,N=sD(),e=sD(),A=sD(),i=Al(Ei);let S=Ei;Xy&&L.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=kl.bind(null,q=>""+q),D=kl.bind(null,DW),n=kl.bind(null,nD);function r(q,F){let B,K;return lf(q)?(B=M.getRecordMatcher(q),K=F):K=q,M.addRoute(K,B)}function s(q){const F=M.getRecordMatcher(q);F&&M.removeRoute(F)}function I(){return M.getRoutes().map(q=>q.record)}function z(q){return!!M.getRecordMatcher(q)}function c(q,F){if(F=Lu({},F||i.value),typeof q=="string"){const MM=bl(t,q,F.path),TM=M.resolve({path:MM.path},F),uM=u.createHref(MM.fullPath);return Lu(MM,TM,{params:n(TM.params),hash:nD(MM.hash),redirectedFrom:void 0,href:uM})}let B;if(q.path!=null)B=Lu({},q,{path:bl(t,q.path,F.path).path});else{const MM=Lu({},q.params);for(const TM in MM)MM[TM]==null&&delete MM[TM];B=Lu({},q,{params:D(MM)}),F.params=D(F.params)}const K=M.resolve(B,F),nM=q.hash||"";K.params=y(n(K.params));const yM=zW(j,Lu({},q,{hash:yW(nM),path:K.path})),$=u.createHref(yM);return Lu({fullPath:yM,hash:nM,query:j===Yf?WW(q.query):q.query||{}},K,{redirectedFrom:void 0,href:$})}function a(q){return typeof q=="string"?bl(t,q,i.value.path):Lu({},q)}function E(q,F){if(S!==q)return Ky(8,{from:F,to:q})}function o(q){return C(q)}function x(q){return o(Lu(a(q),{replace:!0}))}function Q(q){const F=q.matched[q.matched.length-1];if(F&&F.redirect){const{redirect:B}=F;let K=typeof B=="function"?B(q):B;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=a(K):{path:K},K.params={}),Lu({query:q.query,hash:q.hash,params:K.path!=null?{}:q.params},K)}}function C(q,F){const B=S=c(q),K=i.value,nM=q.state,yM=q.force,$=q.replace===!0,MM=Q(B);if(MM)return C(Lu(a(MM),{state:typeof MM=="object"?Lu({},nM,MM.state):nM,force:yM,replace:$}),F||B);const TM=B;TM.redirectedFrom=F;let uM;return!yM&&IW(j,K,B)&&(uM=Ky(16,{to:TM,from:K}),H(K,K,!0,!1)),(uM?Promise.resolve(uM):b(TM,K)).catch(LM=>c0(LM)?c0(LM,2)?LM:k(LM):O(LM,TM,K)).then(LM=>{if(LM){if(c0(LM,2))return C(Lu({replace:$},a(LM.to),{state:typeof LM.to=="object"?Lu({},nM,LM.to.state):nM,force:yM}),F||TM)}else LM=R(TM,K,!0,$,nM);return p(TM,K,LM),LM})}function U(q,F){const B=E(q,F);return B?Promise.reject(B):Promise.resolve()}function v(q){const F=X.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(q):q()}function b(q,F){let B;const[K,nM,yM]=MG(q,F);B=Fl(K.reverse(),"beforeRouteLeave",q,F);for(const MM of K)MM.leaveGuards.forEach(TM=>{B.push(oi(TM,q,F))});const $=U.bind(null,q,F);return B.push($),V(B).then(()=>{B=[];for(const MM of N.list())B.push(oi(MM,q,F));return B.push($),V(B)}).then(()=>{B=Fl(nM,"beforeRouteUpdate",q,F);for(const MM of nM)MM.updateGuards.forEach(TM=>{B.push(oi(TM,q,F))});return B.push($),V(B)}).then(()=>{B=[];for(const MM of yM)if(MM.beforeEnter)if(Je(MM.beforeEnter))for(const TM of MM.beforeEnter)B.push(oi(TM,q,F));else B.push(oi(MM.beforeEnter,q,F));return B.push($),V(B)}).then(()=>(q.matched.forEach(MM=>MM.enterCallbacks={}),B=Fl(yM,"beforeRouteEnter",q,F,v),B.push($),V(B))).then(()=>{B=[];for(const MM of e.list())B.push(oi(MM,q,F));return B.push($),V(B)}).catch(MM=>c0(MM,8)?MM:Promise.reject(MM))}function p(q,F,B){A.list().forEach(K=>v(()=>K(q,F,B)))}function R(q,F,B,K,nM){const yM=E(q,F);if(yM)return yM;const $=F===Ei,MM=Xy?history.state:{};B&&(K||$?u.replace(q.fullPath,Lu({scroll:$&&MM&&MM.scroll},nM)):u.push(q.fullPath,nM)),i.value=q,H(q,F,B,$),k()}let f;function h(){f||(f=u.listen((q,F,B)=>{if(!tM.listening)return;const K=c(q),nM=Q(K);if(nM){C(Lu(nM,{replace:!0,force:!0}),K).catch(rD);return}S=K;const yM=i.value;Xy&&OW(af(yM.fullPath,B.delta),Qz()),b(K,yM).catch($=>c0($,12)?$:c0($,2)?(C(Lu(a($.to),{force:!0}),K).then(MM=>{c0(MM,20)&&!B.delta&&B.type===DD.pop&&u.go(-1,!1)}).catch(rD),Promise.reject()):(B.delta&&u.go(-B.delta,!1),O($,K,yM))).then($=>{$=$||R(K,yM,!1),$&&(B.delta&&!c0($,8)?u.go(-B.delta,!1):B.type===DD.pop&&c0($,20)&&u.go(-1,!1)),p(K,yM,$)}).catch(rD)}))}let w=sD(),l=sD(),g;function O(q,F,B){k(q);const K=l.list();return K.length?K.forEach(nM=>nM(q,F,B)):console.error(q),Promise.reject(q)}function d(){return g&&i.value!==Ei?Promise.resolve():new Promise((q,F)=>{w.add([q,F])})}function k(q){return g||(g=!q,h(),w.list().forEach(([F,B])=>q?B(q):F()),w.reset()),q}function H(q,F,B,K){const{scrollBehavior:nM}=L;if(!Xy||!nM)return Promise.resolve();const yM=!B&&dW(af(q.fullPath,0))||(K||!B)&&history.state&&history.state.scroll||null;return Fy().then(()=>nM(q,F,yM)).then($=>$&&gW($)).catch($=>O($,q,F))}const P=q=>u.go(q);let Z;const X=new Set,tM={currentRoute:i,listening:!0,addRoute:r,removeRoute:s,clearRoutes:M.clearRoutes,hasRoute:z,getRoutes:I,resolve:c,options:L,push:o,replace:x,go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:N.add,beforeResolve:e.add,afterEach:A.add,onError:l.add,isReady:d,install(q){const F=this;q.component("RouterLink",JW),q.component("RouterView",Zl),q.config.globalProperties.$router=F,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>iM(i)}),Xy&&!Z&&i.value===Ei&&(Z=!0,o(u.location).catch(nM=>{}));const B={};for(const nM in Ei)Object.defineProperty(B,nM,{get:()=>i.value[nM],enumerable:!0});q.provide(fz,F),q.provide(Bl,QU(B)),q.provide(Pl,i);const K=q.unmount;X.add(q),q.unmount=function(){X.delete(q),X.size<1&&(S=Ei,f&&f(),f=null,i.value=Ei,Z=!1,g=!1),K()}}};function V(q){return q.reduce((F,B)=>F.then(()=>v(B)),Promise.resolve())}return tM}function MG(L,M){const t=[],j=[],u=[],N=Math.max(M.matched.length,L.matched.length);for(let e=0;e<N;e++){const A=M.matched[e];A&&(L.matched.find(S=>Jy(S,A))?j.push(A):t.push(A));const i=L.matched[e];i&&(M.matched.find(S=>Jy(S,i))||u.push(i))}return[t,j,u]}function tG(){return WN(fz)}function Vl(L){return WN(Bl)}const LG="1.0.940-alpha",jG="1.0.0",uG="2024-07-15";var NG=!1;/*!
|
|
25
25
|
* pinia v2.3.1
|
|
26
26
|
* (c) 2025 Eduardo San Martin Morote
|
|
27
27
|
* @license MIT
|
|
@@ -298,7 +298,7 @@ ot.version="2.30.1",MJ(du),ot.fn=uL,ot.min=FK,ot.max=ZK,ot.now=VK,ot.utc=YA,ot.u
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
`;return await mu({method:"post",url:`${bD}/my-profile/graphql`,headers:{authorization:bA},data:{query:M,variables:{payload:L}}})},Vu=async(L,M)=>await mu({method:"post",url:"https://api-v2.genpact.com/api/csod/myplan/link",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:bA},data:{skill:L,proficiency:M}}),Du=async L=>(L==="SAP HANA (Beginner) Academy"&&(L="SAP S/4HANA (Beginner) Academy"),await mu({method:"post",url:"https://api-v2.genpact.com/api/csod/curriculum/url",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:bA},data:{curriculum_title:L}})),sg=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5002")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api":"https://api-v2.genpact.com/api",d0M=hz("delphi",()=>{const L=G(!1),M=G(!1),t=G(!1),j=G(!1),u=G(!1),N=G(""),e=G("0"),A=G(!1),i=G(""),S=G(!1),y=G([]),D=G([]),n=G([]),r=G([]),s=G([]);G([]);const I=G([]),z=G([]),c=G([]),a=G([]),E=G({}),o=G([]),x=G([]),Q=G([]),C=G([]),U=G([]),v=G([]),b=G([]),p=G(),R=G([]),f=G([]),h=G(),w=G(),l=G([]),g=G([]),O=G([]),d=G([]),k=G([]),H=G([]),P=G([]),Z=G([]),X=G([]),tM=G([]),V=G([]),q=G([]),F=G({}),B=G([]),K=G([]),nM=G([]),yM=G([]),$=G([]),MM=G([]),TM=G([]),uM=G([]),LM=G([]),eM=G(""),jM=G(""),AM=G({}),DM=G(""),IM=G(""),UM=G(null),oM=G(""),YM=G(""),bM=G(""),$M=G(""),et=G(""),Lt=G(""),It=G(!1),_M=G(),mt=G(),XM=G(),gM=G(),xM=G(!0),Mt=G(!1),QM=G(!1),Dt=G([]),ZM=G(),Ot=G([]),LL=G([]),ft=G([]),JM=G({}),Tt=G(),Pt=G(),jL=G(),DL=G(),kL=G(),SL=G(),Ht=G(),UL=G({}),At=G({}),rM=G(!1),pM=G(!1),RM=G(),WM=G(!1),KM=G(!1),St=G(),it=G(),Yt=G(),lt=G(),tL=G(),Kt=G(),Gt=G(),wM=G(),CL=G(!1),vM=G(!1),PM=G(!1),Nt=G(!1),lM=G({}),GM=G([]),Et=G([]),gt=G([]),ML=G([]),Rt=G([]),pt=/\b(1|2|3|4A|4B|4C|4D|5A|5B|SVP|Master Data Not Found)\b/gi,RL=G([{ID:"97103561-8dc3-4fe7-ad0a-4f8dedac8f6b",code:1,Slug:"B",Title:"beginner",Title2:"Beginner"},{ID:"407b8b7b-b3ac-4074-b129-c66d22eb78d4",code:2,Slug:"I",Title:"intermediate",Title2:"Intermediate"},{ID:"5ed7edb5-3967-4bda-aa2a-093c069df241",code:3,Slug:"P",Title:"proficient",Title2:"Proficient"},{ID:"dea6184e-8d52-4852-a6cb-daf633e36f18",code:4,Slug:"E",Title:"expert",Title2:"Expert"}]),YL=async tt=>{tt.module="Delphi";try{await VL("/delphi/event",tt)}catch(FM){console.warn("Error in log event",FM)}return!0},pL=async()=>{var bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj;const tt=[],FM=[],vt=[],xt=[],qt=[],XL=[],Xt=[],rL=[],PL=[];try{await Promise.all([vu(),pe(wM.value)]),FM.value=await l.value;const Zt=await St.value;vt.value=await it.value,vt.value=(bL=vt.value)==null?void 0:bL.map(({academy_completion_date:_,...aM})=>({latestCompletionDate:_,...aM})),console.log("academy_data",vt.value);const cL=(gL=FM==null?void 0:FM.value)==null?void 0:gL.filter(_=>_.mastername==="Industry");xt.value=cL.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}});const QL=(Ej=FM==null?void 0:FM.value)==null?void 0:Ej.filter(_=>_.mastername==="Service Line Or Domain");qt.value=QL.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}});const sj=(Kj=FM==null?void 0:FM.value)==null?void 0:Kj.filter(_=>_.mastername==="Digital Technology");XL.value=sj.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}});const ij=(Rj=FM==null?void 0:FM.value)==null?void 0:Rj.filter(_=>_.mastername==="Proff Skill");Xt.value=ij.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}}),rL.value=[...xt.value,...qt.value,...XL.value,...Xt.value];const iu=await rL.value.map(_=>{var hM;const aM=(hM=yM.value)==null?void 0:hM.find(VM=>(VM==null?void 0:VM.skill)===(_==null?void 0:_.skillid)&&(VM==null?void 0:VM.proficiencyName)===(_==null?void 0:_.currentproficient));return aM?{..._,...aM}:{..._}});PL.value=await(iu==null?void 0:iu.map(_=>{var hM;return((hM=nM.value)==null?void 0:hM.find(VM=>(VM==null?void 0:VM.skill_id)===(_==null?void 0:_.skillid)))?{..._,Trending:!0}:{..._}}));const qj=[...PL.value,...vt.value];return console.log("filteredObjectsAiCapability",qj),console.log("delphiStore?.AiAwareSkillArray",z.value),console.log("delphiStore?.AiBuildSkillArray",I.value),tL.value=await((_j=z.value)==null?void 0:_j.map(_=>{const aM=qj==null?void 0:qj.find(hM=>_!=null&&_.skill_master_id?((hM==null?void 0:hM.skill_id)||(hM==null?void 0:hM.skillid))===(_==null?void 0:_.skill_master_id):(hM==null?void 0:hM.academy_id)===(_==null?void 0:_.academy_id));return aM?{..._,...aM,alreadyInMyPlan:!0}:{..._,alreadyInMyPlan:!1}})),Kt.value=await((wj=I.value)==null?void 0:wj.map(_=>{const aM=qj==null?void 0:qj.find(hM=>_!=null&&_.skill_master_id?((hM==null?void 0:hM.skill_id)||(hM==null?void 0:hM.skillid))===(_==null?void 0:_.skill_master_id):(hM==null?void 0:hM.academy_id)===(_==null?void 0:_.academy_id));return aM?{..._,...aM,alreadyInMyPlan:!0}:{..._,alreadyInMyPlan:!1}})),console.log("delphiStore.aiCapabilityRawDataArray",tL.value),console.log("delphiStore.aiBuildRawDataArray",Kt.value),(FL=vt.value)!=null&&FL.length?tt.value=[...$L(PL.value),...vt.value]:tt.value=$L(PL.value),(Bj=tt.value)==null?void 0:Bj.sort((_,aM)=>{var kM;const hM=_.latestCompletionDate!=="No valid date"?ot(_.latestCompletionDate):null,VM=aM.latestCompletionDate!=="No valid date"?ot(aM.latestCompletionDate):null;return hM&&VM?VM-hM:!hM&&!VM?(kM=_.skillname)==null?void 0:kM.localeCompare(aM.name):hM?-1:1})}catch(Zt){console.warn("Error in log event",Zt)}return!0},zL=tt=>ot(tt,ot.ISO_8601,!0).isValid()&&tt!=="1900-01-01T00:00:00Z",Nj=async tt=>{var xt,qt;const FM={learning_path_id:tt},{data:vt}=await VL("summary-table/plan/details",FM);console.log("data",vt),Gt.value=(xt=vt.response)==null?void 0:xt.myPlanDetails,(qt=vt.response)!=null&&qt.myPlanDetails&&(mt.value="lPDetails")},IL=tt=>{const FM=tt.filter(zL).map(vt=>ot(vt));return FM.length?ot.max(FM).toISOString():"No valid date"},$L=tt=>(tt.forEach(FM=>{const vt=[FM==null?void 0:FM.immerse_last_access,FM==null?void 0:FM.transform_last_access,FM==null?void 0:FM.solidify_last_access];FM.latestCompletionDate=IL(vt)}),tt),aj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj,Zt,cL,QL,sj,ij,iu,qj,_,aM,hM,VM;try{const kM=await ZL("/delphi/getNotification");if(kM!=null&&kM.data&&!((tt=kM==null?void 0:kM.data)!=null&&tt.error)&&((FM=kM==null?void 0:kM.data)==null?void 0:FM.message)!=="Unauthorized"){a.value=(vt=kM==null?void 0:kM.data)==null?void 0:vt.for_all.notifications.filter(OL=>(OL==null?void 0:OL.display_style)==="popup")[0];const wt=(qt=(xt=kM==null?void 0:kM.data)==null?void 0:xt.for_all)==null?void 0:qt.notifications.filter(OL=>(OL==null?void 0:OL.display_style)!=="popup");y.value=[...(Xt=(XL=kM==null?void 0:kM.data)==null?void 0:XL.filtered)==null?void 0:Xt.notifications,...wt,...(PL=(rL=kM==null?void 0:kM.data)==null?void 0:rL.ohr)==null?void 0:PL.notifications],D.value=[...(gL=(bL=kM==null?void 0:kM.data)==null?void 0:bL.filtered)==null?void 0:gL.notifications,...(Kj=(Ej=kM==null?void 0:kM.data)==null?void 0:Ej.for_all)==null?void 0:Kj.notifications,...(_j=(Rj=kM==null?void 0:kM.data)==null?void 0:Rj.ohr)==null?void 0:_j.notifications],c.value=[...(FL=(wj=kM==null?void 0:kM.data)==null?void 0:wj.for_all)==null?void 0:FL.banners,...(Zt=(Bj=kM==null?void 0:kM.data)==null?void 0:Bj.filtered)==null?void 0:Zt.banners,...(QL=(cL=kM==null?void 0:kM.data)==null?void 0:cL.ohr)==null?void 0:QL.banners],n.value=[...(ij=(sj=kM==null?void 0:kM.data)==null?void 0:sj.for_all)==null?void 0:ij.popups,...(qj=(iu=kM==null?void 0:kM.data)==null?void 0:iu.filtered)==null?void 0:qj.popups,...(aM=(_=kM==null?void 0:kM.data)==null?void 0:_.ohr)==null?void 0:aM.popups],(hM=n.value)!=null&&hM.length&&(PM.value=!0,await WL());const Wt=ot(),aL=Wt.clone().subtract(3,"days");pM.value=(VM=y.value)==null?void 0:VM.some(OL=>ot(OL==null?void 0:OL.starts).isBetween(aL,Wt,null,"[)"))}}catch{}},TL=async()=>{var tt,FM,vt,xt,qt,XL;try{let Xt=[];Nt.value?Xt=await ZL("/summary-table/learner/inferred_skills/v7"):Xt=await ZL("/summary-table/learner/inferred_skills"),Xt!=null&&Xt.data&&!((tt=Xt==null?void 0:Xt.data)!=null&&tt.error)&&((FM=Xt==null?void 0:Xt.data)==null?void 0:FM.message)!=="Unauthorized"&&(z.value=hL((xt=(vt=Xt==null?void 0:Xt.data)==null?void 0:vt.response)==null?void 0:xt.ai_aware_skills_response,"skill_order"),I.value=(XL=(qt=Xt==null?void 0:Xt.data)==null?void 0:qt.response)==null?void 0:XL.build_skills_response,ML.value=z.value.map(rL=>({skill:rL.skill_name||rL.academy_name,proficiency:rL.proficiency||"",action_type:rL.action_taken==="no"?"add_to_my_plan":rL.action_type})),console.log("selectedAIQuotientSkills",ML.value),console.log("AiAwareSkillArray",z.value),console.log("AiBuildSkillArray",I.value))}catch(Xt){console.log("errormessage.value",Xt)}},WL=async()=>{var tt,FM,vt,xt,qt,XL;try{let Xt=[];const rL=await ZL("/summary-table/learner/inferred_skills");if(rL!=null&&rL.data&&!((tt=rL==null?void 0:rL.data)!=null&&tt.error)&&((FM=rL==null?void 0:rL.data)==null?void 0:FM.message)!=="Unauthorized"){Xt=(xt=(vt=rL==null?void 0:rL.data)==null?void 0:vt.response)==null?void 0:xt.response,s.value=(XL=(qt=rL==null?void 0:rL.data)==null?void 0:qt.response)==null?void 0:XL.response,console.log("delphiStore.rawinferredSkillarray-------",s.value),Xt==null||Xt.forEach(gL=>{gL.checked=!0});const PL=new Map,bL=new Set;Xt.forEach(gL=>{gL.parent_skill_id!==null&&bL.add(gL.parent_skill_id)}),Xt.forEach(gL=>{const{parent_skill_id:Ej,parent_skill_name:Kj,skill_master_id:Rj,skill_name:_j}=gL;if(Ej!==null&&Kj){const wj=`${Ej}_${Kj}`;PL.has(wj)||PL.set(wj,{parent_skill_id:Ej,parent_skill_name:Kj,subskill:[]}),PL.get(wj).subskill.push(gL)}else if(!bL.has(gL.skill_master_id)){const wj=`top_${gL.skill_master_id}`;PL.set(wj,{parent_skill_id:null,parent_skill_name:_j,subskill:[gL]})}}),r.value=Array.from(PL.values()),console.log("Inferred",r.value)}}catch{}},sL=async()=>{var tt,FM;try{const vt=await ZL("/delphi/getNotification?filter=ohr");vt!=null&&vt.data&&!((tt=vt==null?void 0:vt.data)!=null&&tt.error)&&((FM=vt==null?void 0:vt.data)==null||FM.message)}catch{}},oL=async()=>{var tt,FM;try{const vt=await ZL("/delphi/getNotification?filter=filtered");vt!=null&&vt.data&&!((tt=vt==null?void 0:vt.data)!=null&&tt.error)&&((FM=vt==null?void 0:vt.data)==null||FM.message)}catch{}},hj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj,Zt,cL,QL,sj,ij,iu,qj,_,aM,hM,VM;try{const kM=await ZL("/delphi/v2/myprofile");kM&&!(kM!=null&&kM.error)&&(Mt.value=((FM=(tt=kM==null?void 0:kM.data)==null?void 0:tt.role_function)==null?void 0:FM.function)!==null,Pt.value=(qt=(xt=(vt=kM==null?void 0:kM.data)==null?void 0:vt.role_function)==null?void 0:xt.function)==null?void 0:qt.name,jL.value=(rL=(Xt=(XL=kM==null?void 0:kM.data)==null?void 0:XL.role_function)==null?void 0:Xt.role)==null?void 0:rL.name,oM.value=(PL=kM==null?void 0:kM.data)==null?void 0:PL.my_profile_last_refresh_date,p.value=kM==null?void 0:kM.data,f.value=(bL=kM==null?void 0:kM.data)==null?void 0:bL.manager_assessment,(Kj=(Ej=(gL=kM==null?void 0:kM.data)==null?void 0:gL.manager_assessment)==null?void 0:Ej.skill_data)!=null&&Kj.length?R.value=await((_j=(Rj=kM==null?void 0:kM.data)==null?void 0:Rj.merged_profile)==null?void 0:_j.map(wt=>{var aL,OL;const Wt=(OL=(aL=kM==null?void 0:kM.data)==null?void 0:aL.manager_assessment.skill_data)==null?void 0:OL.find(rj=>(rj==null?void 0:rj.skill_id)===(wt==null?void 0:wt.skill_id));return Wt?{...wt,managerReview:!0,managerReviewprof:Wt==null?void 0:Wt.manager_reco_proficiency}:{...wt}})):R.value=(wj=kM==null?void 0:kM.data)==null?void 0:wj.merged_profile,((FL=kM==null?void 0:kM.data)==null?void 0:FL.skill_validation_matrix)!==null&&((Bj=kM==null?void 0:kM.data)!=null&&Bj.skill_validation_matrix)&&((QL=(cL=(Zt=kM==null?void 0:kM.data)==null?void 0:Zt.skill_validation_matrix[0])==null?void 0:cL.mandateData)!=null&&QL.master)?ZM.value=(iu=(ij=(sj=kM==null?void 0:kM.data)==null?void 0:sj.skill_validation_matrix[0])==null?void 0:ij.mandateData)==null?void 0:iu.master:ZM.value=[{masterType:"industry",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"service_line_or_domain",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"digital_technology",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"proff_skill",Recommendation:[{type:"mandatory",description:"Following are the recommended skill(s) for your role. These are automatically added to your My Plan"},{type:"nonmandatory",minSelect:0,description:""}]}],h.value=(_=(qj=kM==null?void 0:kM.data)==null?void 0:qj.role_function)==null?void 0:_.function,w.value=(hM=(aM=kM==null?void 0:kM.data)==null?void 0:aM.role_function)==null?void 0:hM.role,Tt.value=(VM=kM==null?void 0:kM.data)==null?void 0:VM.profile_status)}catch(kM){console.log("errormessage.value",kM)}},bj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj;localStorage.setItem("ohrId","");try{const{data:Zt}=await ZL("/delphi/init");if(Zt&&!(Zt!=null&&Zt.error)){if(localStorage.setItem("ohrId",Zt==null?void 0:Zt.learner_ohr),wM.value=Zt==null?void 0:Zt.learner_ohr,rM.value=Zt==null?void 0:Zt.allow_access,Lt.value=Zt==null?void 0:Zt.downTimeMessage,Zt!=null&&Zt.allow_access){o.value=Zt,Nt.value=(tt=o.value)==null?void 0:tt.is_v7_access,(FM=o.value)!=null&&FM.global_preference||(xt=(vt=o.value)==null?void 0:vt.learnerPreferences)!=null&&xt.user_preference?(KM.value=!0,console.log("The Api is fetching data fron summary table")):KM.value=!1,kL.value=(XL=(qt=o.value)==null?void 0:qt.ofconEntry)==null?void 0:XL.BAND_GRADE,kL.value&&(SL.value=(Xt=kL.value)==null?void 0:Xt.split("..")[1]),_M.value=(PL=(rL=o.value)==null?void 0:rL.learnerPreferences)==null?void 0:PL.ad_image,nM.value=(bL=o.value)==null?void 0:bL.top_skills,jM.value=(gL=Zt==null?void 0:Zt.existingDelphiJourney)==null?void 0:gL.journey_current_state,eM.value=(Zt==null?void 0:Zt.emp_name)||"",console.log("initArray.value?.learnerPreferences?.language",(Kj=(Ej=o.value)==null?void 0:Ej.learnerPreferences)==null?void 0:Kj.language),((_j=(Rj=o.value)==null?void 0:Rj.learnerPreferences)==null?void 0:_j.language)!==null?UM.value=(FL=(wj=o.value)==null?void 0:wj.learnerPreferences)==null?void 0:FL.language:UM.value="en",DL.value=(Bj=Zt==null?void 0:Zt.learnerPreferences)==null?void 0:Bj.dont_show_popup_at_login;const QL=ot();await Promise.all([aj(),pL(),yj(),B4(),Pu(),c4(),hj(),Lj(Zt==null?void 0:Zt.learner_ohr),TL()])}const cL=G(["EMPLOYEE_NAME","BAND_GRADE","EMPLOYEE_DESIGNATION","language","Region","town_or_city","Job_Family_Group","JOB_PROFILE","unit","vertical","GTM","mdm_capability","JOB_FAMILY","NATURE_OF_WORK"]);lM.value=Object.fromEntries(cL.value.map(QL=>[QL,Zt==null?void 0:Zt.ofconEntry[QL]])),S.value=!0}}catch(Zt){UM.value="en",console.log("errormessage.value",Zt),Zt.response?N.value=Zt.response.data.message:Zt.message?N.value=Zt.message:N.value="Failed to load api"}},vu=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL;try{const{data:gL}=await ZL("/summary-table/plan");gL&&(console.log("myplansummarydata",(FM=(tt=gL==null?void 0:gL.response)==null?void 0:tt.myplan)==null?void 0:FM.my_skill_plan),GM.value=(xt=(vt=gL==null?void 0:gL.response)==null?void 0:vt.myplan)==null?void 0:xt.my_skill_plan.filter(Ej=>Ej.skill_plan_completed===0).map(Ej=>({skill:Ej.skill,proficiency:Ej.proficiency})),Et.value=(XL=(qt=gL==null?void 0:gL.response)==null?void 0:qt.myplan)==null?void 0:XL.my_skill_plan.filter(Ej=>Ej.skill_plan_completed===-1).map(Ej=>({skill:Ej.skill,proficiency:Ej.proficiency})),St.value=(rL=(Xt=gL==null?void 0:gL.response)==null?void 0:Xt.myplan)==null?void 0:rL.my_skill_plan,it.value=(bL=(PL=gL==null?void 0:gL.response)==null?void 0:PL.myplan)==null?void 0:bL.my_academy_plan)}catch(gL){console.log("errormessage.value",gL),gL.response?N.value=gL.response.data.message:gL.message?N.value=gL.message:N.value="Failed to load api"}},tj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL;try{const{data:bL}=await ZL("/summary-table/performance");if(bL){CL.value=(tt=bL==null?void 0:bL.response)==null?void 0:tt.myperformance;const gL=[{skills:["Hi-Tech (Consumer Electronics)","Hi-Tech (Software and Internet)","Hi-Tech (Commercial Equipments, Semi-Conductors, Hardware)"],category:"Hi-Tech"},{skills:["Manufacturing - Automotive","Manufacturing - Industrial Machinery","Manufacturing - Aerospace & Defense","Manufacturing - Process Industries"],category:"Industrial Manufacturing"},{skills:["Pharmaceutical and Life Sciences","Healthcare Payors"],category:"Life Sciences and Healthcare"},{skills:["Supply Chain Management - PLAN","Supply Chain Management - AFTERSALES","Supply Chain Management - MAKE/DELIVER"],category:"Supply Chain Management"}],Ej=(vt=(FM=bL==null?void 0:bL.response)==null?void 0:FM.myperformance)==null?void 0:vt.my_skill_performance,Kj=(Rj,_j)=>{const wj=[],FL=new Set;return Rj.forEach(Bj=>{const Zt=_j.find(cL=>cL.skills.some(QL=>Bj.skill.includes(QL)));if(Zt){const cL=`${Zt.category}-${Bj.proficiency}`;FL.has(cL)||(wj.push({...Bj,skill:Zt.category,Channel:Zt.category}),FL.add(cL))}else wj.push({...Bj,Channel:null})}),wj};if(CL.value.my_skill_performance=Kj(Ej,gL),console.log("myperformanceSummaryvalue.value",CL.value),((qt=(xt=CL.value)==null?void 0:xt.learner_score_history_trend)==null?void 0:qt.length)>0){const Rj=(Xt=(XL=CL.value)==null?void 0:XL.learner_score_history_trend)==null?void 0:Xt.reduce((FL,Bj)=>(FL[Bj.ls_year]=FL[Bj.ls_year]||[],FL[Bj.ls_year].push(Bj),FL),{}),_j=hL(Rj,"ls_month").reverse(),wj=hL(_j[0],"ls_month").reverse();e.value=Number(wj[0].learner_score_change)}gt.value=(PL=(rL=bL==null?void 0:bL.response)==null?void 0:rL.myperformance)==null?void 0:PL.my_skill_performance.map(Rj=>({skill:Rj.skill,proficiency:Rj.proficiency}))}}catch(bL){console.log("errormessage.value",bL),bL.response?N.value=bL.response.data.message:bL.message?N.value=bL.message:N.value="Failed to load api"}},yj=async()=>{var tt;try{const{data:FM}=await ZL("/summary-table/team-performance");FM&&(vM.value=(tt=FM==null?void 0:FM.response)==null?void 0:tt.myTeamPerformance)}catch{}},R4=async()=>{try{const{data:tt}=await ZL("/delphi/existing/subskill/parent");tt&&!(tt!=null&&tt.error)&&(x.value=tt==null?void 0:tt.existingSubskillParentSkills)}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},TN=async()=>{var tt;try{let FM=(tt=eM.value)==null?void 0:tt.split(",").map(xt=>xt.trim()),vt="";if((FM==null?void 0:FM.length)>1)vt=FM.map(xt=>xt[0]).join("");else{let xt=FM[0].split(" ");(xt==null?void 0:xt.length)>1?vt=xt[0][0]+xt[(xt==null?void 0:xt.length)-1][0]:vt=xt[0].slice(0,2)}DM.value=vt.toUpperCase()}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},BN=async()=>{var tt,FM,vt;try{const xt=await ZL("/delphi/recomended/skills");xt&&!((tt=xt==null?void 0:xt.data)!=null&&tt.error)&&((FM=xt==null?void 0:xt.data)==null||FM.suggestedSkills.forEach(async qt=>{await(x==null?void 0:x.value.forEach(XL=>{(qt==null?void 0:qt.skill_id)===XL&&(qt.recomendedSkillHasSubskillsFlag=!0)}))}),C.value=(vt=xt==null?void 0:xt.data)==null?void 0:vt.suggestedSkills)}catch(xt){console.log("errormessage.value",xt)}},Pu=async()=>{var tt;try{const FM=await ZL("/delphi/top_skills");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(Yt.value=FM==null?void 0:FM.data)}catch(FM){console.log("errormessage.value",FM)}},c4=async()=>{var tt;try{const FM=await ZL("/summary-table/assesment/learner/info");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&!FM.message&&(lt.value=FM==null?void 0:FM.data),console.log("agenticOpertaionsArray",lt.value)}catch(FM){console.log("errormessage.value",FM)}},B4=async()=>{var tt,FM,vt,xt;try{const qt=await ZL("/delphi/skill_ratings_from_voc");qt&&!((FM=(tt=qt==null?void 0:qt.data)==null?void 0:tt.result)!=null&&FM.error)&&(yM.value=(xt=(vt=qt==null?void 0:qt.data)==null?void 0:vt.result)==null?void 0:xt.data)}catch(qt){console.log("errormessage.value",qt),qt.response?N.value=qt.response.data.message:qt.message?N.value=qt.message:N.value="Failed to load api"}},PN=async tt=>{var FM;try{const vt=localStorage.getItem("ohrId")||"",qt=await VL("/data-hose/c2byfulltext",{search:tt,filter:[{key:"type_of_content",value:[]},{key:"content_source",value:[]},{key:"carousel_name",value:[]},{key:"channel_name",value:[]},{key:"proficiency",value:[]},{key:"languagecode",value:["en-US"]},{key:"material_type",value:[]}],orderBy:null,limit:1e7,ohrid:vt,offset:0});if(qt&&!((FM=qt==null?void 0:qt.data)!=null&&FM.error)){const XL=a0M(qt.data.body,"curriculum_title");uM.value=XL}}catch(vt){uM.value=null,vt.response||vt.message}},Ae=async()=>{var tt;try{const FM=await ZL("/delphi/coreskills");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(console.log("coreSkills",FM==null?void 0:FM.data),U.value=FM==null?void 0:FM.data)}catch(FM){console.log("errormessage.value",FM),FM.response||FM.message}},i4=async()=>{var tt,FM,vt,xt,qt,XL;try{const Xt=await ZL("/academy/learner/enrollment");LM.value=(tt=Xt==null?void 0:Xt.data)==null?void 0:tt.learnerEnrollments;const rL=await ZL("/delphi/recommendataion/learning");if(rL&&!((FM=rL==null?void 0:rL.data)!=null&&FM.error))if((vt=Xt==null?void 0:Xt.data)!=null&&vt.learnerEnrollments){const PL=(qt=rL==null?void 0:rL.data)==null?void 0:qt.learnings.filter(bL=>{var gL;return!((gL=Xt==null?void 0:Xt.data)!=null&&gL.learnerEnrollments.some(Ej=>Ej.academyId===bL.learning_path_id))}).concat((xt=Xt==null?void 0:Xt.data)==null?void 0:xt.learnerEnrollments.filter(bL=>{var gL;return!((gL=rL==null?void 0:rL.data)!=null&&gL.learnings.some(Ej=>Ej.learning_path_id===bL.academyId))}));v.value=hL(PL,"learner_enrollement_timestamp")}else v.value=(XL=rL==null?void 0:rL.data)==null?void 0:XL.learnings}catch(Xt){console.log("errormessage.value",Xt),Xt.response?N.value=Xt.response.data.message:Xt.message?N.value=Xt.message:N.value="Failed to load api"}},h4=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj;try{let Zt=await ZL("/delphi/myperformance");if(Zt&&!((tt=Zt==null?void 0:Zt.data)!=null&&tt.error)&&((FM=Zt==null?void 0:Zt.data)==null?void 0:FM.data)!==null){if(B.value=(qt=(xt=(vt=Zt==null?void 0:Zt.data)==null?void 0:vt.data)==null?void 0:xt.manager_team)==null?void 0:qt.data,((rL=(Xt=(XL=Zt==null?void 0:Zt.data)==null?void 0:XL.data)==null?void 0:Xt.performance_history)==null?void 0:rL.data.length)>0){const cL=(Ej=(gL=(bL=(PL=Zt==null?void 0:Zt.data)==null?void 0:PL.data)==null?void 0:bL.performance_history)==null?void 0:gL.data)==null?void 0:Ej.reduce((ij,iu)=>(ij[iu.YEAR]=ij[iu.YEAR]||[],ij[iu.YEAR].push(iu),ij),{}),QL=hL(cL,"MONTH").reverse(),sj=hL(QL[0],"MONTH").reverse();e.value=sj[0].LS_CHANGE}MM.value=(Rj=(Kj=Zt==null?void 0:Zt.data)==null?void 0:Kj.data)==null?void 0:Rj.performance_report,K.value=(wj=(_j=Zt==null?void 0:Zt.data)==null?void 0:_j.data)==null?void 0:wj.manager_bits,$.value=(Bj=(FL=Zt==null?void 0:Zt.data)==null?void 0:FL.data)==null?void 0:Bj.academy_data}else B.value={error:"Manager not found"},await Oy(),await ie()}catch(Zt){console.log("errormessage.value",Zt),Zt.response?N.value=Zt.response.data.message:Zt.message?N.value=Zt.message:N.value="Failed to load api"}},oA=async()=>{var tt;try{const FM=await ZL("/delphi/profile/skills");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(b.value=FM==null?void 0:FM.data)}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},pe=async tt=>{var FM,vt,xt;try{const qt=await x0M(tt);if(qt&&!(qt!=null&&qt.data.errors))return l.value=(xt=(vt=(FM=qt.data)==null?void 0:FM.data)==null?void 0:vt.MyPlan)==null?void 0:xt.data}catch(qt){console.log("errormessage.value",qt),qt.response?N.value=qt.response.data.message:qt.message?N.value=qt.message:N.value="Failed to load api"}},Ju=async tt=>{try{const FM=await O0M([tt])}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},A0=async tt=>{try{const FM=await g0M(tt)}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},lA=async(tt,FM)=>{var vt,xt,qt,XL,Xt,rL;try{const PL=await mh(tt,FM);PL&&!(PL!=null&&PL.data.errors)&&(PL.data.data.Group.Master[0].SkillList=(XL=(qt=(xt=(vt=PL.data)==null?void 0:vt.data)==null?void 0:xt.Group)==null?void 0:qt.Master[0])==null?void 0:XL.SkillList.filter(bL=>(bL==null?void 0:bL.skillId)!=="f5e5ce1f-91fe-42ac-9085-67059c8402d8"&&(bL==null?void 0:bL.skillId)!=="92275259-cf7b-428e-9b23-903efdf5925d"),g.value=(rL=(Xt=PL.data)==null?void 0:Xt.data)==null?void 0:rL.Group)}catch(PL){console.log("errormessage.value",PL),PL.response?N.value=PL.response.data.message:PL.message?N.value=PL.message:N.value="Failed to load api"}},Lj=async tt=>{var FM,vt;try{const xt=await l0M(tt);xt&&!(xt!=null&&xt.data.errors)&&(O.value=(vt=(FM=xt.data)==null?void 0:FM.data)==null?void 0:vt.Employee)}catch(xt){console.log("errormessage.value",xt),xt.response?N.value=xt.response.data.message:xt.message?N.value=xt.message:N.value="Failed to load api"}},i0=async(tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL)=>{var Zt,cL;const Ej=await localStorage.getItem("ohrId")||"";let Kj=[],Rj=[],_j=null;tt&&(tt==="card_duration_minutes"&&(tt="CAST(card_duration_minutes AS INT)"),_j={key:tt,type:FM}),qt&&(Kj=["LinkedIn","Linkedin","linkedin","linkedin.com"]),vt&&(Rj=["Internal|Gknowledge","Internal|Genpact"]),XL||(XL=0);const wj=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/getAccademyByName":"https://api-v2.genpact.com/api/academy/getAccademyByName",FL=((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001"),"https://api-v2.genpact.com/api/data-hose/c2byfulltext"),Bj={search:xt,filter:[{key:"type_of_content",value:Rj},{key:"content_source",value:Kj},{key:"carousel_name",value:Xt},{key:"channel_name",value:rL},{key:"proficiency",value:PL},{key:"languagecode",value:gL},{key:"material_type",value:bL}],orderBy:_j,limit:100,ohrid:Ej,offset:XL};try{const QL=await $X(`${FL}`,Bj),sj=[];(Zt=QL==null?void 0:QL.data)==null||Zt.body.forEach(_=>{sj.push(_.curriculum_title)});const ij={academyNames:sj},iu=await VL(`${wj}`,ij);let qj=(cL=QL==null?void 0:QL.data)==null?void 0:cL.body.map(_=>{var hM,VM;const aM=(VM=(hM=iu==null?void 0:iu.data)==null?void 0:hM.academies)==null?void 0:VM.find(kM=>(kM==null?void 0:kM.Title)===(_==null?void 0:_.curriculum_title));return aM?{..._,...aM}:_});return bL.includes("Course")?(qj=qj==null?void 0:qj.reduce((_,aM)=>(_.some(hM=>hM.curriculum_deeplink_url===aM.curriculum_deeplink_url)||_.push(aM),_),[]),QL.data.body=qj,QL.data.count=qj==null?void 0:qj.length):QL.data.body=qj,QL==null?void 0:QL.data}catch(QL){console.log("errormessage.value",QL),QL.response?N.value=QL.response.data.message:QL.message?N.value=QL.message:N.value="Failed to load api"}},S0=async tt=>{var vt;const FM=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/learners/enrollment/request":"https://api-v2.genpact.com/api/academy/learners/enrollment/request";try{const xt={academyId:tt},qt=await VL(`${FM}`,xt);return!!((vt=qt==null?void 0:qt.data)!=null&&vt.message)}catch(xt){return console.log("errormessage.value",xt),xt.response?N.value=xt.response.data.message:xt.message?N.value=xt.message:N.value="Failed to load api",!1}},ie=async()=>{var tt;try{const FM=await E0M();FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(MM.value=FM)}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},Oy=async()=>{var tt;try{const FM=await o0M();FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)?$.value=FM:$.value=[]}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}};return{notificationArray:y,userimgvalue:DM,initArray:o,notificationFirstobject:E,userName:eM,existingSubskillParentSkillsArray:x,journeycurrentstate:jM,suggestedSkillsArray:C,academylearningArray:v,myTeamArray:B,skillsArray:b,myplangraphArray:l,myacademyArray:$,performancereportArray:MM,genomeShorts:AM,getGenomeShorts:async()=>{try{const{data:tt}=await ZL("/delphi/shorts");return tt&&!(tt!=null&&tt.error)&&(AM.value=tt),AM.value}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},getShortsContent:async tt=>{var FM,vt;try{const xt=mu.create({baseURL:`https://api-v2.genpact.com/api/dcl/document/${tt}`}),{data:qt}=await xt.get("");if(qt!=null&&qt.response)return(vt=(FM=qt==null?void 0:qt.response)==null?void 0:FM.documentDetails)==null?void 0:vt.asset_url}catch(xt){console.log("errormessage.value",xt),xt.response?N.value=xt.response.data.message:xt.message?N.value=xt.message:N.value="Failed to load api"}},notificationByall:aj,notificationByohr:sL,notificationByfilter:oL,myplanFunction:pe,skillsFunction:oA,userImgFunction:TN,initFunction:bj,existingSubskillParentSkillsFunction:R4,suggestedSkillsFunction:BN,academylearningFunction:i4,performanceFunction:h4,proformancereportFunction:ie,academyFunction:Oy,journeystateFunction:async()=>{var tt;try{const FM=await ZL("/delphi/journey/state");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)?jM.value=FM.data.current_delphi_journey_state:jM.value=""}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},academyListFunction:PN,getAllBuildsForCalendar:async()=>{try{const{data:tt}=await ZL("/academy/v2/build?activeBuilds=true");return tt&&!(tt!=null&&tt.error)&&(ft.value=tt==null?void 0:tt.builds),ft.value}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},showInterstInBuild:async tt=>{try{const{data:FM}=await VL("delphi/saveLearnerBuildInterest",{build_id:tt});return FM}catch(FM){return FM.response?FM.response.data.message:FM.message?FM.message:"Failed to load api"}},getRecoBuilds:async()=>{try{const{data:tt}=await ZL("/delphi/build_reco");return tt&&!(tt!=null&&tt.error)&&(Dt.value=tt==null?void 0:tt.build_info),tt&&!(tt!=null&&tt.error)&&(LL.value=tt==null?void 0:tt.build_recos),Dt.value}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},getBuildById:async tt=>{var vt,xt;let FM=!1;try{const[qt,XL]=await Promise.all([ZL(`academy/v2/build/${tt}`),ZL(`delphi/build_reco/${tt}`)]),{data:Xt}=qt,{data:rL}=XL;return rL&&!(rL!=null&&rL.error)&&(FM=((xt=(vt=rL==null?void 0:rL.build_reco)==null?void 0:vt.is_learner_interested)==null?void 0:xt.toLowerCase())==="true"),Xt&&!(Xt!=null&&Xt.error)&&(JM.value={...Xt==null?void 0:Xt.body,is_learner_interested:FM}),JM.value}catch(qt){console.log("errormessage.value",qt),qt.response?N.value=qt.response.data.message:qt.message?N.value=qt.message:N.value="Failed to load API"}},setPreference:async(tt,FM,vt)=>{try{let xt={};(tt="switch")&&(xt={switch_to:FM}),(tt="dont-show")&&(xt={video_popup:!0,dont_show_again:FM}),await VL("delphi/v3/preference",xt)}catch(xt){console.warn(xt)}},allBuildsForCalendar:ft,buildById:JM,recoBuildInfo:Dt,recoBuildDetails:LL,academyListArray:uM,versionvalue:IM,enteredCoreskillArray:TM,CurrententeredCoreskillArray:Q,versionDatevalue:$M,coreSkillsFunction:Ae,userHashImage:_M,academyEnrolledarray:LM,notificationArrayv6:c,fetchImmerseContent:i0,EnrollAcademy:S0,componentCheckv6:mt,nameInitials:gM,displayAsk:xM,jobsrefcheck:XM,noError:S,errormessage:u,genomeFuntionCheck:Mt,genomeRoleValue:jL,errorMessagetext:N,employeedetailsFunction:Lj,employeeSkillfunction:lA,employeedetailsarray:O,employeeSkillarray:g,ProfileV6function:hj,merged_profileArray:R,functionObject:h,roleObject:w,IdealProfilefunction:Ju,descriptionfunction:A0,profileStatus:Tt,skillratingArray:yM,topskillArray:nM,profileInfodata:p,logEventOnClick:YL,initSkilluploadArray:Ot,fetchEmployeeDetails:async tt=>{var vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j;const FM=`query Employee($ohrId: String) {
|
|
301
|
+
`;return await mu({method:"post",url:`${bD}/my-profile/graphql`,headers:{authorization:bA},data:{query:M,variables:{payload:L}}})},Vu=async(L,M)=>await mu({method:"post",url:"https://api-v2.genpact.com/api/csod/myplan/link",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:bA},data:{skill:L,proficiency:M}}),Du=async L=>(L==="SAP HANA (Beginner) Academy"&&(L="SAP S/4HANA (Beginner) Academy"),await mu({method:"post",url:"https://api-v2.genpact.com/api/csod/curriculum/url",headers:{"x-oauth-config-provider":"genome-open-auth",authorization:bA},data:{curriculum_title:L}})),sg=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5002")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api":"https://api-v2.genpact.com/api",d0M=hz("delphi",()=>{const L=G(!1),M=G(!1),t=G(!1),j=G(!1),u=G(!1),N=G(""),e=G("0"),A=G(!1),i=G(""),S=G(!1),y=G([]),D=G([]),n=G([]),r=G([]),s=G([]);G([]);const I=G([]),z=G([]),c=G([]),a=G([]),E=G({}),o=G([]),x=G([]),Q=G([]),C=G([]),U=G([]),v=G([]),b=G([]),p=G(),R=G([]),f=G([]),h=G(),w=G(),l=G([]),g=G([]),O=G([]),d=G([]),k=G([]),H=G([]),P=G([]),Z=G([]),X=G([]),tM=G([]),V=G([]),q=G([]),F=G({}),B=G([]),K=G([]),nM=G([]),yM=G([]),$=G([]),MM=G([]),TM=G([]),uM=G([]),LM=G([]),eM=G(""),jM=G(""),AM=G({}),DM=G(""),IM=G(""),UM=G(null),oM=G(""),YM=G(""),bM=G(""),$M=G(""),et=G(""),Lt=G(""),It=G(!1),_M=G(),mt=G(),XM=G(),gM=G(),xM=G(!0),Mt=G(!1),QM=G(!1),Dt=G([]),ZM=G(),Ot=G([]),LL=G([]),ft=G([]),JM=G({}),Tt=G(),Pt=G(),jL=G(),DL=G(),kL=G(),SL=G(),Ht=G(),UL=G({}),At=G({}),rM=G(!1),pM=G(!1),RM=G(),WM=G(!1),KM=G(!1),St=G(),it=G(),Yt=G(),lt=G(),tL=G(),Kt=G(),Gt=G(),wM=G(),CL=G(!1),vM=G(!1),PM=G(!1),Nt=G(!1),lM=G({}),GM=G([]),Et=G([]),gt=G([]),ML=G([]),Rt=G([]),pt=/\b(1|2|3|4A|4B|4C|4D|5A|5B|SVP|Master Data Not Found)\b/gi,RL=G([{ID:"97103561-8dc3-4fe7-ad0a-4f8dedac8f6b",code:1,Slug:"B",Title:"beginner",Title2:"Beginner"},{ID:"407b8b7b-b3ac-4074-b129-c66d22eb78d4",code:2,Slug:"I",Title:"intermediate",Title2:"Intermediate"},{ID:"5ed7edb5-3967-4bda-aa2a-093c069df241",code:3,Slug:"P",Title:"proficient",Title2:"Proficient"},{ID:"dea6184e-8d52-4852-a6cb-daf633e36f18",code:4,Slug:"E",Title:"expert",Title2:"Expert"}]),YL=async tt=>{tt.module="Delphi";try{await VL("/delphi/event",tt)}catch(FM){console.warn("Error in log event",FM)}return!0},pL=async()=>{var bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj;const tt=[],FM=[],vt=[],xt=[],qt=[],XL=[],Xt=[],rL=[],PL=[];try{await Promise.all([vu(),pe(wM.value)]),FM.value=await l.value;const Zt=await St.value;vt.value=await it.value,vt.value=(bL=vt.value)==null?void 0:bL.map(({academy_completion_date:_,...aM})=>({latestCompletionDate:_,...aM})),console.log("academy_data",vt.value);const cL=(gL=FM==null?void 0:FM.value)==null?void 0:gL.filter(_=>_.mastername==="Industry");xt.value=cL.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}});const QL=(Ej=FM==null?void 0:FM.value)==null?void 0:Ej.filter(_=>_.mastername==="Service Line Or Domain");qt.value=QL.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}});const sj=(Kj=FM==null?void 0:FM.value)==null?void 0:Kj.filter(_=>_.mastername==="Digital Technology");XL.value=sj.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}});const ij=(Rj=FM==null?void 0:FM.value)==null?void 0:Rj.filter(_=>_.mastername==="Proff Skill");Xt.value=ij.map(_=>{const aM=Zt==null?void 0:Zt.find(hM=>{var VM,kM;return hM.skill_id===_.skillid&&((VM=hM.proficiency)==null?void 0:VM.toLowerCase())===((kM=_.currentproficient)==null?void 0:kM.toLowerCase())});return aM?{..._,...aM}:{..._,skill_plan:2,skill_plan_completed:-1,immerse_position:"0",immerse_percentage_category:"NULL",dial_position:"S1"}}),rL.value=[...xt.value,...qt.value,...XL.value,...Xt.value];const iu=await rL.value.map(_=>{var hM;const aM=(hM=yM.value)==null?void 0:hM.find(VM=>(VM==null?void 0:VM.skill)===(_==null?void 0:_.skillid)&&(VM==null?void 0:VM.proficiencyName)===(_==null?void 0:_.currentproficient));return aM?{..._,...aM}:{..._}});PL.value=await(iu==null?void 0:iu.map(_=>{var hM;return((hM=nM.value)==null?void 0:hM.find(VM=>(VM==null?void 0:VM.skill_id)===(_==null?void 0:_.skillid)))?{..._,Trending:!0}:{..._}}));const qj=[...PL.value,...vt.value];return console.log("filteredObjectsAiCapability",qj),console.log("delphiStore?.AiAwareSkillArray",z.value),console.log("delphiStore?.AiBuildSkillArray",I.value),tL.value=await((_j=z.value)==null?void 0:_j.map(_=>{const aM=qj==null?void 0:qj.find(hM=>_!=null&&_.skill_master_id?((hM==null?void 0:hM.skill_id)||(hM==null?void 0:hM.skillid))===(_==null?void 0:_.skill_master_id):(hM==null?void 0:hM.academy_id)===(_==null?void 0:_.academy_id));return aM?{..._,...aM,alreadyInMyPlan:!0}:{..._,alreadyInMyPlan:!1}})),Kt.value=await((wj=I.value)==null?void 0:wj.map(_=>{const aM=qj==null?void 0:qj.find(hM=>_!=null&&_.skill_master_id?((hM==null?void 0:hM.skill_id)||(hM==null?void 0:hM.skillid))===(_==null?void 0:_.skill_master_id):(hM==null?void 0:hM.academy_id)===(_==null?void 0:_.academy_id));return aM?{..._,...aM,alreadyInMyPlan:!0}:{..._,alreadyInMyPlan:!1}})),console.log("delphiStore.aiCapabilityRawDataArray",tL.value),console.log("delphiStore.aiBuildRawDataArray",Kt.value),(FL=vt.value)!=null&&FL.length?tt.value=[...$L(PL.value),...vt.value]:tt.value=$L(PL.value),(Bj=tt.value)==null?void 0:Bj.sort((_,aM)=>{var kM;const hM=_.latestCompletionDate!=="No valid date"?ot(_.latestCompletionDate):null,VM=aM.latestCompletionDate!=="No valid date"?ot(aM.latestCompletionDate):null;return hM&&VM?VM-hM:!hM&&!VM?(kM=_.skillname)==null?void 0:kM.localeCompare(aM.name):hM?-1:1})}catch(Zt){console.warn("Error in log event",Zt)}return!0},zL=tt=>ot(tt,ot.ISO_8601,!0).isValid()&&tt!=="1900-01-01T00:00:00Z",Nj=async tt=>{var xt,qt;const FM={learning_path_id:tt},{data:vt}=await VL("summary-table/plan/details",FM);console.log("data",vt),Gt.value=(xt=vt.response)==null?void 0:xt.myPlanDetails,(qt=vt.response)!=null&&qt.myPlanDetails&&(mt.value="lPDetails")},IL=tt=>{const FM=tt.filter(zL).map(vt=>ot(vt));return FM.length?ot.max(FM).toISOString():"No valid date"},$L=tt=>(tt.forEach(FM=>{const vt=[FM==null?void 0:FM.immerse_last_access,FM==null?void 0:FM.transform_last_access,FM==null?void 0:FM.solidify_last_access];FM.latestCompletionDate=IL(vt)}),tt),aj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj,Zt,cL,QL,sj,ij,iu,qj,_,aM,hM,VM;try{const kM=await ZL("/delphi/getNotification");if(kM!=null&&kM.data&&!((tt=kM==null?void 0:kM.data)!=null&&tt.error)&&((FM=kM==null?void 0:kM.data)==null?void 0:FM.message)!=="Unauthorized"){a.value=(vt=kM==null?void 0:kM.data)==null?void 0:vt.for_all.notifications.filter(OL=>(OL==null?void 0:OL.display_style)==="popup")[0];const wt=(qt=(xt=kM==null?void 0:kM.data)==null?void 0:xt.for_all)==null?void 0:qt.notifications.filter(OL=>(OL==null?void 0:OL.display_style)!=="popup");y.value=[...(Xt=(XL=kM==null?void 0:kM.data)==null?void 0:XL.filtered)==null?void 0:Xt.notifications,...wt,...(PL=(rL=kM==null?void 0:kM.data)==null?void 0:rL.ohr)==null?void 0:PL.notifications],D.value=[...(gL=(bL=kM==null?void 0:kM.data)==null?void 0:bL.filtered)==null?void 0:gL.notifications,...(Kj=(Ej=kM==null?void 0:kM.data)==null?void 0:Ej.for_all)==null?void 0:Kj.notifications,...(_j=(Rj=kM==null?void 0:kM.data)==null?void 0:Rj.ohr)==null?void 0:_j.notifications],c.value=[...(FL=(wj=kM==null?void 0:kM.data)==null?void 0:wj.for_all)==null?void 0:FL.banners,...(Zt=(Bj=kM==null?void 0:kM.data)==null?void 0:Bj.filtered)==null?void 0:Zt.banners,...(QL=(cL=kM==null?void 0:kM.data)==null?void 0:cL.ohr)==null?void 0:QL.banners],n.value=[...(ij=(sj=kM==null?void 0:kM.data)==null?void 0:sj.for_all)==null?void 0:ij.popups,...(qj=(iu=kM==null?void 0:kM.data)==null?void 0:iu.filtered)==null?void 0:qj.popups,...(aM=(_=kM==null?void 0:kM.data)==null?void 0:_.ohr)==null?void 0:aM.popups],(hM=n.value)!=null&&hM.length&&(PM.value=!0,await WL());const Wt=ot(),aL=Wt.clone().subtract(3,"days");pM.value=(VM=y.value)==null?void 0:VM.some(OL=>ot(OL==null?void 0:OL.starts).isBetween(aL,Wt,null,"[)"))}}catch{}},TL=async()=>{var tt,FM,vt,xt,qt,XL;try{let Xt=[];Nt.value?Xt=await ZL("/summary-table/learner/inferred_skills/v7"):Xt=await ZL("/summary-table/learner/inferred_skills"),Xt!=null&&Xt.data&&!((tt=Xt==null?void 0:Xt.data)!=null&&tt.error)&&((FM=Xt==null?void 0:Xt.data)==null?void 0:FM.message)!=="Unauthorized"&&(z.value=hL((xt=(vt=Xt==null?void 0:Xt.data)==null?void 0:vt.response)==null?void 0:xt.ai_aware_skills_response,"skill_order"),I.value=(XL=(qt=Xt==null?void 0:Xt.data)==null?void 0:qt.response)==null?void 0:XL.build_skills_response,ML.value=z.value.map(rL=>({skill:rL.skill_name||rL.academy_name,proficiency:rL.proficiency||"",action_type:rL.action_taken==="no"?"add_to_my_plan":rL.action_type})),console.log("selectedAIQuotientSkills",ML.value),console.log("AiAwareSkillArray",z.value),console.log("AiBuildSkillArray",I.value))}catch(Xt){console.log("errormessage.value",Xt)}},WL=async()=>{var tt,FM,vt,xt,qt,XL;try{let Xt=[];const rL=await ZL("/summary-table/learner/inferred_skills");if(rL!=null&&rL.data&&!((tt=rL==null?void 0:rL.data)!=null&&tt.error)&&((FM=rL==null?void 0:rL.data)==null?void 0:FM.message)!=="Unauthorized"){Xt=(xt=(vt=rL==null?void 0:rL.data)==null?void 0:vt.response)==null?void 0:xt.response,s.value=(XL=(qt=rL==null?void 0:rL.data)==null?void 0:qt.response)==null?void 0:XL.response,console.log("delphiStore.rawinferredSkillarray-------",s.value),Xt==null||Xt.forEach(gL=>{gL.checked=!0});const PL=new Map,bL=new Set;Xt.forEach(gL=>{gL.parent_skill_id!==null&&bL.add(gL.parent_skill_id)}),Xt.forEach(gL=>{const{parent_skill_id:Ej,parent_skill_name:Kj,skill_master_id:Rj,skill_name:_j}=gL;if(Ej!==null&&Kj){const wj=`${Ej}_${Kj}`;PL.has(wj)||PL.set(wj,{parent_skill_id:Ej,parent_skill_name:Kj,subskill:[]}),PL.get(wj).subskill.push(gL)}else if(!bL.has(gL.skill_master_id)){const wj=`top_${gL.skill_master_id}`;PL.set(wj,{parent_skill_id:null,parent_skill_name:_j,subskill:[gL]})}}),r.value=Array.from(PL.values()),console.log("Inferred",r.value)}}catch{}},sL=async()=>{var tt,FM;try{const vt=await ZL("/delphi/getNotification?filter=ohr");vt!=null&&vt.data&&!((tt=vt==null?void 0:vt.data)!=null&&tt.error)&&((FM=vt==null?void 0:vt.data)==null||FM.message)}catch{}},oL=async()=>{var tt,FM;try{const vt=await ZL("/delphi/getNotification?filter=filtered");vt!=null&&vt.data&&!((tt=vt==null?void 0:vt.data)!=null&&tt.error)&&((FM=vt==null?void 0:vt.data)==null||FM.message)}catch{}},hj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj,Zt,cL,QL,sj,ij,iu,qj,_,aM,hM,VM;try{const kM=await ZL("/delphi/v2/myprofile");kM&&!(kM!=null&&kM.error)&&(Mt.value=((FM=(tt=kM==null?void 0:kM.data)==null?void 0:tt.role_function)==null?void 0:FM.function)!==null,Pt.value=(qt=(xt=(vt=kM==null?void 0:kM.data)==null?void 0:vt.role_function)==null?void 0:xt.function)==null?void 0:qt.name,jL.value=(rL=(Xt=(XL=kM==null?void 0:kM.data)==null?void 0:XL.role_function)==null?void 0:Xt.role)==null?void 0:rL.name,oM.value=(PL=kM==null?void 0:kM.data)==null?void 0:PL.my_profile_last_refresh_date,p.value=kM==null?void 0:kM.data,f.value=(bL=kM==null?void 0:kM.data)==null?void 0:bL.manager_assessment,(Kj=(Ej=(gL=kM==null?void 0:kM.data)==null?void 0:gL.manager_assessment)==null?void 0:Ej.skill_data)!=null&&Kj.length?R.value=await((_j=(Rj=kM==null?void 0:kM.data)==null?void 0:Rj.merged_profile)==null?void 0:_j.map(wt=>{var aL,OL;const Wt=(OL=(aL=kM==null?void 0:kM.data)==null?void 0:aL.manager_assessment.skill_data)==null?void 0:OL.find(rj=>(rj==null?void 0:rj.skill_id)===(wt==null?void 0:wt.skill_id));return Wt?{...wt,managerReview:!0,managerReviewprof:Wt==null?void 0:Wt.manager_reco_proficiency}:{...wt}})):R.value=(wj=kM==null?void 0:kM.data)==null?void 0:wj.merged_profile,((FL=kM==null?void 0:kM.data)==null?void 0:FL.skill_validation_matrix)!==null&&((Bj=kM==null?void 0:kM.data)!=null&&Bj.skill_validation_matrix)&&((QL=(cL=(Zt=kM==null?void 0:kM.data)==null?void 0:Zt.skill_validation_matrix[0])==null?void 0:cL.mandateData)!=null&&QL.master)?ZM.value=(iu=(ij=(sj=kM==null?void 0:kM.data)==null?void 0:sj.skill_validation_matrix[0])==null?void 0:ij.mandateData)==null?void 0:iu.master:ZM.value=[{masterType:"industry",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"service_line_or_domain",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"digital_technology",Recommendation:[{type:"mandatory",description:""},{type:"nonmandatory",minSelect:0,description:""}]},{masterType:"proff_skill",Recommendation:[{type:"mandatory",description:"Following are the recommended skill(s) for your role. These are automatically added to your My Plan"},{type:"nonmandatory",minSelect:0,description:""}]}],h.value=(_=(qj=kM==null?void 0:kM.data)==null?void 0:qj.role_function)==null?void 0:_.function,w.value=(hM=(aM=kM==null?void 0:kM.data)==null?void 0:aM.role_function)==null?void 0:hM.role,Tt.value=(VM=kM==null?void 0:kM.data)==null?void 0:VM.profile_status)}catch(kM){console.log("errormessage.value",kM)}},bj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj;localStorage.setItem("ohrId","");try{const{data:Zt}=await ZL("/delphi/init");if(Zt&&!(Zt!=null&&Zt.error)){if(localStorage.setItem("ohrId",Zt==null?void 0:Zt.learner_ohr),wM.value=Zt==null?void 0:Zt.learner_ohr,rM.value=Zt==null?void 0:Zt.allow_access,Lt.value=Zt==null?void 0:Zt.downTimeMessage,Zt!=null&&Zt.allow_access){o.value=Zt,Nt.value=(tt=o.value)==null?void 0:tt.is_v7_access,(FM=o.value)!=null&&FM.global_preference||(xt=(vt=o.value)==null?void 0:vt.learnerPreferences)!=null&&xt.user_preference?(KM.value=!0,console.log("The Api is fetching data fron summary table")):KM.value=!1,kL.value=(XL=(qt=o.value)==null?void 0:qt.ofconEntry)==null?void 0:XL.BAND_GRADE,kL.value&&(SL.value=(Xt=kL.value)==null?void 0:Xt.split("..")[1]),_M.value=(PL=(rL=o.value)==null?void 0:rL.learnerPreferences)==null?void 0:PL.ad_image,nM.value=(bL=o.value)==null?void 0:bL.top_skills,jM.value=(gL=Zt==null?void 0:Zt.existingDelphiJourney)==null?void 0:gL.journey_current_state,eM.value=(Zt==null?void 0:Zt.emp_name)||"",console.log("initArray.value?.learnerPreferences?.language",(Kj=(Ej=o.value)==null?void 0:Ej.learnerPreferences)==null?void 0:Kj.language),((_j=(Rj=o.value)==null?void 0:Rj.learnerPreferences)==null?void 0:_j.language)!==null?UM.value=(FL=(wj=o.value)==null?void 0:wj.learnerPreferences)==null?void 0:FL.language:UM.value="en",DL.value=(Bj=Zt==null?void 0:Zt.learnerPreferences)==null?void 0:Bj.dont_show_popup_at_login;const QL=ot();await Promise.all([aj(),pL(),yj(),B4(),Pu(),c4(),hj(),Lj(Zt==null?void 0:Zt.learner_ohr),TL()])}const cL=G(["EMPLOYEE_NAME","BAND_GRADE","EMPLOYEE_DESIGNATION","language","Region","town_or_city","Job_Family_Group","JOB_PROFILE","unit","vertical","GTM","mdm_capability","JOB_FAMILY","NATURE_OF_WORK"]);lM.value=Object.fromEntries(cL.value.map(QL=>[QL,Zt==null?void 0:Zt.ofconEntry[QL]])),S.value=!0}}catch(Zt){UM.value="en",console.log("errormessage.value",Zt),Zt.response?N.value=Zt.response.data.message:Zt.message?N.value=Zt.message:N.value="Failed to load api"}},vu=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL;try{const{data:gL}=await ZL("/summary-table/plan");gL&&(console.log("myplansummarydata",(FM=(tt=gL==null?void 0:gL.response)==null?void 0:tt.myplan)==null?void 0:FM.my_skill_plan),GM.value=(xt=(vt=gL==null?void 0:gL.response)==null?void 0:vt.myplan)==null?void 0:xt.my_skill_plan.filter(Ej=>Ej.skill_plan_completed===0).map(Ej=>({skill:Ej.skill,proficiency:Ej.proficiency})),Et.value=(XL=(qt=gL==null?void 0:gL.response)==null?void 0:qt.myplan)==null?void 0:XL.my_skill_plan.filter(Ej=>Ej.skill_plan_completed===-1).map(Ej=>({skill:Ej.skill,proficiency:Ej.proficiency})),St.value=(rL=(Xt=gL==null?void 0:gL.response)==null?void 0:Xt.myplan)==null?void 0:rL.my_skill_plan,it.value=(bL=(PL=gL==null?void 0:gL.response)==null?void 0:PL.myplan)==null?void 0:bL.my_academy_plan)}catch(gL){console.log("errormessage.value",gL),gL.response?N.value=gL.response.data.message:gL.message?N.value=gL.message:N.value="Failed to load api"}},tj=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL;try{const{data:bL}=await ZL("/summary-table/performance");if(bL){CL.value=(tt=bL==null?void 0:bL.response)==null?void 0:tt.myperformance;const gL=[{skills:["Hi-Tech (Consumer Electronics)","Hi-Tech (Software and Internet)","Hi-Tech (Commercial Equipments, Semi-Conductors, Hardware)"],category:"Hi-Tech"},{skills:["Manufacturing - Automotive","Manufacturing - Industrial Machinery","Manufacturing - Aerospace & Defense","Manufacturing - Process Industries"],category:"Industrial Manufacturing"},{skills:["Pharmaceutical and Life Sciences","Healthcare Payors"],category:"Life Sciences and Healthcare"},{skills:["Supply Chain Management - PLAN","Supply Chain Management - AFTERSALES","Supply Chain Management - MAKE/DELIVER"],category:"Supply Chain Management"}],Ej=(vt=(FM=bL==null?void 0:bL.response)==null?void 0:FM.myperformance)==null?void 0:vt.my_skill_performance,Kj=(Rj,_j)=>{const wj=[],FL=new Set;return Rj.forEach(Bj=>{const Zt=_j.find(cL=>cL.skills.some(QL=>Bj.skill.includes(QL)));if(Zt){const cL=`${Zt.category}-${Bj.proficiency}`;FL.has(cL)||(wj.push({...Bj,skill:Zt.category,Channel:Zt.category}),FL.add(cL))}else wj.push({...Bj,Channel:null})}),wj};if(CL.value.my_skill_performance=Kj(Ej,gL),console.log("myperformanceSummaryvalue.value",CL.value),((qt=(xt=CL.value)==null?void 0:xt.learner_score_history_trend)==null?void 0:qt.length)>0){const Rj=(Xt=(XL=CL.value)==null?void 0:XL.learner_score_history_trend)==null?void 0:Xt.reduce((FL,Bj)=>(FL[Bj.ls_year]=FL[Bj.ls_year]||[],FL[Bj.ls_year].push(Bj),FL),{}),_j=hL(Rj,"ls_month").reverse(),wj=hL(_j[0],"ls_month").reverse();e.value=Number(wj[0].learner_score_change)}gt.value=(PL=(rL=bL==null?void 0:bL.response)==null?void 0:rL.myperformance)==null?void 0:PL.my_skill_performance.map(Rj=>({skill:Rj.skill,proficiency:Rj.proficiency}))}}catch(bL){console.log("errormessage.value",bL),bL.response?N.value=bL.response.data.message:bL.message?N.value=bL.message:N.value="Failed to load api"}},yj=async()=>{var tt;try{const{data:FM}=await ZL("/summary-table/team-performance");FM&&(vM.value=(tt=FM==null?void 0:FM.response)==null?void 0:tt.myTeamPerformance)}catch{}},R4=async()=>{try{const{data:tt}=await ZL("/delphi/existing/subskill/parent");tt&&!(tt!=null&&tt.error)&&(x.value=tt==null?void 0:tt.existingSubskillParentSkills)}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},TN=async()=>{var tt;try{let FM=(tt=eM.value)==null?void 0:tt.split(",").map(xt=>xt.trim()),vt="";if((FM==null?void 0:FM.length)>1)vt=FM.map(xt=>xt[0]).join("");else{let xt=FM[0].split(" ");(xt==null?void 0:xt.length)>1?vt=xt[0][0]+xt[(xt==null?void 0:xt.length)-1][0]:vt=xt[0].slice(0,2)}DM.value=vt.toUpperCase()}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},BN=async()=>{var tt,FM,vt;try{const xt=await ZL("/delphi/recomended/skills");xt&&!((tt=xt==null?void 0:xt.data)!=null&&tt.error)&&((FM=xt==null?void 0:xt.data)==null||FM.suggestedSkills.forEach(async qt=>{await(x==null?void 0:x.value.forEach(XL=>{(qt==null?void 0:qt.skill_id)===XL&&(qt.recomendedSkillHasSubskillsFlag=!0)}))}),C.value=(vt=xt==null?void 0:xt.data)==null?void 0:vt.suggestedSkills)}catch(xt){console.log("errormessage.value",xt)}},Pu=async()=>{var tt;try{const FM=await ZL("/delphi/top_skills");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(Yt.value=FM==null?void 0:FM.data)}catch(FM){console.log("errormessage.value",FM)}},c4=async()=>{var tt;try{const FM=await ZL("/summary-table/learner_assessment/info");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&!FM.message&&(lt.value=FM==null?void 0:FM.data),console.log("agenticOpertaionsArray",lt.value)}catch(FM){console.log("errormessage.value",FM)}},B4=async()=>{var tt,FM,vt,xt;try{const qt=await ZL("/delphi/skill_ratings_from_voc");qt&&!((FM=(tt=qt==null?void 0:qt.data)==null?void 0:tt.result)!=null&&FM.error)&&(yM.value=(xt=(vt=qt==null?void 0:qt.data)==null?void 0:vt.result)==null?void 0:xt.data)}catch(qt){console.log("errormessage.value",qt),qt.response?N.value=qt.response.data.message:qt.message?N.value=qt.message:N.value="Failed to load api"}},PN=async tt=>{var FM;try{const vt=localStorage.getItem("ohrId")||"",qt=await VL("/data-hose/c2byfulltext",{search:tt,filter:[{key:"type_of_content",value:[]},{key:"content_source",value:[]},{key:"carousel_name",value:[]},{key:"channel_name",value:[]},{key:"proficiency",value:[]},{key:"languagecode",value:["en-US"]},{key:"material_type",value:[]}],orderBy:null,limit:1e7,ohrid:vt,offset:0});if(qt&&!((FM=qt==null?void 0:qt.data)!=null&&FM.error)){const XL=a0M(qt.data.body,"curriculum_title");uM.value=XL}}catch(vt){uM.value=null,vt.response||vt.message}},Ae=async()=>{var tt;try{const FM=await ZL("/delphi/coreskills");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(console.log("coreSkills",FM==null?void 0:FM.data),U.value=FM==null?void 0:FM.data)}catch(FM){console.log("errormessage.value",FM),FM.response||FM.message}},i4=async()=>{var tt,FM,vt,xt,qt,XL;try{const Xt=await ZL("/academy/learner/enrollment");LM.value=(tt=Xt==null?void 0:Xt.data)==null?void 0:tt.learnerEnrollments;const rL=await ZL("/delphi/recommendataion/learning");if(rL&&!((FM=rL==null?void 0:rL.data)!=null&&FM.error))if((vt=Xt==null?void 0:Xt.data)!=null&&vt.learnerEnrollments){const PL=(qt=rL==null?void 0:rL.data)==null?void 0:qt.learnings.filter(bL=>{var gL;return!((gL=Xt==null?void 0:Xt.data)!=null&&gL.learnerEnrollments.some(Ej=>Ej.academyId===bL.learning_path_id))}).concat((xt=Xt==null?void 0:Xt.data)==null?void 0:xt.learnerEnrollments.filter(bL=>{var gL;return!((gL=rL==null?void 0:rL.data)!=null&&gL.learnings.some(Ej=>Ej.learning_path_id===bL.academyId))}));v.value=hL(PL,"learner_enrollement_timestamp")}else v.value=(XL=rL==null?void 0:rL.data)==null?void 0:XL.learnings}catch(Xt){console.log("errormessage.value",Xt),Xt.response?N.value=Xt.response.data.message:Xt.message?N.value=Xt.message:N.value="Failed to load api"}},h4=async()=>{var tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j,wj,FL,Bj;try{let Zt=await ZL("/delphi/myperformance");if(Zt&&!((tt=Zt==null?void 0:Zt.data)!=null&&tt.error)&&((FM=Zt==null?void 0:Zt.data)==null?void 0:FM.data)!==null){if(B.value=(qt=(xt=(vt=Zt==null?void 0:Zt.data)==null?void 0:vt.data)==null?void 0:xt.manager_team)==null?void 0:qt.data,((rL=(Xt=(XL=Zt==null?void 0:Zt.data)==null?void 0:XL.data)==null?void 0:Xt.performance_history)==null?void 0:rL.data.length)>0){const cL=(Ej=(gL=(bL=(PL=Zt==null?void 0:Zt.data)==null?void 0:PL.data)==null?void 0:bL.performance_history)==null?void 0:gL.data)==null?void 0:Ej.reduce((ij,iu)=>(ij[iu.YEAR]=ij[iu.YEAR]||[],ij[iu.YEAR].push(iu),ij),{}),QL=hL(cL,"MONTH").reverse(),sj=hL(QL[0],"MONTH").reverse();e.value=sj[0].LS_CHANGE}MM.value=(Rj=(Kj=Zt==null?void 0:Zt.data)==null?void 0:Kj.data)==null?void 0:Rj.performance_report,K.value=(wj=(_j=Zt==null?void 0:Zt.data)==null?void 0:_j.data)==null?void 0:wj.manager_bits,$.value=(Bj=(FL=Zt==null?void 0:Zt.data)==null?void 0:FL.data)==null?void 0:Bj.academy_data}else B.value={error:"Manager not found"},await Oy(),await ie()}catch(Zt){console.log("errormessage.value",Zt),Zt.response?N.value=Zt.response.data.message:Zt.message?N.value=Zt.message:N.value="Failed to load api"}},oA=async()=>{var tt;try{const FM=await ZL("/delphi/profile/skills");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(b.value=FM==null?void 0:FM.data)}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},pe=async tt=>{var FM,vt,xt;try{const qt=await x0M(tt);if(qt&&!(qt!=null&&qt.data.errors))return l.value=(xt=(vt=(FM=qt.data)==null?void 0:FM.data)==null?void 0:vt.MyPlan)==null?void 0:xt.data}catch(qt){console.log("errormessage.value",qt),qt.response?N.value=qt.response.data.message:qt.message?N.value=qt.message:N.value="Failed to load api"}},Ju=async tt=>{try{const FM=await O0M([tt])}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},A0=async tt=>{try{const FM=await g0M(tt)}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},lA=async(tt,FM)=>{var vt,xt,qt,XL,Xt,rL;try{const PL=await mh(tt,FM);PL&&!(PL!=null&&PL.data.errors)&&(PL.data.data.Group.Master[0].SkillList=(XL=(qt=(xt=(vt=PL.data)==null?void 0:vt.data)==null?void 0:xt.Group)==null?void 0:qt.Master[0])==null?void 0:XL.SkillList.filter(bL=>(bL==null?void 0:bL.skillId)!=="f5e5ce1f-91fe-42ac-9085-67059c8402d8"&&(bL==null?void 0:bL.skillId)!=="92275259-cf7b-428e-9b23-903efdf5925d"),g.value=(rL=(Xt=PL.data)==null?void 0:Xt.data)==null?void 0:rL.Group)}catch(PL){console.log("errormessage.value",PL),PL.response?N.value=PL.response.data.message:PL.message?N.value=PL.message:N.value="Failed to load api"}},Lj=async tt=>{var FM,vt;try{const xt=await l0M(tt);xt&&!(xt!=null&&xt.data.errors)&&(O.value=(vt=(FM=xt.data)==null?void 0:FM.data)==null?void 0:vt.Employee)}catch(xt){console.log("errormessage.value",xt),xt.response?N.value=xt.response.data.message:xt.message?N.value=xt.message:N.value="Failed to load api"}},i0=async(tt,FM,vt,xt,qt,XL,Xt,rL,PL,bL,gL)=>{var Zt,cL;const Ej=await localStorage.getItem("ohrId")||"";let Kj=[],Rj=[],_j=null;tt&&(tt==="card_duration_minutes"&&(tt="CAST(card_duration_minutes AS INT)"),_j={key:tt,type:FM}),qt&&(Kj=["LinkedIn","Linkedin","linkedin","linkedin.com"]),vt&&(Rj=["Internal|Gknowledge","Internal|Genpact"]),XL||(XL=0);const wj=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/getAccademyByName":"https://api-v2.genpact.com/api/academy/getAccademyByName",FL=((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001"),"https://api-v2.genpact.com/api/data-hose/c2byfulltext"),Bj={search:xt,filter:[{key:"type_of_content",value:Rj},{key:"content_source",value:Kj},{key:"carousel_name",value:Xt},{key:"channel_name",value:rL},{key:"proficiency",value:PL},{key:"languagecode",value:gL},{key:"material_type",value:bL}],orderBy:_j,limit:100,ohrid:Ej,offset:XL};try{const QL=await $X(`${FL}`,Bj),sj=[];(Zt=QL==null?void 0:QL.data)==null||Zt.body.forEach(_=>{sj.push(_.curriculum_title)});const ij={academyNames:sj},iu=await VL(`${wj}`,ij);let qj=(cL=QL==null?void 0:QL.data)==null?void 0:cL.body.map(_=>{var hM,VM;const aM=(VM=(hM=iu==null?void 0:iu.data)==null?void 0:hM.academies)==null?void 0:VM.find(kM=>(kM==null?void 0:kM.Title)===(_==null?void 0:_.curriculum_title));return aM?{..._,...aM}:_});return bL.includes("Course")?(qj=qj==null?void 0:qj.reduce((_,aM)=>(_.some(hM=>hM.curriculum_deeplink_url===aM.curriculum_deeplink_url)||_.push(aM),_),[]),QL.data.body=qj,QL.data.count=qj==null?void 0:qj.length):QL.data.body=qj,QL==null?void 0:QL.data}catch(QL){console.log("errormessage.value",QL),QL.response?N.value=QL.response.data.message:QL.message?N.value=QL.message:N.value="Failed to load api"}},S0=async tt=>{var vt;const FM=(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("-alpha")||(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:NL&&NL.tagName.toUpperCase()==="SCRIPT"&&NL.src||new URL("v6.umd.min.js",document.baseURI).href).includes("http://localhost:5001")?"https://api-v2-dev.genpact.com/api/academy/learners/enrollment/request":"https://api-v2.genpact.com/api/academy/learners/enrollment/request";try{const xt={academyId:tt},qt=await VL(`${FM}`,xt);return!!((vt=qt==null?void 0:qt.data)!=null&&vt.message)}catch(xt){return console.log("errormessage.value",xt),xt.response?N.value=xt.response.data.message:xt.message?N.value=xt.message:N.value="Failed to load api",!1}},ie=async()=>{var tt;try{const FM=await E0M();FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)&&(MM.value=FM)}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},Oy=async()=>{var tt;try{const FM=await o0M();FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)?$.value=FM:$.value=[]}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}};return{notificationArray:y,userimgvalue:DM,initArray:o,notificationFirstobject:E,userName:eM,existingSubskillParentSkillsArray:x,journeycurrentstate:jM,suggestedSkillsArray:C,academylearningArray:v,myTeamArray:B,skillsArray:b,myplangraphArray:l,myacademyArray:$,performancereportArray:MM,genomeShorts:AM,getGenomeShorts:async()=>{try{const{data:tt}=await ZL("/delphi/shorts");return tt&&!(tt!=null&&tt.error)&&(AM.value=tt),AM.value}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},getShortsContent:async tt=>{var FM,vt;try{const xt=mu.create({baseURL:`https://api-v2.genpact.com/api/dcl/document/${tt}`}),{data:qt}=await xt.get("");if(qt!=null&&qt.response)return(vt=(FM=qt==null?void 0:qt.response)==null?void 0:FM.documentDetails)==null?void 0:vt.asset_url}catch(xt){console.log("errormessage.value",xt),xt.response?N.value=xt.response.data.message:xt.message?N.value=xt.message:N.value="Failed to load api"}},notificationByall:aj,notificationByohr:sL,notificationByfilter:oL,myplanFunction:pe,skillsFunction:oA,userImgFunction:TN,initFunction:bj,existingSubskillParentSkillsFunction:R4,suggestedSkillsFunction:BN,academylearningFunction:i4,performanceFunction:h4,proformancereportFunction:ie,academyFunction:Oy,journeystateFunction:async()=>{var tt;try{const FM=await ZL("/delphi/journey/state");FM&&!((tt=FM==null?void 0:FM.data)!=null&&tt.error)?jM.value=FM.data.current_delphi_journey_state:jM.value=""}catch(FM){console.log("errormessage.value",FM),FM.response?N.value=FM.response.data.message:FM.message?N.value=FM.message:N.value="Failed to load api"}},academyListFunction:PN,getAllBuildsForCalendar:async()=>{try{const{data:tt}=await ZL("/academy/v2/build?activeBuilds=true");return tt&&!(tt!=null&&tt.error)&&(ft.value=tt==null?void 0:tt.builds),ft.value}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},showInterstInBuild:async tt=>{try{const{data:FM}=await VL("delphi/saveLearnerBuildInterest",{build_id:tt});return FM}catch(FM){return FM.response?FM.response.data.message:FM.message?FM.message:"Failed to load api"}},getRecoBuilds:async()=>{try{const{data:tt}=await ZL("/delphi/build_reco");return tt&&!(tt!=null&&tt.error)&&(Dt.value=tt==null?void 0:tt.build_info),tt&&!(tt!=null&&tt.error)&&(LL.value=tt==null?void 0:tt.build_recos),Dt.value}catch(tt){console.log("errormessage.value",tt),tt.response?N.value=tt.response.data.message:tt.message?N.value=tt.message:N.value="Failed to load api"}},getBuildById:async tt=>{var vt,xt;let FM=!1;try{const[qt,XL]=await Promise.all([ZL(`academy/v2/build/${tt}`),ZL(`delphi/build_reco/${tt}`)]),{data:Xt}=qt,{data:rL}=XL;return rL&&!(rL!=null&&rL.error)&&(FM=((xt=(vt=rL==null?void 0:rL.build_reco)==null?void 0:vt.is_learner_interested)==null?void 0:xt.toLowerCase())==="true"),Xt&&!(Xt!=null&&Xt.error)&&(JM.value={...Xt==null?void 0:Xt.body,is_learner_interested:FM}),JM.value}catch(qt){console.log("errormessage.value",qt),qt.response?N.value=qt.response.data.message:qt.message?N.value=qt.message:N.value="Failed to load API"}},setPreference:async(tt,FM,vt)=>{try{let xt={};(tt="switch")&&(xt={switch_to:FM}),(tt="dont-show")&&(xt={video_popup:!0,dont_show_again:FM}),await VL("delphi/v3/preference",xt)}catch(xt){console.warn(xt)}},allBuildsForCalendar:ft,buildById:JM,recoBuildInfo:Dt,recoBuildDetails:LL,academyListArray:uM,versionvalue:IM,enteredCoreskillArray:TM,CurrententeredCoreskillArray:Q,versionDatevalue:$M,coreSkillsFunction:Ae,userHashImage:_M,academyEnrolledarray:LM,notificationArrayv6:c,fetchImmerseContent:i0,EnrollAcademy:S0,componentCheckv6:mt,nameInitials:gM,displayAsk:xM,jobsrefcheck:XM,noError:S,errormessage:u,genomeFuntionCheck:Mt,genomeRoleValue:jL,errorMessagetext:N,employeedetailsFunction:Lj,employeeSkillfunction:lA,employeedetailsarray:O,employeeSkillarray:g,ProfileV6function:hj,merged_profileArray:R,functionObject:h,roleObject:w,IdealProfilefunction:Ju,descriptionfunction:A0,profileStatus:Tt,skillratingArray:yM,topskillArray:nM,profileInfodata:p,logEventOnClick:YL,initSkilluploadArray:Ot,fetchEmployeeDetails:async tt=>{var vt,xt,qt,XL,Xt,rL,PL,bL,gL,Ej,Kj,Rj,_j;const FM=`query Employee($ohrId: String) {
|
|
302
302
|
Employee(where: { ohrid: { equals: $ohrId } }) {
|
|
303
303
|
employeeId: id
|
|
304
304
|
ohrid
|