(()=>{"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),i=e.i(156736),n=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),f=e.i(552245),m=e.i(405005),h=e.i(638396),x=e.i(459636),p=e.i(264111),b=e.i(788015),g=e.i(385689),v=e.i(32199);let w=c.forwardRef(function(e,t){let{render:i,className:n,style:s,disabled:r=!1,nativeButton:a=!0,id:l,payload:w,handle:y,...j}=e,N=(0,d.x)(!0),k=(0,x.f)(y)??N;if(!k)throw Error((0,o.f)(79));let C=(0,b.f)(l),S=k.useState("floatingRootContext"),A=k.useState("isOpenedByTrigger",C),T=k.useState("triggerPopupId",C),E=c.useRef(null),{registerTrigger:F,isMountedByThisTrigger:I}=(0,p.F)(C,E,k,{payload:w}),{getButtonProps:P,buttonRef:z}=(0,u.f)({disabled:r,native:a}),R=(0,g.f)(S),L=(0,v.p)(()=>k.select("open"),e=>{k.set("openMethod",e)}),O=k.useState("triggerProps",I);return(0,f.f)("button",e,{state:{disabled:r,open:A},ref:[z,t,F,E],props:[R.reference,O,L,{[h.j]:"",id:C,"aria-haspopup":"dialog","aria-expanded":A,"aria-controls":T},j,P],stateAttributesMapping:m.J})});e.s(["Backdrop",()=>t.f,"Close",()=>i.f,"Description",()=>n.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 i=e.i(814387);e.s(["f",()=>i.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),i=e.i(271645),n=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=i.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:f}){let[m,h]=i.useState(0),x=(0,l.A)(),{open:p,bodyOpen:b,openMethod:g,onOpenChange:v,onReady:w}=x,y=i.useRef(null),j=(0,n.usePathname)(),N=i.useCallback(t=>{x.request(t)&&(h(e=>e+1),(0,r.C)({ctaText:e,subscriptionName:o.s,subscriptionPrice:s.R,page:j,intent:"open_configurator",billingPeriod:"annual"}))},[x,j,e]),{reset:k}=x,C=i.useCallback(()=>{k(),h(0)},[k]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.F,{ref:y,trigger:{label:e,ariaLabel:u,className:f},open:p,onOpen:N,onIntent:d}),m>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},m)}):null]})}])},749266,e=>{var t=e.i(843476),i=e.i(271645),n=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:f,ariaLabel:m,dataTestId:h,children:x}){let p=(0,r.r)(),b=(0,n.usePathname)(),[g,v]=i.useState(!1),w=p?.status==="authenticated";i.useEffect(()=>{g&&w&&((0,l.p)(o,b),window.location.assign(e))},[g,w,e,o,b]);let y=i.useCallback(e=>{e.metaKey||e.ctrlKey||e.shiftKey||1===e.button||!p||"authenticated"===p.status?(0,l.p)(o,b):(e.preventDefault(),(0,l.p)("assessment-gate-shown",b),v(!0))},[p,o,b]),j=i.useCallback(()=>{p&&((0,l.p)("assessment-gate-login",b),p.login())},[p,b]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:f,"aria-label":m,"data-testid":h,onClick:y,children:x}),p&&(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:p.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:p.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"})]}),p.error&&!p.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),i=e.i(618566),n=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"},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"},m={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 m=(0,i.usePathname)(),x=(0,s.r)(),p=(0,d.f)(f[a],u),b=(0,n.useRef)(null);return((0,r.f)(b),x)?(0,t.jsx)("button",{ref:b,type:"button",className:p,onClick:()=>{(0,o.p)(`${e}:sign-in`,m),x.login()},children:x.authenticating?"Signing in…":c}):(0,t.jsx)("a",{ref:b,href:l.F,className:p,onClick:()=>(0,o.p)(`${e}:sign-in`,m),children:c})}e.s(["AdeptAccountCta",0,function({surface:e,learnHref:n=l.Y,tone:r="light",prompt:x="Not ready to talk to sales?",continuePrompt:p="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,i.usePathname)(),N=(0,s.r)(),k=N?.status==="authenticated",C=u[r],S=f[r],A=m[r];return!k&&w?null:k?(0,t.jsx)("div",{className:y,children:(0,t.jsxs)("p",{className:A,children:[p," ",(0,t.jsxs)("a",{href:n,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:[x," ",(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:i,children:n}){return e?(0,t.jsx)(t.Fragment,{children:n}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"adept-slot-anon",children:n}),(0,t.jsx)("div",{className:"adept-slot-authed",children:i})]})},"F",0,function({label:e="Checking your access",bars:i=3,className:n,barClassName:s="bg-white/10"}){return(0,t.jsxs)("div",{role:"status",className:n,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:i},(e,i)=>(0,t.jsx)("div",{className:`h-4 rounded ${s}`,style:{width:`${100-18*i}%`}},i))})]})}])},844097,410532,e=>{var t=e.i(843476),i=e.i(271645),n=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"},f={individual:["annual"],team:["annual"],"trainerbot-plus":["monthly","annual"]};function m(e){return f[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=p(e),i=[{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");i.push({name:"items[0][subProductId]",value:e.courseId})}let n="team"===e.plan?Math.max(1,Math.floor(e.seats)):1;return i.push({name:"items[0][quantity]",value:String(n)}),i}function x(e){return"individual"===e.plan||"team"===e.plan?m(e.plan):"trainerbot-plus"===e.plan?e.billing??m("trainerbot-plus"):void 0}function p(e){return"trainerbot-plus"===e.plan?u["trainerbot-plus"][e.billing??m("trainerbot-plus")]:u[e.plan]}function b(e,t,i){if("account-only"===e.plan){let n={plan:e.plan,owner_hint_type:"USER",quantity:0,page:t};return e.courseId&&(n.course_id=e.courseId),i&&(n.course_slug=i),n}let n={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},s=x(e);return s&&(n.billing_period=s),"single-course"===e.plan&&(n.course_id=e.courseId,i&&(n.course_slug=i)),n}e.s(["c",0,d,"P",0,x,"Q",0,h,"f",0,b,"B",0,m],410532),e.s(["StartCheckoutForm",0,function({intent:e,courseSlug:u,className:f,ariaLabel:m,formClassName:p,subscriptionCta:g,ctaLocation:v,testId:w,onStart:y,children:j}){let N=(0,n.usePathname)(),k=i.useRef(null),C=i.useRef(null),[S,A]=i.useState(!1),[T,E]=i.useState(null),F=h(e);i.useEffect(()=>{if(!S)return;let e=e=>{e.persisted&&A(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[S]);let I=i.useCallback(t=>{if(S)return void t.preventDefault();E(C.current?.textContent?.trim()||null),A(!0);let i=k.current;i&&function(e){for(let t of Array.from(e.querySelectorAll("input[data-checkout-tracking]")))t.remove();let t=(0,c.B)(),i=(0,r.M)(),{merged:n}=(0,r.y)();for(let[s,a]of[["tracking[anon_id]",t.analytics?i[r.I.ANON_ID]:void 0],["tracking[session_id]",i[r.I.SESSION_ID]],["tracking[gclid]",t.marketing?n.gclid:void 0],["tracking[msclkid]",t.marketing?n.msclkid:void 0],["tracking[wbraid]",t.marketing?n.wbraid:void 0],["tracking[gbraid]",t.marketing?n.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)}}(i),y?.(),(0,l.f)("checkout_start",{properties:{...b(e,N,u),...v?{cta_location:v}:{}}}),g&&(0,o.C)({ctaText:g.ctaText,subscriptionName:g.subscriptionName,subscriptionPrice:g.subscriptionPrice,page:N,billingPeriod:x(e)})},[S,e,N,u,g,v,y]);return(0,t.jsxs)("form",{ref:k,method:"POST",action:d,onSubmit:I,className:p,children:[F.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?m??T??void 0:m,"aria-busy":S||void 0,"aria-disabled":S||void 0,"data-pending":S||void 0,className:(0,a.f)(f,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),i=e.i(618566),n=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 f({courseId:e,className:n}){let s=(0,u.j)(e),r=(0,d.r)(),m=(0,i.usePathname)(),[h,x]=l.useState(!1);if(!(null!==s&&(s.access.authenticated||s.billing.authenticated)))return null;let p=!0===s.favorited,b=p?"Remove from favorites":"Add to favorites",g=async()=>{if(!h){if(r&&"unauthenticated"===r.status){(0,a.p)("course-favorite:sign-in",m),await r.login(),(0,u.F)();return}x(!0);try{await (0,u.t)(e,!p)}finally{x(!1)}}};return(0,t.jsx)("button",{type:"button",onClick:()=>void g(),"aria-pressed":p,"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",p&&"text-cbt-300 hover:text-cbt-200",n),children:(0,t.jsx)(o.f,{"aria-hidden":"true",className:(0,c.f)("size-5",p&&"fill-current")})})}let m="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,i.usePathname)();return d?"has-access"===(0,r.p)(d)?(0,t.jsxs)("ul",{className:m,children:[(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:l?(0,n.e)(l):n.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)(f,{courseId:e})})]}):(0,t.jsxs)("ul",{className:m,children:[o,c,(0,t.jsx)("li",{children:(0,t.jsx)(f,{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:m,children:[o,c]})})}],798616)},986908,e=>{var t=e.i(843476),i=e.i(271645),n=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,i.useId)(),c=(0,i.useRef)(null),[d,u]=(0,i.useState)(!1),[f,m]=(0,i.useState)(null),h=e.length>68||r.test(e),x=(0,i.useCallback)(()=>{let e=c.current;if(!e)return;let t=!e.classList.contains("line-clamp-2");t&&e.classList.add("line-clamp-2");let i=e.scrollHeight>e.clientHeight+1;t&&e.classList.remove("line-clamp-2"),m(i)},[]);if((0,i.useEffect)(()=>{if(!h)return;x();let e=c.current;if(!e||"u"x());return t.observe(e),()=>t.disconnect()},[h,x]),!h)return(0,t.jsx)("div",{className:a,children:l});let p=!1!==f,b=p&&!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}),p&&(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)(n.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),i=e.i(271645),n=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),f=e.i(211539);function m({state:e,adeptCourseSlug:i,courseTitle:r}){let a=(0,n.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:i?(0,o.e)(i):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,n.usePathname)(),[c,u]=i.useState(!1),f=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 ",f,"? 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)(x,{open:c,onOpenChange:u,orgName:f,courseId:s,courseTitle:r})]})}function x({open:e,onOpenChange:n,orgName:s,courseId:a,courseTitle:o}){let[c,d]=i.useState(!1),u=`${window.location.origin}${window.location.pathname}`,f=`Hi — could you assign me a CBT Nuggets seat for "${o}"? Course page: ${u} (course id ${a}). Thanks!`,m=async()=>{try{await navigator.clipboard.writeText(f),d(!0),window.setTimeout(()=>d(!1),2e3)}catch{}};return(0,t.jsx)(l.N,{open:e,onOpenChange:n,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:f}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-end gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>n(!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 m(),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:i,courseTitle:n,children:s}){let r=(0,f.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)(m,{state:r,adeptCourseSlug:i,courseTitle:n}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{state:r,courseId:e,courseTitle:n,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),i=e.i(271645),n=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,i.useState)(!1);return(0,i.useEffect)(()=>{let t=()=>o(window.scrollY>e);t();let i=0,n=()=>{i||(i=window.requestAnimationFrame(()=>{i=0,t()}))};return window.addEventListener("scroll",n,{passive:!0}),()=>{window.removeEventListener("scroll",n),i&&window.cancelAnimationFrame(i)}},[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)(n.f,{"aria-hidden":"true",className:"relative size-5 transition-transform duration-300 motion-reduce:transition-none"})]})}])},203771,e=>{var t=e.i(843476),i=e.i(271645),n=e.i(522016),s=e.i(975157);e.s(["TopicOutline",0,function({items:e}){let[r,a]=(0,i.useState)(null);return((0,i.useEffect)(()=>{if(e.length<3)return;let t=0,i=()=>{t=0;let i=e.map(e=>{let t=document.getElementById(e.id);return t?t.getBoundingClientRect().top:null}),n=document.documentElement,s=function(e,{line:t=128,atBottom:i=!1}={}){let n=e.map((e,t)=>null===e?-1:t).filter(e=>e>=0);if(0===n.length)return -1;if(i)return n[n.length-1];let s=n[0];for(let i of n)e[i]<=t&&(s=i);return s}(i,{atBottom:window.innerHeight+window.scrollY>=n.scrollHeight-2});a(s>=0?e[s].id:null)},n=()=>{0===t&&(t=window.requestAnimationFrame(i))};return i(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n),window.addEventListener("hashchange",n),()=>{0!==t&&window.cancelAnimationFrame(t),window.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("hashchange",n)}},[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 i=e.id===r;return(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:`#${e.id}`,"aria-current":i?"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",i?"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),i=e.i(271645),n=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:f}){let m=i.useRef(null);return(0,l.B)(o),(0,t.jsx)(r.N,{open:e,onOpenChange:a,children:(0,t.jsx)(r.d,{ref:m,initialFocus:"touch"===s?m: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)(n.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})]}),f]})})})},"q",0,function({features:e}){return(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:e.map((e,i)=>(0,t.jsxs)("li",{className:(0,a.f)("grid grid-cols-[1fr_auto] items-start gap-x-3 py-1.5",i>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:i,price:n}){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:i})]}),(0,t.jsx)("div",{className:"text-right",children:n})]})},"C",0,function({figure:e,unit:i,note:n}){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:i}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-muted-foreground whitespace-nowrap",children:n})]})},"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:i,onOpen:n,onIntent:s,ref:r}){return(0,t.jsx)("button",{ref:r,type:"button","aria-haspopup":"dialog","aria-expanded":i,"aria-label":e.ariaLabel,className:e.className,onClick:e=>n((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),i=e.i(522016),n=e.i(618566),s=e.i(570590);e.s(["CoursePricingCrossSell",0,function(){return"present"===(0,n.useSearchParams)().get("ctx")?(0,t.jsx)(i.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)(i.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)(i.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 i=document.getElementById(e);i instanceof HTMLDetailsElement&&!i.open&&(i.open=!0,i.scrollIntoView())};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),null}])},206917,e=>{var t=e.i(843476),i=e.i(768877),n=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:i="light",className:a,children:l}){return(0,t.jsx)(n.TrackedLink,{href:r,location:`trainerbot-term:${e}`,className:(0,s.f)(o[i],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)(n.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)(i.f,{className:"size-3.5","aria-hidden":"true"})]})},"h",0,c,"w",0,l,"l",0,function(e,i){if(!l(e))return e;let n=[],s=0;for(let r of(a.lastIndex=0,e.matchAll(a))){let a=r.index;a>s&&n.push(e.slice(s,a)),n.push((0,t.jsx)(c,{...i,children:r[0]},`${a}-${r[0]}`)),s=a+r[0].length}return s{var t=e.i(843476),i=e.i(618566),n=e.i(522016),s=e.i(711241);let r=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;e.s(["ProposalContextBanner",0,function(){let e=(0,i.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)(n.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),i=e.i(522016),n=e.i(271645),s=e.i(117213);e.s(["CtaLink",0,function({describedBy:e,children:r,...a}){let l=(0,n.useRef)(null);return(0,s.f)(l,e),(0,t.jsx)(i.default,{ref:l,"aria-describedby":e,...a,children:r})}])},776639,e=>{var t=e.i(843476),i=e.i(526323),n=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),f=e.i(560964);function m({...e}){return(0,t.jsx)(r.f.Portal,{"data-slot":"dialog-portal",...e})}function h({className:e,...i}){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),...i})}e.s(["N",0,function({...e}){return(0,t.jsx)(i.f.Root,{"data-slot":"dialog",...e})},"d",0,function({className:e,children:i,...n}){return(0,t.jsxs)(m,{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),...n,children:[i,(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)(f.f,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"C",0,function({className:e,...i}){return(0,t.jsx)(c.f.Description,{"data-slot":"dialog-description",className:(0,d.f)("text-sm text-muted-foreground",e),...i})},"s",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,d.f)("flex flex-col gap-1 pr-8",e),...i})},"F",0,function({className:e,...i}){return(0,t.jsx)(o.f.Title,{"data-slot":"dialog-title",className:(0,d.f)("font-heading text-base font-medium text-foreground",e),...i})},"a",0,function({...e}){return(0,t.jsx)(n.f.Trigger,{"data-slot":"dialog-trigger",...e})}])},87791,e=>{var t=e.i(843476),i=e.i(271645),n=e.i(975157);e.s(["ScrollRegion",0,function({as:e,label:s,labelledBy:r,className:a,children:l,...o}){let c=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=c.current;if(!e)return;let t={label:s,labelledBy:r},i=()=>{var i;return i=e.scrollWidth>e.clientWidth+1||e.scrollHeight>e.clientHeight+1,void(e.setAttribute("data-measured","true"),i?(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(i(),"u"n.disconnect()},[s,r]),(0,t.jsx)(e??"div",{ref:c,"data-slot":"scroll-region",className:(0,n.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 i=e.i(271645);let n=null;function s(e){for(let t of e.listeners)t()}function r(e){return n&&n.courseId===e||(n={courseId:e,state:null,fetchedAt:0,listeners:new Set,inFlight:null}),n}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 i=>{e.state=i.ok?await i.json():t}).catch(()=>{e.state=t}).then(()=>{e.fetchedAt=Date.now(),e.inFlight=null,s(e)}))}async function l(e,t){let i=r(e),n=i.state;n&&(i.state={...n,favorited:t},s(i));try{let i=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(!i.ok)throw Error(`favorites POST ${i.status}`);return t}catch{return i.state&&n&&(i.state={...i.state,favorited:n.favorited},s(i)),!t}}e.s(["F",0,function(){n&&(n.state=null,n.fetchedAt=0,a(n))},"t",0,l,"j",0,function(e){let t=(0,i.useCallback)(t=>{let i=r(e);return i.listeners.add(t),a(i),()=>{i.listeners.delete(t)}},[e]),n=(0,i.useCallback)(()=>r(e).state,[e]);return(0,i.useSyncExternalStore)(t,n,()=>null)}],211539)},429592,e=>{var t=e.i(843476),i=e.i(271645);e.s(["ConsentEmbed",0,function({url:e}){let n,[s,r]=(0,i.useState)(!1),a=(n=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/),n?.[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"})}])}])})();