(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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),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 b({surface:e,tone:s="light",label:c="Sign in",className:d}){let h=(0,n.usePathname)(),f=(0,r.r)(),p=(0,u.f)(m[s],d),g=(0,i.useRef)(null);return((0,a.f)(g),f)?(0,t.jsx)("button",{ref:g,type:"button",className:p,onClick:()=>{(0,l.p)(`${e}:sign-in`,h),f.login()},children:f.authenticating?"Signing in…":c}):(0,t.jsx)("a",{ref:g,href:o.F,className:p,onClick:()=>(0,l.p)(`${e}:sign-in`,h),children:c})}e.s(["AdeptAccountCta",0,function({surface:e,learnHref:i=o.Y,tone:a="light",prompt:f="Not ready to talk to sales?",continuePrompt:p="You're signed in.",continueLabel:g="Continue in Adept",createLabel:v="Create your account",showBenefits:x=!1,hideWhenAnonymous:y=!1,className:k}){let w=(0,n.usePathname)(),N=(0,r.r)(),j=N?.status==="authenticated",A=d[a],S=m[a],T=h[a];return!j&&y?null:j?(0,t.jsx)("div",{className:k,children:(0,t.jsxs)("p",{className:T,children:[p," ",(0,t.jsxs)("a",{href:i,className:A,onClick:()=>(0,l.p)(`${e}:continue-adept`,w),children:[g," β†’"]})]})}):(0,t.jsxs)("div",{className:k,children:[(0,t.jsxs)("div",{className:(0,u.f)(T,"leading-8"),children:[f," ",(0,t.jsx)(s.StartCheckoutForm,{intent:{plan:"account-only"},ctaLocation:e,ariaLabel:`${v} (opens secure checkout)`,formClassName:"inline-flex align-middle",className:S,children:v})," ","with no purchase required. Already have an account?"," ",(0,t.jsx)(b,{surface:e,tone:a})]}),x&&(0,t.jsxs)("p",{className:(0,u.f)("mt-1.5",T),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:a,children:"IT Trainerbot"}),", with every answer citing its source video."]})]})},"AdeptSignInAction",0,b])},537106,e=>{var t=e.i(843476),n=e.i(785058),i=e.i(540874),r=e.i(844097),a=e.i(268863);e.s(["AssessmentSlotCta",0,function({stage:e,ctaClass:s,assessmentsUrl:o,signInReturnUrl:l}){return(0,i.r)()?.status==="authenticated"?(0,t.jsxs)("div",{children:[(0,t.jsx)(a.TrackedLink,{external:!0,href:o,location:`blog-cta:${e}:assessments-app`,className:s,children:"Go to assessments"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"You're signed in β€” results connect to your account."})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)(r.StartCheckoutForm,{intent:{plan:"account-only",returnTo:l},ctaLocation:"blog-cta-account",ariaLabel:"Create your account: opens secure checkout; no purchase required",formClassName:"mt-4",className:s.replace("mt-4 ",""),children:"Create your account"}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-muted-foreground",children:["No purchase required β€” you'll come back to assessments signed in. Already have an account?"," ",(0,t.jsx)(n.AdeptSignInAction,{surface:"blog-cta-account",tone:"light"}),"."]})]})}])},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),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 b(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=p(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 f(e){return"individual"===e.plan||"team"===e.plan?h(e.plan):"trainerbot-plus"===e.plan?e.billing??h("trainerbot-plus"):void 0}function p(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:p(e),owner_hint_type:"team"===e.plan?"ORG":"USER",quantity:"team"===e.plan?Math.max(1,Math.floor(e.seats)):1,page:t},r=f(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,f,"Q",0,b,"f",0,g,"B",0,h],410532),e.s(["StartCheckoutForm",0,function({intent:e,courseSlug:d,className:m,ariaLabel:h,formClassName:p,subscriptionCta:v,ctaLocation:x,testId:y,onStart:k,children:w}){let N=(0,i.usePathname)(),j=n.useRef(null),A=n.useRef(null),[S,T]=n.useState(!1),[C,I]=n.useState(null),_=b(e);n.useEffect(()=>{if(!S)return;let e=e=>{e.persisted&&T(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[S]);let R=n.useCallback(t=>{if(S)return void t.preventDefault();I(A.current?.textContent?.trim()||null),T(!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,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),k?.(),(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:f(e)})},[S,e,N,d,v,x,k]);return(0,t.jsxs)("form",{ref:j,method:"POST",action:u,onSubmit:R,className:p,children:[_.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("button",{ref:A,type:"submit","aria-label":S?h??C??void 0:h,"aria-busy":S||void 0,"aria-disabled":S||void 0,"data-pending":S||void 0,className:(0,s.f)(m,S&&"relative cursor-progress"),"data-testid":y,children:[(0,t.jsx)("span",{className:(0,s.f)("contents",S&&"invisible"),children:w}),S&&(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:S?"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 c({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 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: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",u[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,c,"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)(c,{...n,children:a[0]},`${s}-${a[0]}`)),r=s+a[0].length}return r{var t=e.i(843476),n=e.i(271645),i=e.i(975157);e.s(["ScrollRegion",0,function({as:e,label:r,labelledBy:a,className:s,children:o,...l}){let c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=c.current;if(!e)return;let t={label:r,labelledBy:a},n=()=>{var n;return n=e.scrollWidth>e.clientWidth+1||e.scrollHeight>e.clientHeight+1,void(e.setAttribute("data-measured","true"),n?(e.setAttribute("tabindex","0"),e.setAttribute("role","region"),e.setAttribute("data-scrolls","true"),t.labelledBy?(e.setAttribute("aria-labelledby",t.labelledBy),e.removeAttribute("aria-label")):t.label&&(e.setAttribute("aria-label",t.label),e.removeAttribute("aria-labelledby"))):(e.removeAttribute("tabindex"),e.removeAttribute("role"),e.removeAttribute("data-scrolls"),e.removeAttribute("aria-label"),e.removeAttribute("aria-labelledby")))};if(n(),"u"i.disconnect()},[r,a]),(0,t.jsx)(e??"div",{ref:c,"data-slot":"scroll-region",className:(0,i.f)("overflow-x-auto",s),...l,children:o})}])},429592,e=>{var t=e.i(843476),n=e.i(271645);e.s(["ConsentEmbed",0,function({url:e}){let i,[r,a]=(0,n.useState)(!1),s=(i=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/),i?.[1]??null);return s?r?(0,t.jsx)("div",{className:"my-8 aspect-video w-full overflow-hidden rounded-lg",children:(0,t.jsx)("iframe",{src:`https://www.youtube-nocookie.com/embed/${s}`,title:"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"h-full w-full"})}):(0,t.jsxs)("div",{className:"my-8 flex flex-col items-center justify-center rounded-lg border border-cbt-100 bg-cbt-50 p-8",children:[(0,t.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"This content is hosted by YouTube. Loading it may share data with Google."}),(0,t.jsx)("button",{onClick:()=>a(!0),className:"btn-gradient rounded-full px-6 py-2 text-sm font-semibold text-white",children:"Load embedded video"})]}):(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-cbt-600 underline hover:text-cbt-800",children:"Watch video"})}])}])})();