(()=>{"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])},940683,e=>{var t=e.i(843476),a=e.i(271645),s=e.i(522016),r=e.i(768877);let l=(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),n=e.i(311901),o=e.i(110204);let d=[{value:"1",label:"Just me"},{value:"2-4",label:"2–4"},{value:"5-40",label:"5–40"},{value:"41+",label:"41+"}],c=()=>()=>{};e.s(["CourseVoteModule",0,function({credentialId:e,certName:m,initialTally:u,demoHref:x,threshold:h=5}){let[f,b]=(0,a.useState)("idle"),[p,g]=(0,a.useState)(u),[v,y]=(0,a.useState)(""),[j,N]=(0,a.useState)(""),[w,k]=(0,a.useState)(""),[S,C]=(0,a.useState)(""),q=(0,a.useSyncExternalStore)(c,()=>new URLSearchParams(window.location.search).has("requested"),()=>!1),z="idle"===f&&q?"voted":f;async function M(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:w,...t})});if(!a.ok)throw Error((await a.json().catch(()=>({}))).error??"Something went wrong. Please try again.");let s=await a.json();return"number"==typeof s.tally?s.tally:null}async function E(){b("submitting"),C("");try{let e=await M({});null!==e&&g(e),b("voted")}catch(e){C(e instanceof Error?e.message:"Please try again."),b("error")}}async function P(e){e.preventDefault(),b("emailing"),C("");try{let e=await M({email:v,teamSize:j||void 0,notifyOptIn:!0});null!==e&&g(e),b("emailed")}catch(e){C(e instanceof Error?e.message:"Please try again."),b("voted")}}let T=p>=h?`Requested by ${p.toLocaleString()} ${1===p?"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)(n.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)(l,{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 ",m," 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 ",m," 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:T})]}),(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:w,onChange:e=>k(e.target.value)})]}),(0,t.jsx)("div",{className:"mt-6",children:"voted"===z||"emailing"===z||"emailed"===z?"emailed"===f?(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)(s.default,{href: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",children:["Book a Demo",(0,t.jsx)(r.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:P,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:v,onChange:e=>y(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:j,onChange:e=>N(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"}),d.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]}),(0,t.jsx)("button",{type:"submit",disabled:"emailing"===f,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"===f?"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)(s.default,{href:x,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:E,disabled:"submitting"===f,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"===f?"Adding…":"Add to your team's roadmap",(0,t.jsx)(r.f,{className:"size-4","aria-hidden":"true"})]}),(0,t.jsx)(s.default,{href:x,className:"text-sm font-semibold text-cbt-600 hover:text-cbt-700 hover:underline",children:"Or talk to our team about your roadmap"}),"error"===f&&(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),s=e.i(522016),r=e.i(716327),l=e.i(975157);e.s(["MoreCoursesDisclosure",0,function({courses:e,labels:i,className:n}){let[o,d]=(0,a.useState)(!1),c=(0,a.useId)();return 0===e.length?null:(0,t.jsxs)("div",{className:(0,l.f)("mt-4",n),"data-more-courses":!0,"data-expanded":o?"true":"false",children:[(0,t.jsxs)("button",{type:"button","aria-expanded":o,"aria-controls":c,onClick:()=>d(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)(r.f,{className:(0,l.f)("size-4 transition-transform",o&&"rotate-180"),"aria-hidden":"true",focusable:"false"}),o?i.hide:i.show]}),(0,t.jsx)("ul",{id:c,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)(s.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:s,delay:r=0,direction:l="up",skip:i=!1}){if(i)return(0,t.jsx)(t.Fragment,{children:e});let n={up:"translateY(1.5rem)",left:"translateX(1.5rem)",right:"translateX(-1.5rem)",none:void 0}[l];return(0,t.jsx)("div",{className:(0,a.f)("reveal-item",s),style:{"--reveal-delay":`${r}ms`,...n?{transform:n}: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}])},854453,e=>{var t=e.i(843476),a=e.i(522016),s=e.i(271645),r=e.i(117213);e.s(["CtaLink",0,function({describedBy:e,children:l,...i}){let n=(0,s.useRef)(null);return(0,r.f)(n,e),(0,t.jsx)(a.default,{ref:n,"aria-describedby":e,...i,children:l})}])}])})();