(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,743024,e=>{e.s(["f",0,function(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,i)=>n(e,t[i]))}])},201675,e=>{e.s(["f",0,function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}])},53687,e=>{var t=e.i(271645),n=e.i(388940),i=e.i(667865),r=e.i(146376),s=e.i(545356),a=e.i(843476);function l(){return new Map}function o(){return new Set}function c(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["f",0,function(e){let{children:u,elementsRef:d,labelsRef:f,onMapChange:h}=e,m=(0,i.f)(h),[,x]=t.useState(!1),b=(0,n.useRefWithInit)(o).current,p=(0,n.useRefWithInit)(l).current,g=t.useRef(0),v=t.useRef(!0),y=t.useRef([]),w=t.useRef(null),j=(0,i.f)(()=>{v.current||(v.current=!0,x(e=>!e))}),k=(0,i.f)((e,t)=>{p.set(e,t),j()}),N=(0,i.f)(e=>{p.delete(e),j()}),C=(0,i.f)(e=>{let t=new Map;return d.current.length=0,f&&(f.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),d.current[e.index]=e.element,f&&(f.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),g.current=d.current.length,t}),S=(0,i.f)(()=>{var e;let t,n,i,r,[s,a]=(e=p,t=new Set,n=[],i=[],e.forEach((e,r)=>{if(!r.isConnected)return;let s=e.index,a={index:s??-1,element:r,registration:e};null===s?i.push(a):s>=0&&(t.add(s),n.push(a))}),r=0,i.sort((e,t)=>c(e.element,t.element)),i.forEach(e=>{for(;t.has(r);)r+=1;e.index=r,n.push(e),r+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,i.map(e=>e.element)]),l=C(s);!function(e){if(w.current?.disconnect(),w.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(n=>{if(!function(e){for(let t of e)for(let e=0;e0){t.disconnect(),j();return}i=n}});w.current=t;let n=new Set;for(let t=1;tt.observe(e,{childList:!0}))}(a),y.current=s,v.current=!1,b.forEach(e=>e(l)),m(l)});(0,r.f)(()=>(v.current||C(y.current),()=>{d.current=[],f&&(f.current=[])}),[d,f,C]),(0,r.f)(()=>{v.current&&S()}),(0,r.f)(()=>()=>{w.current?.disconnect(),v.current=!0},[]);let A=(0,i.f)(e=>(b.add(e),()=>{b.delete(e)})),E=t.useMemo(()=>({register:k,unregister:N,subscribeMapChange:A,nextIndexRef:g}),[k,N,A,g]);return(0,a.jsx)(s.i.Provider,{value:E,children:u})}])},545356,e=>{e.i(247167);var t=e.i(271645);let n=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});e.s(["i",0,n,"Q",0,function(){return t.useContext(n)}])},673553,e=>{var t=e.i(271645),n=e.i(146376),i=e.i(545356);e.s(["f",0,function(e={}){let{guess:r,label:s,metadata:a,textRef:l,index:o}=e,{register:c,unregister:u,subscribeMapChange:d,nextIndexRef:f}=(0,i.Q)(),h=t.useRef(-1),[m,x]=t.useState(null==o&&r?()=>{if(-1===h.current){let e=f.current;f.current+=1,h.current=e}return h.current}:-1),b=o??m,p=t.useRef(null),g=t.useCallback(e=>{let t=p.current;t&&u(t),p.current=e,e&&c(e,{metadata:a??null,index:o??null,label:s,textRef:l})},[o,c,u,a,s,l]);return(0,n.f)(()=>{if(null==o)return d(e=>{let t=p.current?e.get(p.current)?.index:null;null!=t&&x(t)})},[o,d]),{ref:g,index:b}}])},872855,e=>{e.i(247167);var t=e.i(271645);let n=t.createContext(void 0);e.s(["f",0,function(){let e=t.useContext(n);return e?.direction??"ltr"}])},469690,875812,381104,e=>{var t=e.i(733332),n=e.i(271645),i=e.i(956789);let r={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},s={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1};e.s(["q",0,s,"t",0,r,"s",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],875812);let a={invalid:void 0,name:void 0,validityData:{state:r,errors:[],error:"",value:"",initialValue:null},setValidityData:i.x,disabled:void 0,setTouched:i.x,setDirty:i.x,setFilled:i.x,setFocused:i.x,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:s,registerFieldControl:i.x,validation:{getValidationProps:(e,t=i.w)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:i.x,getInputControl:()=>null,commit:async()=>{},change:i.x}},l=n.createContext(a);function o(e=!0){let r=n.useContext(l);if(r.setValidityData===i.x&&!e)throw Error((0,t.f)(28));return r}e.s(["f",0,o],469690);var c=e.i(146376),u=e.i(388940);e.s(["f",0,function(e,t,n,i,r=!0,s){let{registerFieldControl:a}=o(),l=(0,u.useRefWithInit)(()=>Symbol());(0,c.f)(()=>{let o=l.current;r?a(o,{controlRef:e,getValue:i,id:t,name:s,value:n}):a(o,void 0)},[e,r,i,t,s,a,l,n]),(0,c.f)(()=>{let e=l.current;return()=>{a(e,void 0)}},[a,l])}],381104)},884708,e=>{e.i(247167);var t=e.i(271645),n=e.i(956789);let i=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:n.x,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["f",0,function(){return t.useContext(i)}])},538489,247778,e=>{var t=e.i(271645),n=e.i(146376),i=e.i(667865),r=e.i(388940),s=e.i(229315),a=e.i(956789),l=e.i(788015);let o=t.createContext({controlId:void 0,registerControlId:a.x,labelId:void 0,setLabelId:a.x,messageIds:[],setMessageIds:a.x,getDescriptionProps:e=>e});function c(){return t.useContext(o)}e.s(["f",0,c],247778),e.s(["f",0,function(e={}){let{id:o,implicit:u=!1,controlRef:d}=e,{controlId:f,registerControlId:h}=c(),m=(0,l.f)(o),x=u?f:void 0,b=(0,r.useRefWithInit)(()=>Symbol()),p=t.useRef(!1),g=t.useRef(null!=o),v=(0,i.f)(()=>{p.current&&h!==a.x&&(p.current=!1,h(b.current,void 0))});return(0,n.f)(()=>{let e;if(h!==a.x){if(u){let t=d?.current;e=(0,s.m)(t)&&null!=t.closest("label")?o??null:x??m}else if(null!=o)g.current=!0,e=o;else{if(!g.current)return void v();e=m}if(void 0===e)return void v();p.current=!0,h(b.current,e)}},[o,d,x,h,u,m,b,v]),t.useEffect(()=>v,[v]),f??m}],538489)},450001,172410,e=>{e.s(["u",0,function(e){return null==e?void 0:`${e}-label`},"$",0,function(e,t){return e??t}],450001);var t=e.i(271645);let n=t.createContext(void 0),i={disableStyleElements:!1};e.s(["f",0,function(){return t.useContext(n)??i}],172410)},951437,e=>{e.i(247167);var t=e.i(271645);e.s(["f",0,function({controlled:e,default:n,name:i,state:r="value"}){let{current:s}=t.useRef(void 0!==e),[a,l]=t.useState(n),o=t.useCallback(e=>{s||l(e)},[]);return[s?e:a,o]}])},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)},271567,e=>{let t=(0,e.i(456420).f)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["f",0,t],271567)},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)},689765,e=>{let t=(0,e.i(456420).f)("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);e.s(["f",0,t],689765)},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)},749266,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),r=e.i(776639),s=e.i(540874),a=e.i(844097),l=e.i(311063);e.s(["AssessmentGateLink",0,function({href:e,location:o,courseId:c,signInReturnUrl:u,courseTitle:d,className:f,ariaLabel:h,dataTestId:m,children:x}){let b=(0,s.r)(),p=(0,i.usePathname)(),[g,v]=n.useState(!1),y=b?.status==="authenticated";n.useEffect(()=>{g&&y&&((0,l.p)(o,p),window.location.assign(e))},[g,y,e,o,p]);let w=n.useCallback(e=>{e.metaKey||e.ctrlKey||e.shiftKey||1===e.button||!b||"authenticated"===b.status?(0,l.p)(o,p):(e.preventDefault(),(0,l.p)("assessment-gate-shown",p),v(!0))},[b,o,p]),j=n.useCallback(()=>{b&&((0,l.p)("assessment-gate-login",p),b.login())},[b,p]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:f,"aria-label":h,"data-testid":m,onClick:w,children:x}),b&&(0,t.jsx)(r.N,{open:g,onOpenChange:v,children:(0,t.jsx)(r.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)(r.F,{className:"font-display text-xl font-medium text-cbt-800",children:d?"Sign in to take this readiness check":"Sign in to take assessments"}),(0,t.jsx)(r.C,{className:"mt-1.5 text-sm leading-snug text-muted-foreground",children:d?`The ${d} 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:b.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:b.authenticating?"Signing in…":"Continue with Adept"}),(0,t.jsx)(a.StartCheckoutForm,{intent:{plan:"account-only",returnTo:u,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"})]}),b.error&&!b.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),r=e.i(540874),s=e.i(117213),a=e.i(844097),l=e.i(60300),o=e.i(311063),c=e.i(206917),u=e.i(975157);let d={dark:"focus-on-dark rounded-sm font-semibold text-white underline underline-offset-2 hover:text-cbt-300 transition-colors",light:"rounded-sm font-semibold text-cbt-700 underline underline-offset-2 hover:text-cbt-500 transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500"},f={dark:"focus-on-dark inline-flex h-8 items-center rounded-full border border-white/40 px-3 text-sm font-semibold text-white transition-colors hover:bg-white/10 align-middle",light:"inline-flex h-8 items-center rounded-full border border-cbt-300 bg-white px-3 text-sm font-semibold text-cbt-800 transition-colors hover:border-cbt-500 hover:bg-cbt-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500 align-middle"},h={dark:"text-sm text-cbt-400",light:"text-sm text-muted-foreground"};function m({surface:e,tone:a="light",label:c="Sign in",className:d}){let h=(0,n.usePathname)(),x=(0,r.r)(),b=(0,u.f)(f[a],d),p=(0,i.useRef)(null);return((0,s.f)(p),x)?(0,t.jsx)("button",{ref:p,type:"button",className:b,onClick:()=>{(0,o.p)(`${e}:sign-in`,h),x.login()},children:x.authenticating?"Signing in…":c}):(0,t.jsx)("a",{ref:p,href:l.F,className:b,onClick:()=>(0,o.p)(`${e}:sign-in`,h),children:c})}e.s(["AdeptAccountCta",0,function({surface:e,learnHref:i=l.Y,tone:s="light",prompt:x="Not ready to talk to sales?",continuePrompt:b="You're signed in.",continueLabel:p="Continue in Adept",createLabel:g="Create your account",showBenefits:v=!1,hideWhenAnonymous:y=!1,className:w}){let j=(0,n.usePathname)(),k=(0,r.r)(),N=k?.status==="authenticated",C=d[s],S=f[s],A=h[s];return!N&&y?null:N?(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("p",{className:A,children:[b," ",(0,t.jsxs)("a",{href:i,className:C,onClick:()=>(0,o.p)(`${e}:continue-adept`,j),children:[p," →"]})]})}):(0,t.jsxs)("div",{className:w,children:[(0,t.jsxs)("div",{className:(0,u.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)(m,{surface:e,tone:s})]}),v&&(0,t.jsxs)("p",{className:(0,u.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:s,children:"IT Trainerbot"}),", with every answer citing its source video."]})]})},"AdeptSignInAction",0,m])},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:r="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 ${r}`,style:{width:`${100-18*n}%`}},n))})]})}])},844097,410532,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),r=e.i(632781),s=e.i(686525),a=e.i(975157),l=e.i(405240),o=e.i(311063),c=e.i(541872);let u="https://billing.api.adept.at/checkout/session",d={individual:"120",team:"100","trainerbot-plus":{annual:"210",monthly:"215"},"single-course":"110"},f={individual:["annual"],team:["annual"],"trainerbot-plus":["monthly","annual"]};function h(e){return f[e][0]}function m(e){if("account-only"===e.plan){let t=[{name:"ownerHint[type]",value:"USER"},{name:"ownerHint[status]",value:"NEW"}];return e.returnTo&&t.push({name:"returnTo",value:e.returnTo}),t}let t=b(e),n=[{name:"ownerHint[type]",value:"team"===e.plan?"ORG":"USER"},{name:"ownerHint[status]",value:"NEW"},{name:"items[0][productId]",value:t}];if("single-course"===e.plan){if(!e.courseId)throw Error("buildCheckoutFields: single-course checkout requires the Adept course UUID");n.push({name:"items[0][subProductId]",value:e.courseId})}let i="team"===e.plan?Math.max(1,Math.floor(e.seats)):1;return n.push({name:"items[0][quantity]",value:String(i)}),n}function x(e){return"individual"===e.plan||"team"===e.plan?h(e.plan):"trainerbot-plus"===e.plan?e.billing??h("trainerbot-plus"):void 0}function b(e){return"trainerbot-plus"===e.plan?d["trainerbot-plus"][e.billing??h("trainerbot-plus")]:d[e.plan]}function p(e,t,n){if("account-only"===e.plan){let i={plan:e.plan,owner_hint_type:"USER",quantity:0,page:t};return e.courseId&&(i.course_id=e.courseId),n&&(i.course_slug=n),i}let i={plan:e.plan,product_id:b(e),owner_hint_type:"team"===e.plan?"ORG":"USER",quantity:"team"===e.plan?Math.max(1,Math.floor(e.seats)):1,page:t},r=x(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,x,"Q",0,m,"f",0,p,"B",0,h],410532),e.s(["StartCheckoutForm",0,function({intent:e,courseSlug:d,className:f,ariaLabel:h,formClassName:b,subscriptionCta:g,ctaLocation:v,testId:y,onStart:w,children:j}){let k=(0,i.usePathname)(),N=n.useRef(null),C=n.useRef(null),[S,A]=n.useState(!1),[E,I]=n.useState(null),T=m(e);n.useEffect(()=>{if(!S)return;let e=e=>{e.persisted&&A(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[S]);let R=n.useCallback(t=>{if(S)return void t.preventDefault();I(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,s.M)(),{merged:i}=(0,s.y)();for(let[r,a]of[["tracking[anon_id]",t.analytics?n[s.I.ANON_ID]:void 0],["tracking[session_id]",n[s.I.SESSION_ID]],["tracking[gclid]",t.marketing?i.gclid:void 0],["tracking[msclkid]",t.marketing?i.msclkid:void 0],["tracking[wbraid]",t.marketing?i.wbraid:void 0],["tracking[gbraid]",t.marketing?i.gbraid:void 0]]){if(!a)continue;let t=document.createElement("input");t.type="hidden",t.name=r,t.value=a,t.dataset.checkoutTracking="true",e.appendChild(t)}}(n),w?.(),(0,l.f)("checkout_start",{properties:{...p(e,k,d),...v?{cta_location:v}:{}}}),g&&(0,o.C)({ctaText:g.ctaText,subscriptionName:g.subscriptionName,subscriptionPrice:g.subscriptionPrice,page:k,billingPeriod:x(e)})},[S,e,k,d,g,v,w]);return(0,t.jsxs)("form",{ref:N,method:"POST",action:u,onSubmit:R,className:b,children:[T.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?h??E??void 0:h,"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":y,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)(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)},798616,e=>{var t=e.i(843476),n=e.i(618566),i=e.i(60300),r=e.i(722888),s=e.i(411186),a=e.i(311063),l=e.i(271645),o=e.i(668109),c=e.i(975157),u=e.i(540874),d=e.i(211539);function f({courseId:e,className:i}){let r=(0,d.j)(e),s=(0,u.r)(),h=(0,n.usePathname)(),[m,x]=l.useState(!1);if(!(null!==r&&(r.access.authenticated||r.billing.authenticated)))return null;let b=!0===r.favorited,p=b?"Remove from favorites":"Add to favorites",g=async()=>{if(!m){if(s&&"unauthenticated"===s.status){(0,a.p)("course-favorite:sign-in",h),await s.login(),(0,d.F)();return}x(!0);try{await (0,d.t)(e,!b)}finally{x(!1)}}};return(0,t.jsx)("button",{type:"button",onClick:()=>void g(),"aria-pressed":b,"aria-label":p,title:p,disabled:m,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",b&&"text-cbt-300 hover:text-cbt-200",i),children:(0,t.jsx)(o.f,{"aria-hidden":"true",className:(0,c.f)("size-5",b&&"fill-current")})})}let h="flex flex-wrap items-center gap-4";e.s(["CourseHeroCtas",0,function({courseId:e,adeptCourseSlug:l,marketingCtas:o,alwaysCtas:c}){let u=(0,d.j)(e),m=(0,n.usePathname)();return u?"has-access"===(0,s.p)(u)?(0,t.jsxs)("ul",{className:h,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",m),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:u.access.isCompleted?"Review in Adept":"Enroll"})}),c,(0,t.jsx)("li",{children:(0,t.jsx)(f,{courseId:e})})]}):(0,t.jsxs)("ul",{className:h,children:[o,c,(0,t.jsx)("li",{children:(0,t.jsx)(f,{courseId:e})})]}):(0,t.jsx)(r.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:h,children:[o,c]})})}],798616)},986908,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(716327),r=e.i(975157);let s=/\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),[u,d]=(0,n.useState)(!1),[f,h]=(0,n.useState)(null),m=e.length>68||s.test(e),x=(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"),h(n)},[]);if((0,n.useEffect)(()=>{if(!m)return;x();let e=c.current;if(!e||"u"x());return t.observe(e),()=>t.disconnect()},[m,x]),!m)return(0,t.jsx)("div",{className:a,children:l});let b=!1!==f,p=b&&!u;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{id:o,ref:c,className:(0,r.f)(a,p&&"line-clamp-2"),children:l}),b&&(0,t.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),"aria-expanded":u,"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:[u?"Show less":"Show more",(0,t.jsx)(i.f,{className:(0,r.f)("size-3.5 transition-transform duration-200 motion-reduce:transition-none",u&&"rotate-180"),"aria-hidden":"true"})]})]})}])},881278,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566);let r=(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 s=e.i(508734),a=e.i(882303),l=e.i(776639),o=e.i(60300),c=e.i(722888),u=e.i(311063),d=e.i(411186),f=e.i(211539);function h({state:e,adeptCourseSlug:n,courseTitle:s}){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)(r,{"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,u.p)("course-pricing-view-in-adept",a),"aria-label":`View ${s} 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 m({state:e,courseId:r,courseTitle:s,hasSelfServeStrip:l}){let o=(0,i.usePathname)(),[c,d]=n.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,u.p)("course-pricing-request-access",o),d(!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:d,orgName:f,courseId:r,courseTitle:s})]})}function x({open:e,onOpenChange:i,orgName:r,courseId:a,courseTitle:o}){let[c,u]=n.useState(!1),d=`${window.location.origin}${window.location.pathname}`,f=`Hi — could you assign me a CBT Nuggets seat for "${o}"? Course page: ${d} (course id ${a}). Thanks!`,h=async()=>{try{await navigator.clipboard.writeText(f),u(!0),window.setTimeout(()=>u(!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 ",r," 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:()=>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 h(),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)(s.f,{"aria-hidden":!0,className:"size-4"}),c?"Copied":"Copy message"]})]})]})})}e.s(["CoursePricingViewerPanel",0,function({courseId:e,adeptCourseSlug:n,courseTitle:i,children:r}){let s=(0,f.j)(e),a=s?(0,d.p)(s):"anonymous";return s?"anonymous"===a||"self-serve"===a?(0,t.jsx)(t.Fragment,{children:r}):"has-access"===a?(0,t.jsx)(h,{state:s,adeptCourseSlug:n,courseTitle:i}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{state:s,courseId:e,courseTitle:i,hasSelfServeStrip:null!=r}),r]}):(0,t.jsx)(c.l,{resolved:!1,pending:null!=r?(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:r})}],881278)},59490,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(96892),r=e.i(975157);e.s(["BackToTop",0,function({threshold:e=600,className:s,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,r.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))]",s),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),r=e.i(975157);e.s(["TopicOutline",0,function({items:e}){let[s,a]=(0,n.useState)(null);return((0,n.useEffect)(()=>{if(e.length<3)return;let t=0,n=()=>{t=0;let n=e.map(e=>{let t=document.getElementById(e.id);return t?t.getBoundingClientRect().top:null}),i=document.documentElement,r=function(e,{line:t=128,atBottom:n=!1}={}){let i=e.map((e,t)=>null===e?-1:t).filter(e=>e>=0);if(0===i.length)return -1;if(n)return i[i.length-1];let r=i[0];for(let n of i)e[n]<=t&&(r=n);return r}(n,{atBottom:window.innerHeight+window.scrollY>=i.scrollHeight-2});a(r>=0?e[r].id:null)},i=()=>{0===t&&(t=window.requestAnimationFrame(n))};return n(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),window.addEventListener("hashchange",i),()=>{0!==t&&window.cancelAnimationFrame(t),window.removeEventListener("scroll",i),window.removeEventListener("resize",i),window.removeEventListener("hashchange",i)}},[e]),e.length<3)?null:(0,t.jsx)("nav",{"aria-label":"On this page",className:"pointer-events-none absolute inset-y-0 right-[max(0.5rem,calc(50vw-49.5rem))] z-30 hidden w-48 min-[1600px]:block",children:(0,t.jsxs)("div",{className:"pointer-events-auto sticky top-24 rounded-2xl border border-cbt-100 bg-white/95 p-4 shadow-sm backdrop-blur",children:[(0,t.jsx)("p",{className:"text-overline mb-3 text-cbt-700",children:"On this page"}),(0,t.jsx)("ol",{className:"space-y-1 text-sm",children:e.map(e=>{let n=e.id===s;return(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{href:`#${e.id}`,"aria-current":n?"location":void 0,className:(0,r.f)("block rounded-md px-2 py-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-600 focus-visible:ring-offset-2",n?"bg-cbt-50 font-semibold text-cbt-700":"text-muted-foreground hover:bg-cbt-50/60 hover:text-cbt-700"),children:e.label})},e.id)})})]})})}])},145708,e=>{var t=e.i(843476),n=e.i(522016),i=e.i(618566),r=e.i(570590);e.s(["CoursePricingCrossSell",0,function(){return"present"===(0,i.useSearchParams)().get("ctx")?(0,t.jsx)(n.default,{href:r.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}])},206917,e=>{var t=e.i(843476),n=e.i(768877),i=e.i(268863),r=e.i(975157);let s="/trainerbot",a=/IT[ \u00A0]Trainerbot(?:[ \u00A0]Plus)?/g;function l(e){return a.lastIndex=0,a.test(e)}let o={light:"font-medium text-cbt-700 underline decoration-cbt-700/40 underline-offset-4 transition-colors hover:text-cbt-900 hover:decoration-cbt-900",dark:"focus-on-dark font-medium text-white underline decoration-white/50 underline-offset-4 transition-colors hover:decoration-white"};function c({surface:e,tone:n="light",className:a,children:l}){return(0,t.jsx)(i.TrackedLink,{href:s,location:`trainerbot-term:${e}`,className:(0,r.f)(o[n],a),children:l})}let u={light:"text-cbt-700 hover:text-cbt-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-700",dark:"focus-on-dark text-cbt-200 hover:text-white"};e.s(["y",0,function({surface:e,tone:a="light",className:l}){return(0,t.jsxs)(i.TrackedLink,{href:s,location:`trainerbot-term:${e}`,className:(0,r.f)("inline-flex items-center gap-1 whitespace-nowrap rounded-sm align-middle font-sans text-sm font-semibold tracking-normal underline-offset-4 hover:underline",u[a],l),children:["Learn more"," ",(0,t.jsx)("span",{className:"sr-only",children:"about IT Trainerbot"}),(0,t.jsx)(n.f,{className:"size-3.5","aria-hidden":"true"})]})},"h",0,c,"w",0,l,"l",0,function(e,n){if(!l(e))return e;let i=[],r=0;for(let s of(a.lastIndex=0,e.matchAll(a))){let a=s.index;a>r&&i.push(e.slice(r,a)),i.push((0,t.jsx)(c,{...n,children:s[0]},`${a}-${s[0]}`)),r=a+s[0].length}return r{var t=e.i(843476),n=e.i(618566),i=e.i(522016),r=e.i(711241);let s=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;e.s(["ProposalContextBanner",0,function(){let e=(0,n.useSearchParams)(),a=e.get("ctx"),l=e.get("slug");if("present"!==a||!l||!s.test(l))return null;let o=`/present/${l}/it-training`;return(0,t.jsx)("div",{role:"region","aria-label":"Sales proposal context",className:"sticky top-16 z-30 border-b border-cbt-200 bg-cbt-50/95 backdrop-blur supports-backdrop-filter:bg-cbt-50/85",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-wrap items-center gap-x-3 gap-y-1 px-6 py-3 text-sm",children:[(0,t.jsxs)(i.default,{href:o,className:"inline-flex min-h-11 items-center gap-1.5 font-semibold text-cbt-700 hover:text-cbt-800",children:[(0,t.jsx)(r.f,{className:"size-4","aria-hidden":!0}),"Back to your proposal"]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Your tailored proposal is one click back — this is the public course page."})]})})}])},854453,e=>{var t=e.i(843476),n=e.i(522016),i=e.i(271645),r=e.i(117213);e.s(["CtaLink",0,function({describedBy:e,children:s,...a}){let l=(0,i.useRef)(null);return(0,r.f)(l,e),(0,t.jsx)(n.default,{ref:l,"aria-describedby":e,...a,children:s})}])},776639,e=>{var t=e.i(843476),n=e.i(526323),i=e.i(998218),r=e.i(921637),s=e.i(209977),a=e.i(141708),l=e.i(593480),o=e.i(309169),c=e.i(152744),u=e.i(975157),d=e.i(519455),f=e.i(560964);function h({...e}){return(0,t.jsx)(s.f.Portal,{"data-slot":"dialog-portal",...e})}function m({className:e,...n}){return(0,t.jsx)(a.f.Backdrop,{"data-slot":"dialog-overlay",className:(0,u.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)(h,{children:[(0,t.jsx)(m,{}),(0,t.jsxs)(l.f.Popup,{"data-slot":"dialog-content",className:(0,u.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)(r.f.Close,{"data-slot":"dialog-close",render:(0,t.jsx)(d.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,...n}){return(0,t.jsx)(c.f.Description,{"data-slot":"dialog-description",className:(0,u.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,u.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,u.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:r,labelledBy:s,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:r,labelledBy:s},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,s]),(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 r(e){for(let t of e.listeners)t()}function s(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,r(e)}))}async function l(e,t){let n=s(e),i=n.state;i&&(n.state={...i,favorited:t},r(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},r(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=s(e);return n.listeners.add(t),a(n),()=>{n.listeners.delete(t)}},[e]),i=(0,n.useCallback)(()=>s(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,[r,s]=(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?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/${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:()=>s(!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"})}])}])})();