import{u as k,r as o,A as x,R as n,B as v,F as p,L as u,T as C}from"./index-7FhfNRPD.js";import{C as f}from"./index-Boa7Wo3s.js";function w(){const h=k().pathname,[S,c]=o.useState([]),r=h.split("/"),[l,s]=o.useState([]);o.useEffect(()=>{y()},[]);function y(){r.map((a,t)=>{if(a.length>1)switch(a){case"certify":c(e=>[...e,a]),s(e=>[...e,"Certification"]);break;case"train":c(e=>[...e,a]),s(e=>[...e,"Training"]);break;case"enterprise-services":c(e=>[...e,a]),s(e=>[...e,"Enterprise Services"]);break;case"c":s(e=>[...e,"Corporate Landing Page"]);break;case"l":s(e=>[...e,"Marketing Landing Page"]);break;default:t===1&&E(a),b(r.slice(0,t).join("/").concat(":title"),a),s(e=>[...e,a])}})}async function E(a){const t=await x.getSchema(`${a}_overview`);if((t==null?void 0:t.length)>0)return c(e=>[...e,a])}async function b(a,t){const e=await x.getUID(a);if((e==null?void 0:e.length)>0)return c(i=>[...i,t])}return n.createElement(v,{px:"2%"},n.createElement(p,{align:"center",maxW:{lg:"1200px",base:"100%"},mx:{base:"1rem",lg:"auto"},py:"16px",px:{base:"16px",md:"24px",lg:"32px"},gap:".5rem"},n.createElement(u,{href:"/",fontSize:{lg:"16px",base:"14px"},letterSpacing:"0.02em",opacity:"0.9"},"HOME"),n.createElement(f,{fontSize:{lg:"16px",base:"14px"},letterSpacing:"0.02em",opacity:"0.9"}),r.slice(1,r.length).map((a,t)=>{let e;if(l[t]){const i=l[t].split("-"),m=[];i.map(g=>m.push(g[0].toUpperCase()+g.slice(1))),e=m.join(" ")}if(S.includes(a))return n.createElement(p,{key:t,gap:".5rem",align:"center"},n.createElement(u,{href:`${r.slice(0,t+2).join("/")}`,fontSize:{lg:"16px",base:"14px"},opacity:"0.9"},e==null?void 0:e.toUpperCase())," ",t!==r.length-2&&n.createElement(f,{fontSize:{lg:"16px",base:"14px"},letterSpacing:"0.02em",opacity:"0.9"}));if(t===r.length-2)return n.createElement(p,{key:t,gap:".5rem",fontSize:{lg:"16px",base:"14px"},letterSpacing:"0.02em",opacity:"0.9",align:"center",fontWeight:"600"},n.createElement(C,null,e==null?void 0:e.toUpperCase()))})))}export{w as N};