(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,526323,828376,209977,141708,593480,309169,e=>{var t=e.i(402820),n=e.i(156736),i=e.i(209793),s=e.i(784324),r=e.i(264951),a=e.i(366250),l=e.i(77173),o=e.i(733332),c=e.i(271645),d=e.i(108821),u=e.i(540886),m=e.i(552245),f=e.i(405005),h=e.i(638396),p=e.i(459636),x=e.i(264111),b=e.i(788015),g=e.i(385689),v=e.i(32199);let w=c.forwardRef(function(e,t){let{render:n,className:i,style:s,disabled:r=!1,nativeButton:a=!0,id:l,payload:w,handle:y,...j}=e,k=(0,d.x)(!0),N=(0,p.f)(y)??k;if(!N)throw Error((0,o.f)(79));let C=(0,b.f)(l),S=N.useState("floatingRootContext"),A=N.useState("isOpenedByTrigger",C),T=N.useState("triggerPopupId",C),E=c.useRef(null),{registerTrigger:R,isMountedByThisTrigger:I}=(0,x.F)(C,E,N,{payload:w}),{getButtonProps:L,buttonRef:z}=(0,u.f)({disabled:r,native:a}),F=(0,g.f)(S),$=(0,v.p)(()=>N.select("open"),e=>{N.set("openMethod",e)}),P=N.useState("triggerProps",I);return(0,m.f)("button",e,{state:{disabled:r,open:A},ref:[z,t,R,E],props:[F.reference,P,$,{[h.j]:"",id:C,"aria-haspopup":"dialog","aria-expanded":A,"aria-controls":T},j,L],stateAttributesMapping:f.J})});e.s(["Backdrop",()=>t.f,"Close",()=>n.f,"Description",()=>i.f,"Popup",()=>s.f,"Portal",()=>r.f,"Root",0,function(e){return(0,a.f)("dialog",e)},"Title",()=>l.f,"Trigger",0,w],828376);var y=e.i(828376);e.s(["f",0,y],526323),e.s(["f",0,y],209977),e.s(["f",0,y],141708),e.s(["f",0,y],593480),e.s(["f",0,y],309169)},998218,921637,152744,560964,e=>{var t=e.i(828376);e.s(["f",0,t],998218),e.s(["f",0,t],921637),e.s(["f",0,t],152744);var n=e.i(814387);e.s(["f",()=>n.f],560964)},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)},96892,e=>{let t=(0,e.i(456420).f)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["f",0,t],96892)},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])},508734,e=>{let t=(0,e.i(456420).f)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["f",0,t],508734)},668109,e=>{let t=(0,e.i(456420).f)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["f",0,t],668109)},882303,e=>{let t=(0,e.i(456420).f)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["f",0,t],882303)},325164,e=>{var t=e.i(605500);e.s(["default",()=>t.Image])},920291,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),s=e.i(570590),r=e.i(311063),a=e.i(472033),l=e.i(998082),o=e.i(240139);let c=n.lazy(()=>e.A(127300).then(e=>({default:e.GetStartedDialogBody})));function d(){e.A(127300).catch(()=>void 0)}e.s(["GetStartedDialog",0,function({triggerLabel:e,triggerAriaLabel:u,triggerClassName:m}){let[f,h]=n.useState(0),p=(0,l.A)(),{open:x,bodyOpen:b,openMethod:g,onOpenChange:v,onReady:w}=p,y=n.useRef(null),j=(0,i.usePathname)(),k=n.useCallback(t=>{p.request(t)&&(h(e=>e+1),(0,r.C)({ctaText:e,subscriptionName:o.s,subscriptionPrice:s.R,page:j,intent:"open_configurator",billingPeriod:"annual"}))},[p,j,e]),{reset:N}=p,C=n.useCallback(()=>{N(),h(0)},[N]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.F,{ref:y,trigger:{label:e,ariaLabel:u,className:m},open:x,onOpen:k,onIntent:d}),f>0?(0,t.jsx)(l.T,{name:"teams-configurator",onError:C,children:(0,t.jsx)(c,{open:b,openMethod:g,onOpenChange:v,onReady:w,finalFocus:y},f)}):null]})}])},749266,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),s=e.i(776639),r=e.i(540874),a=e.i(844097),l=e.i(311063);e.s(["AssessmentGateLink",0,function({href:e,location:o,courseId:c,signInReturnUrl:d,courseTitle:u,className:m,ariaLabel:f,dataTestId:h,children:p}){let x=(0,r.r)(),b=(0,i.usePathname)(),[g,v]=n.useState(!1),w=x?.status==="authenticated";n.useEffect(()=>{g&&w&&((0,l.p)(o,b),window.location.assign(e))},[g,w,e,o,b]);let y=n.useCallback(e=>{e.metaKey||e.ctrlKey||e.shiftKey||1===e.button||!x||"authenticated"===x.status?(0,l.p)(o,b):(e.preventDefault(),(0,l.p)("assessment-gate-shown",b),v(!0))},[x,o,b]),j=n.useCallback(()=>{x&&((0,l.p)("assessment-gate-login",b),x.login())},[x,b]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:m,"aria-label":f,"data-testid":h,onClick:y,children:p}),x&&(0,t.jsx)(s.N,{open:g,onOpenChange:v,children:(0,t.jsx)(s.d,{className:"w-115 max-w-[calc(100vw-2rem)]",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(s.F,{className:"font-display text-xl font-medium text-cbt-800",children:u?"Sign in to take this readiness check":"Sign in to take assessments"}),(0,t.jsx)(s.C,{className:"mt-1.5 text-sm leading-snug text-muted-foreground",children:u?`The ${u} readiness check is free to take with an Adept account — sign in, or create one to get started.`:"Assessments are free to take with an Adept account — sign in, or create one to get started."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:j,disabled:x.authenticating,className:"btn-gradient inline-flex h-11 w-full items-center justify-center rounded-full px-6 text-sm font-semibold text-white transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2 disabled:opacity-70",children:x.authenticating?"Signing in…":"Continue with Adept"}),(0,t.jsx)(a.StartCheckoutForm,{intent:{plan:"account-only",returnTo:d,courseId:c},ctaLocation:"assessment-gate",ariaLabel:"Create your account: opens secure Adept checkout; no purchase required",formClassName:"w-full",className:"inline-flex h-11 w-full items-center justify-center rounded-full border border-cbt-300 px-6 text-sm font-semibold text-cbt-700 transition-colors hover:border-cbt-500 hover:text-cbt-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2",children:"Create your account"})]}),x.error&&!x.authenticating&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",role:"status",children:"Sign-in didn't finish — try again, or create your account."}),(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Account creation runs on Adept's secure checkout — no purchase required. You'll come back to your assessment signed in."})]})})})]})}])},785058,e=>{var t=e.i(843476),n=e.i(618566),i=e.i(271645),s=e.i(540874),r=e.i(117213),a=e.i(844097),l=e.i(60300),o=e.i(311063),c=e.i(206917),d=e.i(975157);let u={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"},f={dark:"text-sm text-cbt-400",light:"text-sm text-muted-foreground"};function h({surface:e,tone:a="light",label:c="Sign in",className:u}){let f=(0,n.usePathname)(),p=(0,s.r)(),x=(0,d.f)(m[a],u),b=(0,i.useRef)(null);return((0,r.f)(b),p)?(0,t.jsx)("button",{ref:b,type:"button",className:x,onClick:()=>{(0,o.p)(`${e}:sign-in`,f),p.login()},children:p.authenticating?"Signing in…":c}):(0,t.jsx)("a",{ref:b,href:l.F,className:x,onClick:()=>(0,o.p)(`${e}:sign-in`,f),children:c})}e.s(["AdeptAccountCta",0,function({surface:e,learnHref:i=l.Y,tone:r="light",prompt:p="Not ready to talk to sales?",continuePrompt:x="You're signed in.",continueLabel:b="Continue in Adept",createLabel:g="Create your account",showBenefits:v=!1,hideWhenAnonymous:w=!1,className:y}){let j=(0,n.usePathname)(),k=(0,s.r)(),N=k?.status==="authenticated",C=u[r],S=m[r],A=f[r];return!N&&w?null:N?(0,t.jsx)("div",{className:y,children:(0,t.jsxs)("p",{className:A,children:[x," ",(0,t.jsxs)("a",{href:i,className:C,onClick:()=>(0,o.p)(`${e}:continue-adept`,j),children:[b," →"]})]})}):(0,t.jsxs)("div",{className:y,children:[(0,t.jsxs)("div",{className:(0,d.f)(A,"leading-8"),children:[p," ",(0,t.jsx)(a.StartCheckoutForm,{intent:{plan:"account-only"},ctaLocation:e,ariaLabel:`${g} (opens secure checkout)`,formClassName:"inline-flex align-middle",className:S,children:g})," ","with no purchase required. Already have an account?"," ",(0,t.jsx)(h,{surface:e,tone:r})]}),v&&(0,t.jsxs)("p",{className:(0,d.f)("mt-1.5",A),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:r,children:"IT Trainerbot"}),", with every answer citing its source video."]})]})},"AdeptSignInAction",0,h])},722888,e=>{var t=e.i(843476);e.s(["l",0,function({resolved:e,pending:n,children:i}){return e?(0,t.jsx)(t.Fragment,{children:i}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"adept-slot-anon",children:i}),(0,t.jsx)("div",{className:"adept-slot-authed",children:n})]})},"F",0,function({label:e="Checking your access",bars:n=3,className:i,barClassName:s="bg-white/10"}){return(0,t.jsxs)("div",{role:"status",className:i,children:[(0,t.jsxs)("span",{className:"sr-only",children:[e,"…"]}),(0,t.jsx)("div",{"aria-hidden":"true",className:"animate-pulse space-y-3",children:Array.from({length:n},(e,n)=>(0,t.jsx)("div",{className:`h-4 rounded ${s}`,style:{width:`${100-18*n}%`}},n))})]})}])},844097,410532,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),s=e.i(632781),r=e.i(686525),a=e.i(975157),l=e.i(405240),o=e.i(311063),c=e.i(541872);let d="https://billing.api.adept.at/checkout/session",u={individual:"120",team:"100","trainerbot-plus":{annual:"210",monthly:"215"},"single-course":"110"},m={individual:["annual"],team:["annual"],"trainerbot-plus":["monthly","annual"]};function f(e){return m[e][0]}function h(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=x(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?f(e.plan):"trainerbot-plus"===e.plan?e.billing??f("trainerbot-plus"):void 0}function x(e){return"trainerbot-plus"===e.plan?u["trainerbot-plus"][e.billing??f("trainerbot-plus")]:u[e.plan]}function b(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:x(e),owner_hint_type:"team"===e.plan?"ORG":"USER",quantity:"team"===e.plan?Math.max(1,Math.floor(e.seats)):1,page:t},s=p(e);return s&&(i.billing_period=s),"single-course"===e.plan&&(i.course_id=e.courseId,n&&(i.course_slug=n)),i}e.s(["c",0,d,"P",0,p,"Q",0,h,"f",0,b,"B",0,f],410532),e.s(["StartCheckoutForm",0,function({intent:e,courseSlug:u,className:m,ariaLabel:f,formClassName:x,subscriptionCta:g,ctaLocation:v,testId:w,onStart:y,children:j}){let k=(0,i.usePathname)(),N=n.useRef(null),C=n.useRef(null),[S,A]=n.useState(!1),[T,E]=n.useState(null),R=h(e);n.useEffect(()=>{if(!S)return;let e=e=>{e.persisted&&A(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[S]);let I=n.useCallback(t=>{if(S)return void t.preventDefault();E(C.current?.textContent?.trim()||null),A(!0);let n=N.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,r.M)(),{merged:i}=(0,r.y)();for(let[s,a]of[["tracking[anon_id]",t.analytics?n[r.I.ANON_ID]:void 0],["tracking[session_id]",n[r.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=s,t.value=a,t.dataset.checkoutTracking="true",e.appendChild(t)}}(n),y?.(),(0,l.f)("checkout_start",{properties:{...b(e,k,u),...v?{cta_location:v}:{}}}),g&&(0,o.C)({ctaText:g.ctaText,subscriptionName:g.subscriptionName,subscriptionPrice:g.subscriptionPrice,page:k,billingPeriod:p(e)})},[S,e,k,u,g,v,y]);return(0,t.jsxs)("form",{ref:N,method:"POST",action:d,onSubmit:I,className:x,children:[R.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("button",{ref:C,type:"submit","aria-label":S?f??T??void 0:f,"aria-busy":S||void 0,"aria-disabled":S||void 0,"data-pending":S||void 0,className:(0,a.f)(m,S&&"relative cursor-progress"),"data-testid":w,children:[(0,t.jsx)("span",{className:(0,a.f)("contents",S&&"invisible"),children:j}),S&&(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)(s.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)},798616,e=>{var t=e.i(843476),n=e.i(618566),i=e.i(60300),s=e.i(722888),r=e.i(411186),a=e.i(311063),l=e.i(271645),o=e.i(668109),c=e.i(975157),d=e.i(540874),u=e.i(211539);function m({courseId:e,className:i}){let s=(0,u.j)(e),r=(0,d.r)(),f=(0,n.usePathname)(),[h,p]=l.useState(!1);if(!(null!==s&&(s.access.authenticated||s.billing.authenticated)))return null;let x=!0===s.favorited,b=x?"Remove from favorites":"Add to favorites",g=async()=>{if(!h){if(r&&"unauthenticated"===r.status){(0,a.p)("course-favorite:sign-in",f),await r.login(),(0,u.F)();return}p(!0);try{await (0,u.t)(e,!x)}finally{p(!1)}}};return(0,t.jsx)("button",{type:"button",onClick:()=>void g(),"aria-pressed":x,"aria-label":b,title:b,disabled:h,className:(0,c.f)("focus-on-dark inline-flex size-12 items-center justify-center rounded-full border border-white/20 text-white/85 transition-colors hover:bg-white/10 hover:text-white disabled:opacity-60",x&&"text-cbt-300 hover:text-cbt-200",i),children:(0,t.jsx)(o.f,{"aria-hidden":"true",className:(0,c.f)("size-5",x&&"fill-current")})})}let f="flex flex-wrap items-center gap-4";e.s(["CourseHeroCtas",0,function({courseId:e,adeptCourseSlug:l,marketingCtas:o,alwaysCtas:c}){let d=(0,u.j)(e),h=(0,n.usePathname)();return d?"has-access"===(0,r.p)(d)?(0,t.jsxs)("ul",{className:f,children:[(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:l?(0,i.e)(l):i.Y,onClick:()=>(0,a.p)("course-hero-view-in-adept",h),className:"focus-on-dark btn-gradient inline-flex h-12 items-center rounded-full px-8 text-sm font-semibold text-white shadow-lg shadow-cbt-500/20",children:d.access.isCompleted?"Review in Adept":"Enroll"})}),c,(0,t.jsx)("li",{children:(0,t.jsx)(m,{courseId:e})})]}):(0,t.jsxs)("ul",{className:f,children:[o,c,(0,t.jsx)("li",{children:(0,t.jsx)(m,{courseId:e})})]}):(0,t.jsx)(s.l,{resolved:!1,pending:(0,t.jsxs)("div",{role:"status",className:"inline-flex animate-pulse items-center gap-4",children:[(0,t.jsx)("span",{className:"sr-only",children:"Checking your access…"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-12 w-44 rounded-full bg-white/10"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-block h-12 w-36 rounded-full bg-white/10"})]}),children:(0,t.jsxs)("ul",{className:f,children:[o,c]})})}],798616)},986908,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(716327),s=e.i(975157);let r=/\n\s*\n/,a="mt-3 max-w-2xl text-base leading-relaxed text-ink-muted-dark [&>*+*]:mt-3";e.s(["CourseHeroDescription",0,function({source:e,children:l}){let o=(0,n.useId)(),c=(0,n.useRef)(null),[d,u]=(0,n.useState)(!1),[m,f]=(0,n.useState)(null),h=e.length>68||r.test(e),p=(0,n.useCallback)(()=>{let e=c.current;if(!e)return;let t=!e.classList.contains("line-clamp-2");t&&e.classList.add("line-clamp-2");let n=e.scrollHeight>e.clientHeight+1;t&&e.classList.remove("line-clamp-2"),f(n)},[]);if((0,n.useEffect)(()=>{if(!h)return;p();let e=c.current;if(!e||"u"p());return t.observe(e),()=>t.disconnect()},[h,p]),!h)return(0,t.jsx)("div",{className:a,children:l});let x=!1!==m,b=x&&!d;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{id:o,ref:c,className:(0,s.f)(a,b&&"line-clamp-2"),children:l}),x&&(0,t.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),"aria-expanded":d,"aria-controls":o,className:"focus-on-dark -mb-1 inline-flex items-center gap-1 rounded-sm py-2 text-sm font-medium text-cbt-200 transition-colors hover:text-white",children:[d?"Show less":"Show more",(0,t.jsx)(i.f,{className:(0,s.f)("size-3.5 transition-transform duration-200 motion-reduce:transition-none",d&&"rotate-180"),"aria-hidden":"true"})]})]})}])},881278,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566);let s=(0,e.i(456420).f)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var r=e.i(508734),a=e.i(882303),l=e.i(776639),o=e.i(60300),c=e.i(722888),d=e.i(311063),u=e.i(411186),m=e.i(211539);function f({state:e,adeptCourseSlug:n,courseTitle:r}){let a=(0,i.usePathname)(),l=e.access.seatEndsAt?new Date(e.access.seatEndsAt):null;return(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-between gap-4 rounded-2xl border border-success-500/30 bg-success-500/10 px-6 py-5 sm:flex-row",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(s,{"aria-hidden":!0,className:"mt-0.5 size-5 shrink-0 text-success-500"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-white",children:"You already have access to this course"}),(0,t.jsxs)("p",{className:"mt-0.5 text-sm text-cbt-300",children:[function(e){switch(e){case"sub":return"Covered by your plan";case"enr":return"Single-course enrollment";default:return"Included in your access"}}(e.access.accessType),l&&!Number.isNaN(l.getTime())&&(0,t.jsxs)(t.Fragment,{children:[" — access through ",l.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]}),e.access.isCompleted&&". Completed — nice work."]})]})]}),(0,t.jsx)("a",{href:n?(0,o.e)(n):o.Y,onClick:()=>(0,d.p)("course-pricing-view-in-adept",a),"aria-label":`View ${r} in Adept`,className:"focus-on-dark inline-flex h-10 shrink-0 items-center justify-center rounded-full border border-white/20 px-6 text-sm font-semibold text-white transition-colors hover:border-cbt-400 hover:text-cbt-300",children:"View in Adept"})]})}function h({state:e,courseId:s,courseTitle:r,hasSelfServeStrip:l}){let o=(0,i.usePathname)(),[c,u]=n.useState(!1),m=e.billing.orgs[0]?.name||"your organization";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-between gap-4 rounded-2xl border border-white/10 bg-white/5 px-6 py-5 sm:flex-row",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(a.f,{"aria-hidden":!0,className:"mt-0.5 size-5 shrink-0 text-cbt-400"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-semibold text-white",children:["Part of ",m,"? Seats are managed by your team admin"]}),(0,t.jsxs)("p",{className:"mt-0.5 text-sm text-cbt-300",children:["Ask your admin to assign you a seat",l?", or enroll yourself below with a personal purchase.":"."]})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{(0,d.p)("course-pricing-request-access",o),u(!0)},className:"focus-on-dark inline-flex h-10 shrink-0 items-center justify-center rounded-full border border-white/20 px-6 text-sm font-semibold text-white transition-colors hover:border-cbt-400 hover:text-cbt-300",children:"Request access"})]}),(0,t.jsx)(p,{open:c,onOpenChange:u,orgName:m,courseId:s,courseTitle:r})]})}function p({open:e,onOpenChange:i,orgName:s,courseId:a,courseTitle:o}){let[c,d]=n.useState(!1),u=`${window.location.origin}${window.location.pathname}`,m=`Hi — could you assign me a CBT Nuggets seat for "${o}"? Course page: ${u} (course id ${a}). Thanks!`,f=async()=>{try{await navigator.clipboard.writeText(m),d(!0),window.setTimeout(()=>d(!1),2e3)}catch{}};return(0,t.jsx)(l.N,{open:e,onOpenChange:i,children:(0,t.jsxs)(l.d,{className:"w-[480px] max-w-[calc(100vw-2rem)] p-6",children:[(0,t.jsx)(l.F,{className:"font-display text-xl font-medium text-cbt-800",children:"Request access from your team admin"}),(0,t.jsxs)(l.C,{className:"mt-2 text-sm text-muted-foreground",children:["Seats for ",s," are assigned by your team's admin. Send them this note — they can add you in the CBT Nuggets admin portal in a couple of clicks."]}),(0,t.jsx)("p",{className:"mt-4 select-all rounded-lg border border-cbt-100 bg-cbt-50/50 p-3 text-sm text-cbt-800",children:m}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-end gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i(!1),className:"inline-flex h-10 items-center rounded-full px-4 text-sm font-medium text-cbt-500 transition-colors hover:text-cbt-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2",children:"Close"}),(0,t.jsxs)("button",{type:"button",onClick:()=>void f(),className:"inline-flex h-10 items-center gap-2 rounded-full btn-gradient px-5 text-sm font-semibold text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2",children:[(0,t.jsx)(r.f,{"aria-hidden":!0,className:"size-4"}),c?"Copied":"Copy message"]})]})]})})}e.s(["CoursePricingViewerPanel",0,function({courseId:e,adeptCourseSlug:n,courseTitle:i,children:s}){let r=(0,m.j)(e),a=r?(0,u.p)(r):"anonymous";return r?"anonymous"===a||"self-serve"===a?(0,t.jsx)(t.Fragment,{children:s}):"has-access"===a?(0,t.jsx)(f,{state:r,adeptCourseSlug:n,courseTitle:i}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{state:r,courseId:e,courseTitle:i,hasSelfServeStrip:null!=s}),s]}):(0,t.jsx)(c.l,{resolved:!1,pending:null!=s?(0,t.jsx)("div",{className:"mt-8 rounded-2xl border border-white/10 bg-white/5 px-6 py-5",children:(0,t.jsx)(c.F,{label:"Checking your access",bars:2})}):null,children:s})}],881278)},59490,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(96892),s=e.i(975157);e.s(["BackToTop",0,function({threshold:e=600,className:r,label:a="Back to top"}){let[l,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=()=>o(window.scrollY>e);t();let n=0,i=()=>{n||(n=window.requestAnimationFrame(()=>{n=0,t()}))};return window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i),n&&window.cancelAnimationFrame(n)}},[e]),(0,t.jsxs)("button",{type:"button","aria-label":a,inert:!l,onClick:()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:e?"auto":"smooth"})},className:(0,s.f)("group fixed z-40 inline-flex size-12 items-center justify-center rounded-full","border border-border/80 bg-background/90 text-foreground shadow-lg shadow-black/10","backdrop-blur-md transition-[transform,opacity,box-shadow,border-color,color] duration-300 ease-out","hover:-translate-y-0.5 hover:border-cbt-500/60 hover:bg-background hover:text-cbt-600 hover:shadow-xl hover:shadow-cbt-500/15","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500","motion-reduce:transition-none",l?"pointer-events-auto translate-y-0 opacity-100":"pointer-events-none translate-y-3 opacity-0","bottom-[calc(5.5rem+env(safe-area-inset-bottom)+var(--cookie-banner-height,0px))] right-[max(1.25rem,env(safe-area-inset-right))]",r),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-full bg-linear-to-br from-cbt-400/0 via-cbt-400/0 to-cbt-500/20 opacity-0 transition-opacity duration-300 group-hover:opacity-100 motion-reduce:transition-none"}),(0,t.jsx)(i.f,{"aria-hidden":"true",className:"relative size-5 transition-transform duration-300 motion-reduce:transition-none"})]})}])},203771,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(522016),s=e.i(975157);e.s(["TopicOutline",0,function({items:e}){let[r,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,s=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 s=i[0];for(let n of i)e[n]<=t&&(s=n);return s}(n,{atBottom:window.innerHeight+window.scrollY>=i.scrollHeight-2});a(s>=0?e[s].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===r;return(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{href:`#${e.id}`,"aria-current":n?"location":void 0,className:(0,s.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)})})]})})}])},472033,240139,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(325164),s=e.i(689664),r=e.i(776639),a=e.i(975157),l=e.i(998082);e.s(["e",0,"inline-flex h-11 w-full items-center justify-center whitespace-nowrap rounded-md bg-cbt-500 px-4 text-sm font-medium text-white transition-colors hover:bg-cbt-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500/40 focus-visible:ring-offset-1","I",0,"rounded-sm underline underline-offset-2 hover:text-cbt-700 focus-visible:outline-2 focus-visible:outline-cbt-500 focus-visible:outline-offset-2","z",0,function({open:e,openMethod:s,onOpenChange:a,onReady:o,finalFocus:c,title:d,titleId:u,children:m}){let f=n.useRef(null);return(0,l.B)(o),(0,t.jsx)(r.N,{open:e,onOpenChange:a,children:(0,t.jsx)(r.d,{ref:f,initialFocus:"touch"===s?f:void 0,finalFocus:c,className:"w-[600px] max-w-[calc(100vw-2rem)] max-h-[calc(100dvh-2rem)] overflow-y-auto p-0",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 px-6 pt-5 pb-5",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)(i.default,{src:"/assetshttps://www.cbtnuggets.com/images/svg/cbt-by-adept.svg",alt:"CBT Nuggets powered by Adept",width:240,height:48,className:"h-auto w-52"}),(0,t.jsx)("div",{"aria-hidden":!0,className:"my-3 h-px w-full max-w-[520px] bg-cbt-100"}),(0,t.jsx)(r.F,{id:u,className:"font-display text-lg font-medium text-cbt-800",children:d})]}),m]})})})},"q",0,function({features:e}){return(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:e.map((e,n)=>(0,t.jsxs)("li",{className:(0,a.f)("grid grid-cols-[1fr_auto] items-start gap-x-3 py-1.5",n>0&&"border-t border-cbt-100"),children:[(0,t.jsxs)("div",{className:"flex min-w-0 gap-2.5",children:[(0,t.jsx)(e.Icon,{className:"mt-0.5 size-5 shrink-0 text-cbt-500","aria-hidden":!0}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col",children:[(0,t.jsx)("p",{className:"text-sm font-semibold leading-snug text-cbt-800",children:e.title}),(0,t.jsx)("p",{className:"text-sm leading-snug text-muted-foreground",children:e.desc})]})]}),(0,t.jsx)(s.f,{className:"mt-0.5 size-5 shrink-0 text-success-600","aria-hidden":!0})]},e.id))})},"s",0,function({children:e}){return(0,t.jsx)(r.C,{className:"min-h-[2lh] text-sm leading-snug text-muted-foreground",children:e})},"w",0,function({name:e,subtitle:n,price:i}){return(0,t.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4 border-b border-cbt-100 pb-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-display text-2xl font-medium leading-none text-cbt-500",children:e}),(0,t.jsx)("p",{className:"mt-1 text-sm font-medium leading-tight text-muted-foreground",children:n})]}),(0,t.jsx)("div",{className:"text-right",children:i})]})},"C",0,function({figure:e,unit:n,note:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"font-display text-2xl font-medium leading-none text-cbt-800 whitespace-nowrap",children:e}),(0,t.jsx)("p",{className:"mt-0.5 text-sm uppercase tracking-wide text-muted-foreground whitespace-nowrap",children:n}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-muted-foreground whitespace-nowrap",children:i})]})},"k",0,function({children:e}){return(0,t.jsx)("div",{className:"flex flex-col gap-2.5 border-t border-cbt-100 pt-2.5",children:e})},"F",0,function({trigger:e,open:n,onOpen:i,onIntent:s,ref:r}){return(0,t.jsx)("button",{ref:r,type:"button","aria-haspopup":"dialog","aria-expanded":n,"aria-label":e.ariaLabel,className:e.className,onClick:e=>i((0,l.X)(e)),onPointerEnter:s,onFocus:s,onTouchStart:s,children:e.label})}],472033),e.s(["s",0,"Team","M",0,"Trainerbot Plus"],240139)},145708,e=>{var t=e.i(843476),n=e.i(522016),i=e.i(618566),s=e.i(570590);e.s(["CoursePricingCrossSell",0,function(){return"present"===(0,i.useSearchParams)().get("ctx")?(0,t.jsx)(n.default,{href:s.Q,className:"text-sm font-medium text-cbt-300 underline-offset-4 hover:text-white hover:underline",children:"Discuss this course with your CBT Nuggets contact"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{href:"/pricing",className:"text-sm font-medium text-cbt-300 underline-offset-4 hover:text-white hover:underline",children:"See plans and pricing for your team"}),(0,t.jsxs)("p",{className:"text-sm text-cbt-500",children:["Need access for just one person?"," ",(0,t.jsx)(n.default,{href:"/pricing",className:"text-cbt-400 underline underline-offset-4 hover:text-cbt-300",children:"See individual options"})]})]})}])},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}])},112793,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),s=e.i(689664),r=e.i(456420);let a=(0,r.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"}]]),l=(0,r.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,r.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 f=e.i(975157);e.s(["ShareButton",0,function({url:e,title:r,surface:h,className:p}){let x=(0,i.usePathname)()??"/",b=(0,n.useId)(),g=(0,n.useRef)(null),v=(0,n.useRef)(null),w=(0,n.useRef)(null),y=(0,n.useRef)(null),[j,k]=(0,n.useState)(!1),[N,C]=(0,n.useState)(null),[S,A]=(0,n.useState)(!1),[T,E]=(0,n.useState)(""),R=()=>r??("u">typeof document?document.title:""),I=(0,n.useCallback)(e=>{E(e),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>E(""),2500)},[]),L=(0,n.useCallback)((e=!1)=>{k(!1),e&&v.current?.focus()},[]);(0,n.useEffect)(()=>{if(j)return w.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)&&L()}function t(e){"Escape"===e.key&&(e.preventDefault(),L(!0))}},[j,L]),(0,n.useEffect)(()=>()=>{y.current&&clearTimeout(y.current)},[]);let z=e=>(function({url:e,channel:t,campaign:n}){let i=new URL("string"==typeof e?e:e.href),s=(0,u.a)(i.search),r=new URLSearchParams(s.startsWith("?")?s.slice(1):s);return r.set("utm_source",t),r.set("utm_medium","share"),n&&r.set("utm_campaign",n),`${i.origin}${i.pathname}?${r.toString()}${i.hash}`})({url:N??window.location.href,channel:e}),F=e=>(0,d.p)(`share:${h}`,x,{channel:e}),$=async()=>{F("copy_link");let e=z("copy_link");try{if(!navigator.clipboard?.writeText)throw Error("clipboard unavailable");await navigator.clipboard.writeText(e),I("Link copied to clipboard")}catch{I("Could not copy — copy the address from the URL bar")}L(!0)},P=async()=>{F("web_share");try{await navigator.share({url:z("web_share"),title:R()})}catch{}L(!0)},_=[{channel:"linkedin",label:`Share on ${m.linkedin}`},{channel:"x",label:`Share on ${m.x}`},{channel:"email",label:"Share by email"}],O="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,f.f)("relative",p),onBlur:e=>{let t=e.relatedTarget;t instanceof Node&&(e.currentTarget.contains(t)||L())},children:[(0,t.jsxs)(c.K,{ref:v,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?L():(C(e??window.location.href),A("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:w,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(w.current?.querySelectorAll('[role="menuitem"]')??[]);if(0===t.length)return;let n=t.findIndex(e=>e===document.activeElement),i=e=>t[(e+t.length)%t.length]?.focus();switch(e.key){case"ArrowDown":e.preventDefault(),i(n+1);break;case"ArrowUp":e.preventDefault(),i(n-1);break;case"Home":e.preventDefault(),i(0);break;case"End":e.preventDefault(),i(t.length-1)}},children:[(0,t.jsxs)("button",{type:"button",role:"menuitem",className:O,"data-share-channel":"copy_link",onClick:()=>void $(),children:[(0,t.jsx)(a,{className:"size-4","aria-hidden":!0}),"Copy link"]}),_.map(({channel:e,label:n})=>(0,t.jsxs)("a",{role:"menuitem",className:O,"data-share-channel":e,href:function({channel:e,url:t,title:n}){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(n)}`;case"email":return`mailto:?subject=${encodeURIComponent(n)}&body=${encodeURIComponent(`${n} ${t}`)}`}}({channel:e,url:z(e),title:R()}),..."email"===e?{}:{target:"_blank",rel:"noopener noreferrer"},onClick:()=>{F(e),L()},children:["email"===e?(0,t.jsx)(l,{className:"size-4","aria-hidden":!0}):(0,t.jsx)(o,{className:"size-4","aria-hidden":!0}),n]},e)),S?(0,t.jsxs)("button",{type:"button",role:"menuitem",className:O,"data-share-channel":"web_share",onClick:()=>void P(),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,f.f)(T?"absolute right-0 top-full mt-1 inline-flex items-center gap-1 whitespace-nowrap text-sm text-muted-foreground":"sr-only"),children:T?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.f,{className:"size-3","aria-hidden":!0}),T]}):null})]})}],112793)},206917,e=>{var t=e.i(843476),n=e.i(768877),i=e.i(268863),s=e.i(975157);let r="/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:r,location:`trainerbot-term:${e}`,className:(0,s.f)(o[n],a),children:l})}let d={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:r,location:`trainerbot-term:${e}`,className:(0,s.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",d[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=[],s=0;for(let r of(a.lastIndex=0,e.matchAll(a))){let a=r.index;a>s&&i.push(e.slice(s,a)),i.push((0,t.jsx)(c,{...n,children:r[0]},`${a}-${r[0]}`)),s=a+r[0].length}return s{var t=e.i(843476),n=e.i(618566),i=e.i(522016),s=e.i(711241);let r=/^[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||!r.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)(s.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),s=e.i(117213);e.s(["CtaLink",0,function({describedBy:e,children:r,...a}){let l=(0,i.useRef)(null);return(0,s.f)(l,e),(0,t.jsx)(n.default,{ref:l,"aria-describedby":e,...a,children:r})}])},776639,e=>{var t=e.i(843476),n=e.i(526323),i=e.i(998218),s=e.i(921637),r=e.i(209977),a=e.i(141708),l=e.i(593480),o=e.i(309169),c=e.i(152744),d=e.i(975157),u=e.i(519455),m=e.i(560964);function f({...e}){return(0,t.jsx)(r.f.Portal,{"data-slot":"dialog-portal",...e})}function h({className:e,...n}){return(0,t.jsx)(a.f.Backdrop,{"data-slot":"dialog-overlay",className:(0,d.f)("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",e),...n})}e.s(["N",0,function({...e}){return(0,t.jsx)(n.f.Root,{"data-slot":"dialog",...e})},"d",0,function({className:e,children:n,...i}){return(0,t.jsxs)(f,{children:[(0,t.jsx)(h,{}),(0,t.jsxs)(l.f.Popup,{"data-slot":"dialog-content",className:(0,d.f)("fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-popover p-6 text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0","w-[calc(100%-2rem)] max-w-2xl max-h-[85vh] overflow-y-auto",e),...i,children:[n,(0,t.jsxs)(s.f.Close,{"data-slot":"dialog-close",render:(0,t.jsx)(u.K,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[(0,t.jsx)(m.f,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"C",0,function({className:e,...n}){return(0,t.jsx)(c.f.Description,{"data-slot":"dialog-description",className:(0,d.f)("text-sm text-muted-foreground",e),...n})},"s",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,d.f)("flex flex-col gap-1 pr-8",e),...n})},"F",0,function({className:e,...n}){return(0,t.jsx)(o.f.Title,{"data-slot":"dialog-title",className:(0,d.f)("font-heading text-base font-medium text-foreground",e),...n})},"a",0,function({...e}){return(0,t.jsx)(i.f.Trigger,{"data-slot":"dialog-trigger",...e})}])},87791,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(975157);e.s(["ScrollRegion",0,function({as:e,label:s,labelledBy:r,className:a,children:l,...o}){let c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=c.current;if(!e)return;let t={label:s,labelledBy:r},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()},[s,r]),(0,t.jsx)(e??"div",{ref:c,"data-slot":"scroll-region",className:(0,i.f)("overflow-x-auto",a),...o,children:l})}])},411186,211539,e=>{let t={access:{authenticated:!1,hasSeat:!1,accessType:null,isCompleted:!1,seatEndsAt:null},billing:{authenticated:!1,hasOrg:!1,canManageBilling:!1,orgs:[]},favorited:null};e.s(["O",0,t,"p",0,function(e){return e.access.authenticated||e.billing.authenticated?e.access.hasSeat?"has-access":e.billing.hasOrg&&!e.billing.canManageBilling?"org-member":"self-serve":"anonymous"}],411186);var n=e.i(271645);let i=null;function s(e){for(let t of e.listeners)t()}function r(e){return i&&i.courseId===e||(i={courseId:e,state:null,fetchedAt:0,listeners:new Set,inFlight:null}),i}function a(e){e.inFlight||null!==e.state&&Date.now()-e.fetchedAt<6e4||(e.inFlight=fetch(`/api/marketing/course-viewer-state?courseId=${encodeURIComponent(e.courseId)}`,{credentials:"same-origin",headers:{Accept:"applicationhttps://www.cbtnuggets.com/json"}}).then(async n=>{e.state=n.ok?await n.json():t}).catch(()=>{e.state=t}).then(()=>{e.fetchedAt=Date.now(),e.inFlight=null,s(e)}))}async function l(e,t){let n=r(e),i=n.state;i&&(n.state={...i,favorited:t},s(n));try{let n=await fetch("/api/marketing/favorites",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({courseId:e,favorited:t})});if(!n.ok)throw Error(`favorites POST ${n.status}`);return t}catch{return n.state&&i&&(n.state={...n.state,favorited:i.favorited},s(n)),!t}}e.s(["F",0,function(){i&&(i.state=null,i.fetchedAt=0,a(i))},"t",0,l,"j",0,function(e){let t=(0,n.useCallback)(t=>{let n=r(e);return n.listeners.add(t),a(n),()=>{n.listeners.delete(t)}},[e]),i=(0,n.useCallback)(()=>r(e).state,[e]);return(0,n.useSyncExternalStore)(t,i,()=>null)}],211539)},429592,e=>{var t=e.i(843476),n=e.i(271645);e.s(["ConsentEmbed",0,function({url:e}){let i,[s,r]=(0,n.useState)(!1),a=(i=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/),i?.[1]??null);return a?s?(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/${a}`,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:()=>r(!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"})}])},293995,e=>{let t=new Set(["gclid","fbclid","msclkid","yclid","mc_cid","mc_eid","ref","referral","referrer","_hsenc","_hsmi","hsCtaTracking"]),n=["utm_"];function i(e){var i;let s;if(!e||!e.includes("?"))return e;let[r,a]=-1===(s=(i=e).indexOf("?"))?[i,void 0]:[i.slice(0,s),i.slice(s+1)];if(!a)return r;let l=new URLSearchParams(a),o=new URLSearchParams;for(let[e,i]of l.entries())!function(e){let i=e.toLowerCase();return!!t.has(i)||n.some(e=>i.startsWith(e))}(e)&&o.append(e,i);let c=o.toString();return c?`${r}?${c}`:r}let s=new Set(["www.cbtnuggets.com","cbtnuggets.com","newcbt.cbtnuggets.com"]);e.s(["G",0,function(e){let t=i(e);if(t.startsWith("/"))return t;try{let e=new URL(t);if(s.has(e.hostname))return`${e.pathname}${e.search}`}catch{}return t},"a",0,i])}])})();