(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,449563,e=>{var t=e.i(271645),n=e.i(405240);let i="[redacted]";function r(e){if(e.includes("@"))return!0;try{return decodeURIComponent(e).includes("@")}catch{return/%40/i.test(e)}}e.s(["NotFoundTracker",0,function(){let e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{var t;let a,s;e.current||(e.current=!0,(0,n.f)("page_not_found",{properties:{...(a=(t=window.location).pathname.split("/").map(e=>r(e)?i:e).join("/"),{page_path:a,page_search:s=function(e){if(!e||"?"===e)return"";let t=[];for(let n of new URLSearchParams(e).keys())t.includes(n)||t.push(n);return 0===t.length?"":"?"+t.map(e=>`${r(e)?i:e}=${i}`).join("&")}(t.search),page_url:`${t.origin}${a}${s}`}),referrer:document.referrer,status_code:404}}))},[]),null}],449563)},785058,e=>{var t=e.i(843476),n=e.i(618566),i=e.i(271645),r=e.i(540874),a=e.i(117213),s=e.i(844097),o=e.i(60300),l=e.i(311063),u=e.i(206917),c=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"},f={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 m({surface:e,tone:s="light",label:u="Sign in",className:d}){let h=(0,n.usePathname)(),p=(0,r.r)(),b=(0,c.f)(f[s],d),g=(0,i.useRef)(null);return((0,a.f)(g),p)?(0,t.jsx)("button",{ref:g,type:"button",className:b,onClick:()=>{(0,l.p)(`${e}:sign-in`,h),p.login()},children:p.authenticating?"Signing in…":u}):(0,t.jsx)("a",{ref:g,href:o.F,className:b,onClick:()=>(0,l.p)(`${e}:sign-in`,h),children:u})}e.s(["AdeptAccountCta",0,function({surface:e,learnHref:i=o.Y,tone:a="light",prompt:p="Not ready to talk to sales?",continuePrompt:b="You're signed in.",continueLabel:g="Continue in Adept",createLabel:v="Create your account",showBenefits:x=!1,hideWhenAnonymous:k=!1,className:w}){let y=(0,n.usePathname)(),N=(0,r.r)(),j=N?.status==="authenticated",_=d[a],I=f[a],S=h[a];return!j&&k?null:j?(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("p",{className:S,children:[b," ",(0,t.jsxs)("a",{href:i,className:_,onClick:()=>(0,l.p)(`${e}:continue-adept`,y),children:[g," →"]})]})}):(0,t.jsxs)("div",{className:w,children:[(0,t.jsxs)("div",{className:(0,c.f)(S,"leading-8"),children:[p," ",(0,t.jsx)(s.StartCheckoutForm,{intent:{plan:"account-only"},ctaLocation:e,ariaLabel:`${v} (opens secure checkout)`,formClassName:"inline-flex align-middle",className:I,children:v})," ","with no purchase required. Already have an account?"," ",(0,t.jsx)(m,{surface:e,tone:a})]}),x&&(0,t.jsxs)("p",{className:(0,c.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)(u.h,{surface:`account-cta:${e}`,tone:a,children:"IT Trainerbot"}),", with every answer citing its source video."]})]})},"AdeptSignInAction",0,m])},844097,410532,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),r=e.i(632781),a=e.i(686525),s=e.i(975157),o=e.i(405240),l=e.i(311063),u=e.i(541872);let c="https://billing.api.adept.at/checkout/session",d={individual:"120",team:"100","trainerbot-plus":{annual:"210",monthly:"215"},"single-course":"110"},f={individual:["annual"],team:["annual"],"trainerbot-plus":["monthly","annual"]};function h(e){return f[e][0]}function m(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,c,"P",0,p,"Q",0,m,"f",0,g,"B",0,h],410532),e.s(["StartCheckoutForm",0,function({intent:e,courseSlug:d,className:f,ariaLabel:h,formClassName:b,subscriptionCta:v,ctaLocation:x,testId:k,onStart:w,children:y}){let N=(0,i.usePathname)(),j=n.useRef(null),_=n.useRef(null),[I,S]=n.useState(!1),[T,C]=n.useState(null),A=m(e);n.useEffect(()=>{if(!I)return;let e=e=>{e.persisted&&S(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[I]);let R=n.useCallback(t=>{if(I)return void t.preventDefault();C(_.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,u.B)(),n=(0,a.M)(),{merged:i}=(0,a.y)();for(let[r,s]of[["tracking[anon_id]",t.analytics?n[a.I.ANON_ID]:void 0],["tracking[session_id]",n[a.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(!s)continue;let t=document.createElement("input");t.type="hidden",t.name=r,t.value=s,t.dataset.checkoutTracking="true",e.appendChild(t)}}(n),w?.(),(0,o.f)("checkout_start",{properties:{...g(e,N,d),...x?{cta_location:x}:{}}}),v&&(0,l.C)({ctaText:v.ctaText,subscriptionName:v.subscriptionName,subscriptionPrice:v.subscriptionPrice,page:N,billingPeriod:p(e)})},[I,e,N,d,v,x,w]);return(0,t.jsxs)("form",{ref:j,method:"POST",action:c,onSubmit:R,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:_,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,s.f)(f,I&&"relative cursor-progress"),"data-testid":k,children:[(0,t.jsx)("span",{className:(0,s.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)},206917,e=>{var t=e.i(843476),n=e.i(768877),i=e.i(268863),r=e.i(975157);let a="/trainerbot",s=/IT[ \u00A0]Trainerbot(?:[ \u00A0]Plus)?/g;function o(e){return s.lastIndex=0,s.test(e)}let l={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 u({surface:e,tone:n="light",className:s,children:o}){return(0,t.jsx)(i.TrackedLink,{href:a,location:`trainerbot-term:${e}`,className:(0,r.f)(l[n],s),children:o})}let c={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:s="light",className:o}){return(0,t.jsxs)(i.TrackedLink,{href:a,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",c[s],o),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,u,"w",0,o,"l",0,function(e,n){if(!o(e))return e;let i=[],r=0;for(let a of(s.lastIndex=0,e.matchAll(s))){let s=a.index;s>r&&i.push(e.slice(r,s)),i.push((0,t.jsx)(u,{...n,children:a[0]},`${s}-${a[0]}`)),r=s+a[0].length}return r