(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,643957,e=>{let t=(0,e.i(456420).f)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["f",0,t])},689664,e=>{var t=e.i(643957);e.s(["f",()=>t.f])},926894,e=>{let t=(0,e.i(456420).f)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);e.s(["f",0,t],926894)},940683,e=>{var t=e.i(843476),a=e.i(271645),r=e.i(522016),n=e.i(768877);let s=(0,e.i(456420).f)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338",key:"7hb8p4"}],["path",{d:"M3 9h5.859",key:"numkqi"}],["path",{d:"M8 2v3",key:"1ioesn"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);var i=e.i(689664),l=e.i(311901),o=e.i(110204);let c=[{value:"1",label:"Just me"},{value:"2-4",label:"2–4"},{value:"5-40",label:"5–40"},{value:"41+",label:"41+"}],d=()=>()=>{};e.s(["CourseVoteModule",0,function({credentialId:e,certName:u,initialTally:m,demoHref:h,threshold:f=5}){let[x,p]=(0,a.useState)("idle"),[b,g]=(0,a.useState)(m),[y,v]=(0,a.useState)(""),[w,j]=(0,a.useState)(""),[k,N]=(0,a.useState)(""),[S,C]=(0,a.useState)(""),R=(0,a.useSyncExternalStore)(d,()=>new URLSearchParams(window.location.search).has("requested"),()=>!1),L="idle"===x&&R?"voted":x;async function $(t){let a=await fetch("/api/certifications/vote",{method:"POST",headers:{"content-type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({credentialId:e,sourcePage:window.location.pathname,honeypot:k,...t})});if(!a.ok)throw Error((await a.json().catch(()=>({}))).error??"Something went wrong. Please try again.");let r=await a.json();return"number"==typeof r.tally?r.tally:null}async function z(){p("submitting"),C("");try{let e=await $({});null!==e&&g(e),p("voted")}catch(e){C(e instanceof Error?e.message:"Please try again."),p("error")}}async function E(e){e.preventDefault(),p("emailing"),C("");try{let e=await $({email:y,teamSize:w||void 0,notifyOptIn:!0});null!==e&&g(e),p("emailed")}catch(e){C(e instanceof Error?e.message:"Please try again."),p("voted")}}let q=b>=f?`Requested by ${b.toLocaleString()} ${1===b?"team":"teams"}`:"Be the first team to request coverage";return(0,t.jsx)("section",{className:"section-padding","aria-labelledby":"cert-roadmap-heading",children:(0,t.jsx)("div",{className:"mx-auto max-w-3xl px-6",children:(0,t.jsx)(l.f,{children:(0,t.jsxs)("div",{className:"rounded-2xl border border-cbt-100 bg-background-alt p-8",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("span",{className:"inline-flex size-12 items-center justify-center rounded-xl bg-cbt-50",children:(0,t.jsx)(s,{className:"size-6 text-cbt-600","aria-hidden":"true"})}),(0,t.jsxs)("h2",{id:"cert-roadmap-heading",className:"mt-5 scroll-mt-24 font-display text-2xl font-bold text-foreground",children:["Put ",u," on your team’s training roadmap"]}),(0,t.jsxs)("p",{className:"mx-auto mt-3 max-w-xl text-base leading-relaxed text-muted-foreground",children:["CBT Nuggets doesn’t have a ",u," course yet. We prioritize new certification coverage by team demand — register yours and we’ll factor it into the roadmap."]}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold text-cbt-700","aria-live":"polite",children:q})]}),(0,t.jsxs)("div",{"aria-hidden":"true",className:"absolute h-0 w-0 overflow-hidden",children:[(0,t.jsx)("label",{htmlFor:"cv-website",children:"Website"}),(0,t.jsx)("input",{id:"cv-website",type:"text",tabIndex:-1,autoComplete:"off",value:k,onChange:e=>N(e.target.value)})]}),(0,t.jsx)("div",{className:"mt-6",children:"voted"===L||"emailing"===L||"emailed"===L?"emailed"===x?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center",children:[(0,t.jsxs)("p",{role:"status",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-emerald-700",children:[(0,t.jsx)(i.f,{className:"size-4","aria-hidden":"true"}),"Registered — we’ll be in touch as coverage is planned."]}),(0,t.jsxs)(r.default,{href:h,className:"inline-flex items-center gap-2 rounded-lg bg-cbt-600 px-5 py-3 text-sm font-semibold text-white transition-colors hover:bg-cbt-700",children:["Book a Demo",(0,t.jsx)(n.f,{className:"size-4","aria-hidden":"true"})]})]}):(0,t.jsxs)("div",{className:"mx-auto max-w-md",children:[(0,t.jsxs)("p",{role:"status",className:"text-center text-sm font-semibold text-emerald-700",children:[(0,t.jsx)(i.f,{className:"mr-1 inline size-4","aria-hidden":"true"}),"Added to the demand list."]}),(0,t.jsxs)("form",{onSubmit:E,className:"mt-4 flex flex-col gap-3",children:[(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground",children:"Want roadmap updates and a conversation with our team? Add your work email."}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[(0,t.jsxs)("label",{htmlFor:"cv-email",className:"basis-full text-left text-sm font-medium text-foreground",children:["Work email",(0,t.jsx)(o.RequiredMark,{})]}),(0,t.jsx)("input",{id:"cv-email",type:"email",required:!0,"aria-required":"true",value:y,onChange:e=>v(e.target.value),placeholder:"you@company.com",className:"h-11 flex-1 rounded-lg border border-cbt-200 bg-white px-3 text-sm text-foreground placeholder:text-muted-foreground focus:border-cbt-400 focus:outline-none focus:ring-2 focus:ring-cbt-200"}),(0,t.jsx)("label",{htmlFor:"cv-team",className:"sr-only",children:"Team size"}),(0,t.jsxs)("select",{id:"cv-team",value:w,onChange:e=>j(e.target.value),className:"h-11 rounded-lg border border-cbt-200 bg-white px-3 text-sm text-foreground focus:border-cbt-400 focus:outline-none focus:ring-2 focus:ring-cbt-200",children:[(0,t.jsx)("option",{value:"",children:"Team size"}),c.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]}),(0,t.jsx)("button",{type:"submit",disabled:"emailing"===x,className:"inline-flex items-center justify-center gap-2 rounded-lg bg-cbt-600 px-5 py-3 text-sm font-semibold text-white transition-colors hover:bg-cbt-700 disabled:opacity-60",children:"emailing"===x?"Sending…":"Notify me + talk to sales"}),S&&(0,t.jsx)("p",{role:"alert",className:"text-center text-sm text-red-600",children:S}),(0,t.jsx)(r.default,{href:h,className:"text-center text-sm font-semibold text-cbt-600 hover:text-cbt-700 hover:underline",children:"Or request a demo now"})]})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsxs)("button",{type:"button",onClick:z,disabled:"submitting"===x,className:"inline-flex items-center gap-2 rounded-lg bg-cbt-600 px-5 py-3 text-sm font-semibold text-white transition-colors hover:bg-cbt-700 disabled:opacity-60",children:["submitting"===x?"Adding…":"Add to your team's roadmap",(0,t.jsx)(n.f,{className:"size-4","aria-hidden":"true"})]}),(0,t.jsx)(r.default,{href:h,className:"text-sm font-semibold text-cbt-600 hover:text-cbt-700 hover:underline",children:"Or talk to our team about your roadmap"}),"error"===x&&(0,t.jsx)("p",{role:"alert",className:"text-sm text-red-600",children:S})]})})]})})})})}],940683)},561860,e=>{var t=e.i(843476),a=e.i(271645),r=e.i(522016),n=e.i(716327),s=e.i(975157);e.s(["MoreCoursesDisclosure",0,function({courses:e,labels:i,className:l}){let[o,c]=(0,a.useState)(!1),d=(0,a.useId)();return 0===e.length?null:(0,t.jsxs)("div",{className:(0,s.f)("mt-4",l),"data-more-courses":!0,"data-expanded":o?"true":"false",children:[(0,t.jsxs)("button",{type:"button","aria-expanded":o,"aria-controls":d,onClick:()=>c(e=>!e),className:"inline-flex min-h-11 items-center gap-1.5 text-sm font-semibold text-cbt-700 underline-offset-2 hover:text-cbt-800 hover:underline",children:[(0,t.jsx)(n.f,{className:(0,s.f)("size-4 transition-transform",o&&"rotate-180"),"aria-hidden":"true",focusable:"false"}),o?i.hide:i.show]}),(0,t.jsx)("ul",{id:d,hidden:!o,className:"mt-2 flex flex-col gap-2 border-l-2 border-cbt-100 pl-4",children:e.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,className:"text-sm font-semibold text-cbt-700 underline-offset-2 hover:underline",children:e.title})},e.courseId))})]})}])},311901,e=>{var t=e.i(843476),a=e.i(975157);e.s(["f",0,function({children:e,className:r,delay:n=0,direction:s="up",skip:i=!1}){if(i)return(0,t.jsx)(t.Fragment,{children:e});let l={up:"translateY(1.5rem)",left:"translateX(1.5rem)",right:"translateX(-1.5rem)",none:void 0}[s];return(0,t.jsx)("div",{className:(0,a.f)("reveal-item",r),style:{"--reveal-delay":`${n}ms`,...l?{transform:l}:null},children:e})}])},206299,e=>{var t=e.i(271645);e.s(["FaqDeepLinkOpener",0,function(){return(0,t.useEffect)(()=>{let e=()=>{let e,{hash:t}=window.location;if(!t.startsWith("#faq-"))return;try{e=decodeURIComponent(t.slice(1))}catch{return}let a=document.getElementById(e);a instanceof HTMLDetailsElement&&!a.open&&(a.open=!0,a.scrollIntoView())};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),null}])},112793,e=>{var t=e.i(843476),a=e.i(271645),r=e.i(618566),n=e.i(689664),s=e.i(926894),i=e.i(456420);let l=(0,i.f)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),o=(0,i.f)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);var c=e.i(519455),d=e.i(311063),u=e.i(293995);let m={slack:"Slack",teams:"Microsoft Teams",imessage:"iMessage",email:"Email",linkedin:"LinkedIn",x:"X",facebook:"Facebook",reddit:"Reddit",copy_link:"Copied link",web_share:"Device share sheet",salesrep:"Sales outreach"};Object.keys(m);var h=e.i(975157);e.s(["ShareButton",0,function({url:e,title:i,surface:f,className:x}){let p=(0,r.usePathname)()??"/",b=(0,a.useId)(),g=(0,a.useRef)(null),y=(0,a.useRef)(null),v=(0,a.useRef)(null),w=(0,a.useRef)(null),[j,k]=(0,a.useState)(!1),[N,S]=(0,a.useState)(null),[C,R]=(0,a.useState)(!1),[L,$]=(0,a.useState)(""),z=()=>i??("u">typeof document?document.title:""),E=(0,a.useCallback)(e=>{$(e),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>$(""),2500)},[]),q=(0,a.useCallback)((e=!1)=>{k(!1),e&&y.current?.focus()},[]);(0,a.useEffect)(()=>{if(j)return v.current?.querySelector('[role="menuitem"]')?.focus(),document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){g.current&&!g.current.contains(e.target)&&q()}function t(e){"Escape"===e.key&&(e.preventDefault(),q(!0))}},[j,q]),(0,a.useEffect)(()=>()=>{w.current&&clearTimeout(w.current)},[]);let T=e=>(function({url:e,channel:t,campaign:a}){let r=new URL("string"==typeof e?e:e.href),n=(0,u.a)(r.search),s=new URLSearchParams(n.startsWith("?")?n.slice(1):n);return s.set("utm_source",t),s.set("utm_medium","share"),a&&s.set("utm_campaign",a),`${r.origin}${r.pathname}?${s.toString()}${r.hash}`})({url:N??window.location.href,channel:e}),_=e=>(0,d.p)(`share:${f}`,p,{channel:e}),U=async()=>{_("copy_link");let e=T("copy_link");try{if(!navigator.clipboard?.writeText)throw Error("clipboard unavailable");await navigator.clipboard.writeText(e),E("Link copied to clipboard")}catch{E("Could not copy — copy the address from the URL bar")}q(!0)},I=async()=>{_("web_share");try{await navigator.share({url:T("web_share"),title:z()})}catch{}q(!0)},M=[{channel:"linkedin",label:`Share on ${m.linkedin}`},{channel:"x",label:`Share on ${m.x}`},{channel:"email",label:"Share by email"}],D="flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm text-foreground hover:bg-muted focus-visible:bg-muted focus-visible:outline-none";return(0,t.jsxs)("div",{ref:g,className:(0,h.f)("relative",x),onBlur:e=>{let t=e.relatedTarget;t instanceof Node&&(e.currentTarget.contains(t)||q())},children:[(0,t.jsxs)(c.K,{ref:y,type:"button",variant:"outline",size:"sm","data-testid":"share-button","aria-haspopup":"menu","aria-expanded":j,"aria-controls":j?b:void 0,"aria-label":"Share this page",onClick:()=>{j?q():(S(e??window.location.href),R("u">typeof navigator&&"function"==typeof navigator.share),k(!0))},children:[(0,t.jsx)(o,{className:"mr-1.5 size-4","aria-hidden":!0}),"Share"]}),j?(0,t.jsxs)("div",{id:b,ref:v,role:"menu","aria-label":"Share this page",className:"absolute right-0 z-20 mt-2 w-56 rounded-xl border border-border bg-background p-1 shadow-xl",onKeyDown:e=>{let t=Array.from(v.current?.querySelectorAll('[role="menuitem"]')??[]);if(0===t.length)return;let a=t.findIndex(e=>e===document.activeElement),r=e=>t[(e+t.length)%t.length]?.focus();switch(e.key){case"ArrowDown":e.preventDefault(),r(a+1);break;case"ArrowUp":e.preventDefault(),r(a-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1)}},children:[(0,t.jsxs)("button",{type:"button",role:"menuitem",className:D,"data-share-channel":"copy_link",onClick:()=>void U(),children:[(0,t.jsx)(s.f,{className:"size-4","aria-hidden":!0}),"Copy link"]}),M.map(({channel:e,label:a})=>(0,t.jsxs)("a",{role:"menuitem",className:D,"data-share-channel":e,href:function({channel:e,url:t,title:a}){switch(e){case"linkedin":return`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(t)}`;case"x":return`https://x.com/intent/post?url=${encodeURIComponent(t)}&text=${encodeURIComponent(a)}`;case"email":return`mailto:?subject=${encodeURIComponent(a)}&body=${encodeURIComponent(`${a} ${t}`)}`}}({channel:e,url:T(e),title:z()}),..."email"===e?{}:{target:"_blank",rel:"noopener noreferrer"},onClick:()=>{_(e),q()},children:["email"===e?(0,t.jsx)(l,{className:"size-4","aria-hidden":!0}):(0,t.jsx)(o,{className:"size-4","aria-hidden":!0}),a]},e)),C?(0,t.jsxs)("button",{type:"button",role:"menuitem",className:D,"data-share-channel":"web_share",onClick:()=>void I(),children:[(0,t.jsx)(o,{className:"size-4","aria-hidden":!0}),"More options…"]}):null]}):null,(0,t.jsx)("span",{role:"status","aria-live":"polite",className:(0,h.f)(L?"absolute right-0 top-full mt-1 inline-flex items-center gap-1 whitespace-nowrap text-sm text-muted-foreground":"sr-only"),children:L?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.f,{className:"size-3","aria-hidden":!0}),L]}):null})]})}],112793)},854453,e=>{var t=e.i(843476),a=e.i(522016),r=e.i(271645),n=e.i(117213);e.s(["CtaLink",0,function({describedBy:e,children:s,...i}){let l=(0,r.useRef)(null);return(0,n.f)(l,e),(0,t.jsx)(a.default,{ref:l,"aria-describedby":e,...i,children:s})}])},293995,e=>{let t=new Set(["gclid","fbclid","msclkid","yclid","mc_cid","mc_eid","ref","referral","referrer","_hsenc","_hsmi","hsCtaTracking"]),a=["utm_"];function r(e){var r;let n;if(!e||!e.includes("?"))return e;let[s,i]=-1===(n=(r=e).indexOf("?"))?[r,void 0]:[r.slice(0,n),r.slice(n+1)];if(!i)return s;let l=new URLSearchParams(i),o=new URLSearchParams;for(let[e,r]of l.entries())!function(e){let r=e.toLowerCase();return!!t.has(r)||a.some(e=>r.startsWith(e))}(e)&&o.append(e,r);let c=o.toString();return c?`${s}?${c}`:s}let n=new Set(["www.cbtnuggets.com","cbtnuggets.com","newcbt.cbtnuggets.com"]);e.s(["G",0,function(e){let t=r(e);if(t.startsWith("/"))return t;try{let e=new URL(t);if(n.has(e.hostname))return`${e.pathname}${e.search}`}catch{}return t},"a",0,r])}])})();