(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{let t=(0,e.i(456420).f)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["f",0,t],711241)},785058,e=>{var t=e.i(843476),n=e.i(618566),i=e.i(271645),r=e.i(540874),s=e.i(117213),a=e.i(844097),l=e.i(60300),o=e.i(311063),c=e.i(206917),u=e.i(975157);let d={dark:"focus-on-dark rounded-sm font-semibold text-white underline underline-offset-2 hover:text-cbt-300 transition-colors",light:"rounded-sm font-semibold text-cbt-700 underline underline-offset-2 hover:text-cbt-500 transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500"},m={dark:"focus-on-dark inline-flex h-8 items-center rounded-full border border-white/40 px-3 text-sm font-semibold text-white transition-colors hover:bg-white/10 align-middle",light:"inline-flex h-8 items-center rounded-full border border-cbt-300 bg-white px-3 text-sm font-semibold text-cbt-800 transition-colors hover:border-cbt-500 hover:bg-cbt-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500 align-middle"},h={dark:"text-sm text-cbt-400",light:"text-sm text-muted-foreground"};function f({surface:e,tone:a="light",label:c="Sign in",className:d}){let h=(0,n.usePathname)(),p=(0,r.r)(),b=(0,u.f)(m[a],d),g=(0,i.useRef)(null);return((0,s.f)(g),p)?(0,t.jsx)("button",{ref:g,type:"button",className:b,onClick:()=>{(0,o.p)(`${e}:sign-in`,h),p.login()},children:p.authenticating?"Signing in…":c}):(0,t.jsx)("a",{ref:g,href:l.F,className:b,onClick:()=>(0,o.p)(`${e}:sign-in`,h),children:c})}e.s(["AdeptAccountCta",0,function({surface:e,learnHref:i=l.Y,tone:s="light",prompt:p="Not ready to talk to sales?",continuePrompt:b="You're signed in.",continueLabel:g="Continue in Adept",createLabel:x="Create your account",showBenefits:v=!1,hideWhenAnonymous:w=!1,className:k}){let y=(0,n.usePathname)(),N=(0,r.r)(),j=N?.status==="authenticated",E=d[s],I=m[s],S=h[s];return!j&&w?null:j?(0,t.jsx)("div",{className:k,children:(0,t.jsxs)("p",{className:S,children:[b," ",(0,t.jsxs)("a",{href:i,className:E,onClick:()=>(0,o.p)(`${e}:continue-adept`,y),children:[g," →"]})]})}):(0,t.jsxs)("div",{className:k,children:[(0,t.jsxs)("div",{className:(0,u.f)(S,"leading-8"),children:[p," ",(0,t.jsx)(a.StartCheckoutForm,{intent:{plan:"account-only"},ctaLocation:e,ariaLabel:`${x} (opens secure checkout)`,formClassName:"inline-flex align-middle",className:I,children:x})," ","with no purchase required. Already have an account?"," ",(0,t.jsx)(f,{surface:e,tone:s})]}),v&&(0,t.jsxs)("p",{className:(0,u.f)("mt-1.5",S),children:["An account gets you the full catalog to browse, pre-assessments, quiz questions on free skills, and"," ",(0,t.jsx)(c.h,{surface:`account-cta:${e}`,tone:s,children:"IT Trainerbot"}),", with every answer citing its source video."]})]})},"AdeptSignInAction",0,f])},844097,410532,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),r=e.i(632781),s=e.i(686525),a=e.i(975157),l=e.i(405240),o=e.i(311063),c=e.i(541872);let u="https://billing.api.adept.at/checkout/session",d={individual:"120",team:"100","trainerbot-plus":{annual:"210",monthly:"215"},"single-course":"110"},m={individual:["annual"],team:["annual"],"trainerbot-plus":["monthly","annual"]};function h(e){return m[e][0]}function f(e){if("account-only"===e.plan){let t=[{name:"ownerHint[type]",value:"USER"},{name:"ownerHint[status]",value:"NEW"}];return e.returnTo&&t.push({name:"returnTo",value:e.returnTo}),t}let t=b(e),n=[{name:"ownerHint[type]",value:"team"===e.plan?"ORG":"USER"},{name:"ownerHint[status]",value:"NEW"},{name:"items[0][productId]",value:t}];if("single-course"===e.plan){if(!e.courseId)throw Error("buildCheckoutFields: single-course checkout requires the Adept course UUID");n.push({name:"items[0][subProductId]",value:e.courseId})}let i="team"===e.plan?Math.max(1,Math.floor(e.seats)):1;return n.push({name:"items[0][quantity]",value:String(i)}),n}function p(e){return"individual"===e.plan||"team"===e.plan?h(e.plan):"trainerbot-plus"===e.plan?e.billing??h("trainerbot-plus"):void 0}function b(e){return"trainerbot-plus"===e.plan?d["trainerbot-plus"][e.billing??h("trainerbot-plus")]:d[e.plan]}function g(e,t,n){if("account-only"===e.plan){let i={plan:e.plan,owner_hint_type:"USER",quantity:0,page:t};return e.courseId&&(i.course_id=e.courseId),n&&(i.course_slug=n),i}let i={plan:e.plan,product_id:b(e),owner_hint_type:"team"===e.plan?"ORG":"USER",quantity:"team"===e.plan?Math.max(1,Math.floor(e.seats)):1,page:t},r=p(e);return r&&(i.billing_period=r),"single-course"===e.plan&&(i.course_id=e.courseId,n&&(i.course_slug=n)),i}e.s(["c",0,u,"P",0,p,"Q",0,f,"f",0,g,"B",0,h],410532),e.s(["StartCheckoutForm",0,function({intent:e,courseSlug:d,className:m,ariaLabel:h,formClassName:b,subscriptionCta:x,ctaLocation:v,testId:w,onStart:k,children:y}){let N=(0,i.usePathname)(),j=n.useRef(null),E=n.useRef(null),[I,S]=n.useState(!1),[T,C]=n.useState(null),A=f(e);n.useEffect(()=>{if(!I)return;let e=e=>{e.persisted&&S(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[I]);let L=n.useCallback(t=>{if(I)return void t.preventDefault();C(E.current?.textContent?.trim()||null),S(!0);let n=j.current;n&&function(e){for(let t of Array.from(e.querySelectorAll("input[data-checkout-tracking]")))t.remove();let t=(0,c.B)(),n=(0,s.M)(),{merged:i}=(0,s.y)();for(let[r,a]of[["tracking[anon_id]",t.analytics?n[s.I.ANON_ID]:void 0],["tracking[session_id]",n[s.I.SESSION_ID]],["tracking[gclid]",t.marketing?i.gclid:void 0],["tracking[msclkid]",t.marketing?i.msclkid:void 0],["tracking[wbraid]",t.marketing?i.wbraid:void 0],["tracking[gbraid]",t.marketing?i.gbraid:void 0]]){if(!a)continue;let t=document.createElement("input");t.type="hidden",t.name=r,t.value=a,t.dataset.checkoutTracking="true",e.appendChild(t)}}(n),k?.(),(0,l.f)("checkout_start",{properties:{...g(e,N,d),...v?{cta_location:v}:{}}}),x&&(0,o.C)({ctaText:x.ctaText,subscriptionName:x.subscriptionName,subscriptionPrice:x.subscriptionPrice,page:N,billingPeriod:p(e)})},[I,e,N,d,x,v,k]);return(0,t.jsxs)("form",{ref:j,method:"POST",action:u,onSubmit:L,className:b,children:[A.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("button",{ref:E,type:"submit","aria-label":I?h??T??void 0:h,"aria-busy":I||void 0,"aria-disabled":I||void 0,"data-pending":I||void 0,className:(0,a.f)(m,I&&"relative cursor-progress"),"data-testid":w,children:[(0,t.jsx)("span",{className:(0,a.f)("contents",I&&"invisible"),children:y}),I&&(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)(r.f,{className:"size-[1.25em] animate-spin"})})]}),(0,t.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:I?"Opening secure checkout":""})]})}],844097)},203771,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(522016),r=e.i(975157);e.s(["TopicOutline",0,function({items:e}){let[s,a]=(0,n.useState)(null);return((0,n.useEffect)(()=>{if(e.length<3)return;let t=0,n=()=>{t=0;let n=e.map(e=>{let t=document.getElementById(e.id);return t?t.getBoundingClientRect().top:null}),i=document.documentElement,r=function(e,{line:t=128,atBottom:n=!1}={}){let i=e.map((e,t)=>null===e?-1:t).filter(e=>e>=0);if(0===i.length)return -1;if(n)return i[i.length-1];let r=i[0];for(let n of i)e[n]<=t&&(r=n);return r}(n,{atBottom:window.innerHeight+window.scrollY>=i.scrollHeight-2});a(r>=0?e[r].id:null)},i=()=>{0===t&&(t=window.requestAnimationFrame(n))};return n(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),window.addEventListener("hashchange",i),()=>{0!==t&&window.cancelAnimationFrame(t),window.removeEventListener("scroll",i),window.removeEventListener("resize",i),window.removeEventListener("hashchange",i)}},[e]),e.length<3)?null:(0,t.jsx)("nav",{"aria-label":"On this page",className:"pointer-events-none absolute inset-y-0 right-[max(0.5rem,calc(50vw-49.5rem))] z-30 hidden w-48 min-[1600px]:block",children:(0,t.jsxs)("div",{className:"pointer-events-auto sticky top-24 rounded-2xl border border-cbt-100 bg-white/95 p-4 shadow-sm backdrop-blur",children:[(0,t.jsx)("p",{className:"text-overline mb-3 text-cbt-700",children:"On this page"}),(0,t.jsx)("ol",{className:"space-y-1 text-sm",children:e.map(e=>{let n=e.id===s;return(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{href:`#${e.id}`,"aria-current":n?"location":void 0,className:(0,r.f)("block rounded-md px-2 py-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-600 focus-visible:ring-offset-2",n?"bg-cbt-50 font-semibold text-cbt-700":"text-muted-foreground hover:bg-cbt-50/60 hover:text-cbt-700"),children:e.label})},e.id)})})]})})}])},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 n=document.getElementById(e);n instanceof HTMLDetailsElement&&!n.open&&(n.open=!0,n.scrollIntoView())};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),null}])},206917,e=>{var t=e.i(843476),n=e.i(768877),i=e.i(268863),r=e.i(975157);let s="/trainerbot",a=/IT[ \u00A0]Trainerbot(?:[ \u00A0]Plus)?/g;function l(e){return a.lastIndex=0,a.test(e)}let o={light:"font-medium text-cbt-700 underline decoration-cbt-700/40 underline-offset-4 transition-colors hover:text-cbt-900 hover:decoration-cbt-900",dark:"focus-on-dark font-medium text-white underline decoration-white/50 underline-offset-4 transition-colors hover:decoration-white"};function c({surface:e,tone:n="light",className:a,children:l}){return(0,t.jsx)(i.TrackedLink,{href:s,location:`trainerbot-term:${e}`,className:(0,r.f)(o[n],a),children:l})}let u={light:"text-cbt-700 hover:text-cbt-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-700",dark:"focus-on-dark text-cbt-200 hover:text-white"};e.s(["y",0,function({surface:e,tone:a="light",className:l}){return(0,t.jsxs)(i.TrackedLink,{href:s,location:`trainerbot-term:${e}`,className:(0,r.f)("inline-flex items-center gap-1 whitespace-nowrap rounded-sm align-middle font-sans text-sm font-semibold tracking-normal underline-offset-4 hover:underline",u[a],l),children:["Learn more"," ",(0,t.jsx)("span",{className:"sr-only",children:"about IT Trainerbot"}),(0,t.jsx)(n.f,{className:"size-3.5","aria-hidden":"true"})]})},"h",0,c,"w",0,l,"l",0,function(e,n){if(!l(e))return e;let i=[],r=0;for(let s of(a.lastIndex=0,e.matchAll(a))){let a=s.index;a>r&&i.push(e.slice(r,a)),i.push((0,t.jsx)(c,{...n,children:s[0]},`${a}-${s[0]}`)),r=a+s[0].length}return r{var t=e.i(843476),n=e.i(618566),i=e.i(522016),r=e.i(711241);let s=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;e.s(["ProposalContextBanner",0,function(){let e=(0,n.useSearchParams)(),a=e.get("ctx"),l=e.get("slug");if("present"!==a||!l||!s.test(l))return null;let o=`/present/${l}/it-training`;return(0,t.jsx)("div",{role:"region","aria-label":"Sales proposal context",className:"sticky top-16 z-30 border-b border-cbt-200 bg-cbt-50/95 backdrop-blur supports-backdrop-filter:bg-cbt-50/85",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-wrap items-center gap-x-3 gap-y-1 px-6 py-3 text-sm",children:[(0,t.jsxs)(i.default,{href:o,className:"inline-flex min-h-11 items-center gap-1.5 font-semibold text-cbt-700 hover:text-cbt-800",children:[(0,t.jsx)(r.f,{className:"size-4","aria-hidden":!0}),"Back to your proposal"]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Your tailored proposal is one click back — this is the public course page."})]})})}])},854453,e=>{var t=e.i(843476),n=e.i(522016),i=e.i(271645),r=e.i(117213);e.s(["CtaLink",0,function({describedBy:e,children:s,...a}){let l=(0,i.useRef)(null);return(0,r.f)(l,e),(0,t.jsx)(n.default,{ref:l,"aria-describedby":e,...a,children:s})}])}])})();