(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,237729,e=>{var t=e.i(843476),s=e.i(522016),r=e.i(271645),n=e.i(174080),i=e.i(716327);let l=()=>()=>{},a=()=>!0,o=()=>!1;e.s(["CourseBreadcrumbItem",0,function({courses:e,demoHref:c}){let[d,u]=(0,r.useState)(!1),[m,f]=(0,r.useState)(null),h=(0,r.useRef)(null),x=(0,r.useRef)(null),p=(0,r.useId)(),b=(0,r.useSyncExternalStore)(l,a,o);if((0,r.useEffect)(()=>{if(!d)return;let e=e=>{let t=e.target;h.current?.contains(t)||x.current?.contains(t)||u(!1)},t=e=>{"Escape"===e.key&&(u(!1),h.current?.focus())};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[d]),(0,r.useLayoutEffect)(()=>{if(!d||!h.current)return;let e=()=>{let e=h.current;if(!e)return;let t=e.getBoundingClientRect(),s=window.innerWidth,r=Math.max(8,s-288-8),n=Math.max(8,Math.min(t.left,r));f({top:window.innerHeight-t.bottom<240&&t.top>260?t.top-8:t.bottom+8,left:n,minWidth:Math.min(288,s-16)})},t=0,s=()=>{t||(t=window.requestAnimationFrame(()=>{t=0,e()}))};return e(),window.addEventListener("scroll",s,{capture:!0,passive:!0}),window.addEventListener("resize",s,{passive:!0}),window.visualViewport?.addEventListener("resize",s,{passive:!0}),window.visualViewport?.addEventListener("scroll",s,{passive:!0}),()=>{window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s),window.visualViewport?.removeEventListener("resize",s),window.visualViewport?.removeEventListener("scroll",s),t&&window.cancelAnimationFrame(t)}},[d]),(0,r.useEffect)(()=>{d&&m&&x.current?.querySelector("a[href]")?.focus()},[d,m]),0===e.length)return null;let g=e[0];if(1===e.length)return(0,t.jsx)(s.default,{href:g.urlPath,className:"focus-on-dark -mx-1 inline-flex min-h-11 items-center px-1 py-1.5 transition-colors hover:text-white","data-catalog-title":"",children:g.title});let v=e.length-1,j=d&&m?(0,t.jsxs)("div",{ref:x,id:p,"aria-label":"Courses that include this skill",style:{position:"fixed",top:m.top,left:m.left,minWidth:m.minWidth,zIndex:60,backgroundColor:"color-mix(in srgb, var(--surface-darker) 95%, transparent)"},className:"max-w-[min(24rem,calc(100vw-1rem))] rounded-xl border border-white/10 backdrop-blur-md shadow-xl ring-1 ring-black/20 overflow-hidden",children:[(0,t.jsxs)("p",{className:"px-3 pt-3 pb-2 text-sm font-semibold uppercase tracking-wider text-cbt-300",children:["Also in ",v," ",1===v?"course":"courses"]}),(0,t.jsx)("ul",{className:"pb-2 max-h-80 overflow-y-auto",children:e.map((e,r)=>{let n=0===r;return(0,t.jsx)("li",{children:(0,t.jsxs)(s.default,{href:e.urlPath,"aria-current":n?"page":void 0,className:`block border-l-2 px-3 py-3 text-sm transition-colors ${n?"border-cbt-400 bg-white/5 text-white":"border-transparent text-cbt-200 hover:border-cbt-400/60 hover:bg-white/10 hover:text-white"}`,onClick:()=>u(!1),children:[(0,t.jsx)("span",{className:"block font-medium leading-tight","data-catalog-title":"",children:e.title}),e.vendorName&&(0,t.jsx)("span",{className:"mt-0.5 block text-sm text-cbt-400",children:e.vendorName})]})},`${e.urlPath}-${r}`)})}),c&&(0,t.jsx)("div",{className:"border-t border-white/10 bg-white/3 px-3 py-2.5",children:(0,t.jsxs)(s.default,{href:c,onClick:()=>u(!1),className:"group flex items-center justify-between gap-2 text-sm font-medium text-cbt-200 hover:text-white transition-colors",children:[(0,t.jsx)("span",{children:"Not sure which course fits your team?"}),(0,t.jsx)("span",{className:"text-cbt-300 group-hover:text-white transition-colors",children:"Book a Demo →"})]})})]}):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:h,type:"button",onClick:()=>u(e=>!e),"aria-haspopup":"true","aria-expanded":d,"aria-controls":d?p:void 0,className:"focus-on-dark inline-flex min-h-11 items-center gap-1 px-1 -mx-1 py-1.5 hover:text-white transition-colors",children:[(0,t.jsx)("span",{className:"truncate max-w-36 sm:max-w-none","data-catalog-title":"",children:g.title}),(0,t.jsxs)("span",{className:"text-cbt-300 text-sm font-medium",children:["+",v]}),(0,t.jsx)(i.f,{className:`size-3.5 transition-transform duration-200 ${d?"rotate-180":""}`,"aria-hidden":"true"})]}),b&&j?(0,n.createPortal)(j,document.body):null]})}])},338952,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(325164),n=e.i(174080),i=e.i(405240),l=e.i(263676),a=e.i(618566),o=e.i(785058),c=e.i(540874),d=e.i(844097),u=e.i(311063);function m({learnHref:e,title:s,onDismiss:r}){let n=(0,a.usePathname)(),i=(0,c.r)(),f=i?.status==="authenticated";return(0,t.jsxs)("div",{role:"region","aria-label":"Keep learning",className:"absolute inset-0 z-10 flex items-center justify-center bg-cbt-950/92 p-4",children:[(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":"Dismiss and return to the video",className:"focus-on-dark absolute right-3 top-3 flex size-9 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/20",children:(0,t.jsx)(l.X,{className:"size-4","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"max-w-md text-center",children:[(0,t.jsx)("p",{className:"font-display text-xl font-semibold text-white sm:text-2xl",children:f?"Keep learning in Adept":"Keep learning"}),f?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"mt-2 text-sm text-cbt-300",children:["You're signed in — pick up"," ",s?(0,t.jsxs)(t.Fragment,{children:["right where “",s,"” leaves off"]}):"right where this leaves off"," ","in the learning platform."]}),(0,t.jsx)("a",{href:e,onClick:()=>(0,u.p)("skill-video-end:continue-adept",n),className:"focus-on-dark btn-gradient mt-5 inline-flex h-11 items-center justify-center rounded-full px-7 text-sm font-semibold text-white",children:"Continue this skill in Adept"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mt-2 text-sm text-cbt-300",children:"Create your account to keep going in Adept — no purchase required. Browse the catalog, quiz yourself on free skills, and take pre-assessments."}),(0,t.jsx)(d.StartCheckoutForm,{intent:{plan:"account-only"},ctaLocation:"skill-video-end",ariaLabel:"Create your account: opens secure checkout; no purchase required",formClassName:"mt-5 flex justify-center",className:"focus-on-dark btn-gradient inline-flex h-11 items-center justify-center rounded-full px-7 text-sm font-semibold text-white",children:"Create your account"}),(0,t.jsxs)("p",{className:"mt-3 text-sm text-cbt-400",children:["Already have an account?"," ",(0,t.jsx)(o.AdeptSignInAction,{surface:"skill-video-end",tone:"dark"})]})]})]})]})}let f=null;function h(e){let t=(0,s.useRef)(null);return null===t.current&&(t.current=Symbol("video-player")),(0,s.useEffect)(()=>{let e=t.current;return()=>{f?.owner===e&&(f=null)}},[]),(0,s.useCallback)(()=>{!function(e,t){let s=f;if(f={owner:e,pause:t},s&&s.owner!==e)try{s.pause()}catch{}}(t.current,()=>e.current?.pause())},[e])}let x=(0,s.lazy)(()=>e.A(794375));function p(e){(0,i.f)("video_preview_play",{properties:{page_path:window.location.pathname,...e?{title:e}:{}}})}function b(e){(0,i.f)("video_preview_complete",{properties:{page_path:window.location.pathname,...e?{title:e}:{}}})}let g="/assetshttps://www.cbtnuggets.com/images/skill/video-poster-default.webp",v=e=>(window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)),j=()=>window.location.hash,w=()=>"";function y(e){let t,r=(0,s.useSyncExternalStore)(v,j,w);if(!e)return null;let n=(t=/^#?video-([^:]+?)(?::t=(\d+(?:\.\d+)?))?$/.exec(r.trim()))?{assetId:t[1],seconds:null!=t[2]?Number(t[2]):null}:null;return n&&n.assetId===e?n.seconds??0:null}function k(e,t,r){let n=(0,s.useRef)(!1);(0,s.useEffect)(()=>{e&&null!==t&&!n.current&&(n.current=!0,p(r),document.getElementById(`video-${e}`)?.scrollIntoView({block:"start"}))},[e,t,r])}function N(e){return e&&e.length>0?e:g}function S(e){if(null==e)return null;if("number"==typeof e)return e;let t=e.split(":").map(Number);if(2===t.length&&t[0]>0&&t[1]>0)return t[0]/t[1];let s=Number(e);return Number.isFinite(s)&&s>0?s:null}function C({playbackUrl:e,posterImageUrl:r,aspectRatio:i,title:l,priorityPoster:a,endCta:o,deepLinkAssetId:c}){let[d,u]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1),[v,j]=(0,s.useState)(!1),w=(0,s.useRef)(!1),E=(0,s.useRef)(null),L=h(E),T=function(e){try{let t=new URL(e);if(t.hostname.includes("mux.com")){let e=t.pathname.split("/").filter(Boolean),s=e[e.length-1];return s?.replace(/\.m3u8$/,"")??null}}catch{}return null}(e),$=S(i),R=$?`${1/$*100}%`:"56.25%",P=N(r),z=y(c);k(c,z,l);let B=d||null!==z;return f?(0,t.jsx)(A,{padBottom:R,title:l}):B?(0,t.jsxs)("div",{role:"region","aria-label":l?`Video: ${l}`:"Video",className:"relative w-full rounded-lg overflow-hidden bg-skill-surface-dark",children:[(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(I,{padBottom:R,posterImageUrl:P,title:l,priority:a}),children:(0,t.jsx)(x,{ref:e=>{E.current=e},...T?{playbackId:T}:{src:e},poster:P,streamType:"on-demand",autoPlay:!0,...z?{startTime:z}:{},accentColor:"var(--color-cbt-600)",style:{width:"100%",aspectRatio:$?`${$}`:"16/9"},onError:()=>g(!0),onPlay:L,onEnded:()=>{w.current||(w.current=!0,b(l)),o&&j(!0)}})}),v&&o&&(0,t.jsx)(m,{learnHref:o.learnHref,title:l,onDismiss:()=>j(!1)})]}):(0,t.jsx)(I,{padBottom:R,posterImageUrl:P,onIntent:()=>{let t;(t=function(e){try{return new URL(e).origin}catch{return null}}(e))&&t!==window.location.origin&&(0,n.preconnect)(t)},onClick:()=>{p(l),u(!0)},title:l,priority:a})}function E({playbackUrl:r,posterImageUrl:n,aspectRatio:i,title:l,priorityPoster:a,endCta:o,deepLinkAssetId:c}){let d=(0,s.useRef)(null),u=h(d),[f,x]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),[j,w]=(0,s.useState)(!1),C=(0,s.useRef)(!1),L=S(i),T=L?`${1/L*100}%`:"56.25%",$=N(n),R=y(c);k(c,R,l);let P=f||null!==R;return((0,s.useEffect)(()=>{if(!P)return;let t=d.current;if(!t)return;let s=null,n=R??0,i=()=>{n>0&&(t.currentTime=n),t.play().catch(()=>{})};return(async()=>{let n=(await e.A(270308)).default;n.isSupported()?((s=new n({enableWorker:!1})).loadSource(r),s.attachMedia(t),s.on(n.Events.MANIFEST_PARSED,i),s.on(n.Events.ERROR,(e,t)=>{t.fatal&&v(!0)})):t.canPlayType("application/vnd.apple.mpegurl")?(t.src=r,t.addEventListener("loadedmetadata",i,{once:!0})):v(!0)})(),()=>{s?.destroy()}},[P,r]),g)?(0,t.jsx)(A,{padBottom:T,title:l}):P?(0,t.jsxs)("div",{role:"region","aria-label":l?`Video: ${l}`:"Video",className:"relative w-full rounded-lg overflow-hidden bg-skill-surface-dark",children:[(0,t.jsx)("video",{ref:d,controls:!0,preload:"metadata",poster:$,style:{width:"100%",aspectRatio:L?`${L}`:"16/9"},className:"bg-black",onPlay:u,onEnded:()=>{C.current||(C.current=!0,b(l)),o&&w(!0)}}),j&&o&&(0,t.jsx)(m,{learnHref:o.learnHref,title:l,onDismiss:()=>w(!1)})]}):(0,t.jsx)(I,{padBottom:T,posterImageUrl:$,onClick:()=>{p(l),x(!0)},title:l,priority:a})}let A=(0,s.forwardRef)(function({padBottom:e,title:s},r){return(0,t.jsx)("div",{ref:r,className:"relative w-full rounded-lg bg-skill-surface-dark flex items-center justify-center",style:{paddingBottom:e},children:(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-skill-surface-dark-text gap-2",children:[(0,t.jsx)("p",{className:"font-medium",children:"Video unavailable"}),s&&(0,t.jsx)("p",{className:"text-sm text-skill-surface-dark-muted",children:s})]})})});function I({padBottom:e,posterImageUrl:s,onClick:n,onIntent:i,title:l,priority:a=!1}){let o=s===g;return(0,t.jsxs)("button",{type:"button",className:"relative w-full rounded-lg overflow-hidden bg-skill-surface-dark cursor-pointer group focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2",style:{paddingBottom:e},onClick:n,onPointerEnter:i,onFocus:i,onTouchStart:i,"aria-label":l?`Play video: ${l}`:"Play video",children:[s&&(0,t.jsx)("img",{src:s,alt:"",width:o?1376:void 0,height:o?768:void 0,fetchPriority:a?"high":"auto",loading:a?"eager":"lazy",decoding:"async",className:"absolute inset-0 w-full h-full object-cover"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 group-hover:bg-black/30 transition-colors",children:(0,t.jsx)("div",{className:"w-16 h-16 rounded-full bg-black/60 group-hover:bg-black/70 group-hover:scale-110 transition-all flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-white ml-1",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})}),(0,t.jsx)("div",{className:"absolute right-4 bottom-4 pointer-events-none flex h-11 w-11 items-center justify-center rounded-full bg-black/55 backdrop-blur-sm ring-1 ring-white/10","aria-hidden":"true",children:(0,t.jsx)(r.default,{src:"/assetshttps://www.cbtnuggets.com/images/brand/nugget-icon.png",alt:"",width:28,height:28,sizes:"28px",className:"h-7 w-7"})}),l&&(0,t.jsx)("div",{className:"absolute left-4 right-20 bottom-4 pointer-events-none text-left",children:(0,t.jsx)("span",{className:"inline-block max-w-full rounded-md bg-black/55 px-3 py-1.5 text-left text-sm font-medium text-white backdrop-blur-sm line-clamp-2",children:l})})]})}e.s(["MuxVideoPlayer",0,function(e){if(function(e){try{return"content.api.adept.at"===new URL(e).hostname}catch{return!1}}(e.playbackUrl)){var s;return(0,t.jsx)(E,{...e,playbackUrl:(s=e.playbackUrl,`/api/asset/stream.m3u8?url=${encodeURIComponent(s)}`)})}return(0,t.jsx)(C,{...e})}],338952)},909205,e=>{var t=e.i(843476),s=e.i(271645);let r=[{key:"true",text:"True"},{key:"false",text:"False"}],n=new Set(["choice","boolean","checkbox"]);function i(e){return"checkbox"===e}function l(e,t){return"boolean"===e?[...r]:(t??[]).filter(e=>e?.text?.trim())}var a=e.i(975157);e.s(["QuestionPreview",0,function({questionId:e,questionInput:r,questionData:o,cta:c}){let[d,u]=(0,s.useState)([]),[m,f]=(0,s.useState)(!1),h=r??o;if(!h)return null;let x=h.question??"",p=h.questionType??"choice",b=l(p,h.answerOptions??[]),g=["blank","match","order","poll"].includes(p),v=!g&&b.length>0,j=v?function(e,t){var s;let r;if(!t)return null;let a="string"==typeof t.questionType?t.questionType:"choice";if(!n.has(a))return null;let o="string"==typeof t.question?t.question.trim():"";if(!o)return null;let c=l(a,t.answerOptions);if(c.length<2)return null;let d=new Set(c.map(e=>e.key)),u="boolean"===(r="string"==typeof(s=t).questionType?s.questionType:"choice")?"boolean"!=typeof s.booleanAnswer?[]:[s.booleanAnswer?"true":"false"]:"checkbox"===r?Array.isArray(s.checkboxAnswers)?s.checkboxAnswers.filter(e=>"string"==typeof e&&e.length>0):[]:"choice"===r&&"string"==typeof s.choiceAnswer&&s.choiceAnswer.length>0?[s.choiceAnswer]:[];return 0!==u.length&&new Set(u).size===u.length&&(i(a)||1===u.length)&&u.every(e=>d.has(e))?{questionId:e,questionType:a,question:o,options:c,correctKeys:u}:null}(e??"",h):null,w=j?.correctKeys??[],y=null!==j,k=y&&i(p),N=k?m:d.length>0,S=y&&N,C=S&&function(e,t){let s=new Set(e),r=new Set(t);if(s.size!==r.size)return!1;for(let e of s)if(!r.has(e))return!1;return!0}(w,d);return(0,t.jsxs)("div",{id:e?`question-${e}`:void 0,className:"rounded-xl border border-border bg-card p-6 shadow-sm scroll-mt-24",children:[(0,t.jsx)("p",{className:"text-overline text-skill-accent mb-2",children:"Knowledge Check"}),(0,t.jsx)("p",{className:(0,a.f)("font-medium text-foreground text-lg",k?"mb-1":"mb-4"),children:x}),k&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Select all that apply."}),v&&(0,t.jsx)("ol",{className:"space-y-2 list-none pl-0","aria-label":"Answer choices",children:b.map((e,s)=>{let r=e.key||String(s),n=d.includes(r),i=w.includes(r),l=S&&i,o=S&&n&&!i;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button","aria-pressed":n,disabled:S,onClick:()=>{k?u(e=>e.includes(r)?e.filter(e=>e!==r):[...e,r]):u([r])},className:(0,a.f)("flex w-full items-start gap-3 rounded-lg border px-4 py-3 text-left text-sm transition-colors","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500","disabled:cursor-default",l?"border-success-500 bg-success-50":o?"border-destructive bg-destructive/5":n?"border-cbt-500 bg-cbt-50":"border-border bg-muted/30 hover:border-cbt-300 hover:bg-cbt-50/60"),children:[(0,t.jsx)("span",{className:(0,a.f)("mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center border text-sm",k?"rounded-sm":"rounded-full",l?"border-success-600 bg-success-600 text-white":o?"border-destructive bg-destructive text-white":n?"border-cbt-500 bg-cbt-500 text-white":"border-muted-foreground/40 text-muted-foreground"),"aria-hidden":"true",children:String.fromCharCode(65+s)}),(0,t.jsx)("span",{className:"text-foreground",children:e.text}),l&&(0,t.jsx)("span",{className:"sr-only",children:" (correct answer)"})]})},r)})}),k&&!S&&(0,t.jsx)("button",{type:"button",onClick:()=>f(!0),disabled:0===d.length,className:(0,a.f)("mt-3 inline-flex items-center rounded-lg border border-cbt-500 bg-cbt-500 px-4 py-2 text-sm font-semibold text-white transition-colors","hover:bg-cbt-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted disabled:text-muted-foreground"),children:"Check answer"}),y&&(0,t.jsx)("p",{role:"status","aria-live":"polite","data-testid":"knowledge-check-result",className:(0,a.f)("mt-3 text-sm font-semibold",!S&&"sr-only",C?"text-success-600":"text-destructive"),children:S?C?"Correct.":"Not quite.":""}),g&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"This interactive assessment is available in the full learning experience."}),null!=c&&(N||!v)&&(0,t.jsx)("div",{className:"mt-4 motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-2 motion-safe:duration-300",children:c})]})}],909205)},675108,e=>{var t=e.i(843476),s=e.i(271645),r=e.i(522016),n=e.i(854453),i=e.i(325164),l=e.i(975157),a=e.i(570590),o=e.i(867332);let c=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:2});function d(e){return c.format(e)}var u=e.i(844097),m=e.i(785058),f=e.i(268863),h=e.i(206917),x=e.i(540874),p=e.i(722888);let b={authenticated:!1,hasSeat:!1,accessType:null,isCompleted:!1,seatEndsAt:null},g=null,v=null;async function j(e){if(g&&g.courseId===e&&Date.now()-g.at<6e4)return g.access;if(v?.courseId===e)return v.promise;let t=fetch(`/api/marketing/viewer-access?courseId=${encodeURIComponent(e)}`,{credentials:"same-origin",headers:{Accept:"applicationhttps://www.cbtnuggets.com/json"}}).then(async t=>{let s=t.ok?await t.json():b;return g={courseId:e,access:s,at:Date.now()},s}).catch(()=>(g={courseId:e,access:b,at:Date.now()},b)).finally(()=>{v=null});return v={courseId:e,promise:t},t}var w=e.i(749803);let y=(0,e.i(456420).f)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);var k=e.i(882303),N=e.i(689765),S=e.i(235381),C=e.i(271567),E=e.i(856423),A=e.i(806537),I=e.i(551757),L=e.i(716327),T=e.i(584026),$=e.i(328623),R=e.i(290684);function P({icon:e,text:s}){return(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(e,{className:"size-4 shrink-0 text-cbt-300 mt-0.5","aria-hidden":!0}),(0,t.jsx)("span",{children:s})]})}function z({icon:e,text:s,href:n}){return(0,t.jsxs)("li",{className:"flex items-start gap-2.5 text-sm",children:[(0,t.jsx)(e,{className:"size-4 shrink-0 text-cbt-500 mt-1.5","aria-hidden":!0}),(0,t.jsx)(r.default,{href:n,className:"rounded-sm py-1 font-medium text-cbt-700 underline underline-offset-4 transition-colors hover:text-cbt-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500",children:s})]})}e.s(["UpsellPanel",0,function({skillSlug:e,adeptLearnHref:c,courseTitle:b,courseHref:g,enrollOptions:v,currentCourseId:B,skillPosition:U,courseCountLabel:F,mobileApp:M}){let q=`enroll-panel-${(0,s.useId)()}`,D=`enroll-course-${(0,s.useId)()}`,[V,H]=(0,s.useState)(!0),[W,Y]=(0,s.useState)(v[0]?.courseId),_=v.find(e=>e.courseId===W)??v[0],O=`${a.Q}?skill=${encodeURIComponent(e)}`,K=function(e){let[t,r]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(!e)return;let t=!1;return j(e).then(e=>{t||r(e)}),()=>{t=!0}},[e]),t}(B),J=K?.hasSeat===!0,Q=(0,x.r)()?.status==="authenticated",G=K?.seatEndsAt?new Date(K.seatEndsAt).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):null;return(0,t.jsxs)("aside",{"aria-label":J?"Your access":"Training plans",className:"space-y-4",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-2xl bg-cbt-950 p-6 text-white",children:[(0,t.jsx)("div",{className:"absolute -top-20 -right-20 size-56 rounded-full bg-linear-to-br from-cbt-500/20 to-cbt-600/5 blur-3xl pointer-events-none","aria-hidden":"true"}),b&&g&&U&&(0,t.jsxs)(r.default,{href:g,className:"focus-on-dark group relative block mb-5 rounded-md",children:[(0,t.jsxs)("p",{className:"text-sm font-medium text-cbt-300 mb-2",children:["Part of"," ",(0,t.jsx)("span",{className:"text-white underline-offset-2 group-hover:underline",children:b})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex-1 h-1.5 rounded-full bg-white/10 overflow-hidden",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-linear-to-r from-cbt-400 to-cbt-500 transition-[width] duration-700 ease-out",style:{width:`${U.total>0?Math.min(U.current/U.total*100,100):0}%`}})}),(0,t.jsxs)("span",{className:"text-sm tabular-nums text-cbt-400 shrink-0",children:[U.current,"/",U.total]})]})]}),(0,t.jsx)(p.l,{resolved:null!==K,pending:(0,t.jsx)(p.F,{label:"Checking your access",bars:4,className:"relative py-2"}),children:J&&K?(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-wider text-cbt-300 mb-3",children:"Your access"}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(T.f,{className:"size-8 shrink-0 text-cbt-400 mt-0.5","aria-hidden":"true"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-display text-2xl leading-tight",children:"enr"===K.accessType?"You own this course":"You're covered"}),(0,t.jsxs)("p",{className:"mt-1 text-sm text-cbt-300",children:["enr"===K.accessType?"Your course enrollment includes this skill.":"Your plan includes this course.",G&&(0,t.jsxs)(t.Fragment,{children:[" Access through ",G,"."]})]})]})]}),K.isCompleted&&(0,t.jsxs)("p",{className:"mt-4 flex items-center gap-2 text-sm text-cbt-200",children:[(0,t.jsx)(I.f,{className:"size-4 shrink-0 text-cbt-400","aria-hidden":"true"}),"You've completed this course."]}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)("a",{href:c,className:"focus-on-dark btn-gradient flex h-11 w-full items-center justify-center rounded-full text-sm font-semibold text-white",children:"Continue in the platform"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative mb-5",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-wider text-cbt-300 mb-3",children:"What your team gets"}),(0,t.jsxs)("ul",{className:"space-y-2 text-sm text-white/90",children:[(0,t.jsx)(P,{icon:A.f,text:"SSO / SAML for enterprise identity"}),(0,t.jsx)(P,{icon:w.f,text:"Per-team completion and skill-coverage reporting"}),(0,t.jsx)(P,{icon:C.f,text:(0,h.l)(`IT Trainerbot for every seat — unlimited answers backed by human IT experts, every one citing its source video, ${(0,R.q)(M).inPlatform}`,{surface:"skill-upsell",tone:"dark"})}),(0,t.jsx)(P,{icon:E.f,text:`${F} expert-led IT courses`}),(0,t.jsx)(P,{icon:y,text:(0,t.jsx)(f.TrackedLink,{href:"/internal-training",location:"internal-training:skill-upsell",className:"focus-on-dark rounded-sm underline decoration-white/50 underline-offset-4 transition-colors hover:decoration-white",children:"Internal training: create courses from your own content"})})]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,t.jsxs)("span",{className:"font-display text-[2.5rem] leading-none tracking-tight",children:["$",(0,a.a)(a.R)]}),(0,t.jsx)("span",{className:"text-sm text-cbt-300",children:"per seat / mo"})]}),(0,t.jsx)("p",{className:"mt-1 text-sm text-cbt-300",children:"Billed annually"}),(0,t.jsx)(r.default,{href:"/pricing",className:"focus-on-dark mt-1 inline-block rounded-sm text-sm text-cbt-400 underline hover:text-cbt-300",children:"See team plans"})]}),(0,t.jsxs)("div",{className:"relative mt-5 space-y-3",children:[(0,t.jsx)(n.CtaLink,{href:O,className:"focus-on-dark btn-gradient flex h-11 w-full items-center justify-center rounded-full text-sm font-semibold text-white",children:"Book a Demo"}),(0,t.jsx)(r.default,{href:"/pricing",className:"focus-on-dark flex h-11 w-full items-center justify-center rounded-full border border-white/20 text-sm font-semibold text-white hover:bg-white/10 transition-colors",children:"Explore Team Plans"}),(0,t.jsxs)("p",{className:"text-center text-sm text-cbt-400 leading-relaxed",children:["Preparing for a cloud migration, a security audit, or a team ramp? See the fit in a ",a.P,"-minute demo."]})]}),(0,t.jsxs)("div",{className:"relative mt-5 border-t border-white/10 pt-4 text-center",children:[!Q&&(0,t.jsxs)("p",{className:"text-sm text-cbt-400",children:["Learning on your own?"," ",(0,t.jsxs)(r.default,{href:"/pricing",className:"focus-on-dark rounded-sm font-semibold text-white underline underline-offset-2 hover:text-cbt-300",children:["Browse individual plans",(0,t.jsxs)("span",{className:"sr-only",children:[" ($",(0,a.a)(a.f),"/month, billed annually)"]})," ","→"]})]}),(0,t.jsx)(m.AdeptAccountCta,{surface:"skill-upsell",tone:"dark",learnHref:c,hideWhenAnonymous:!0,continuePrompt:"You're signed in.",continueLabel:"Watch this skill in Adept"})]})]})})]})}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"flex items-center justify-center py-3",children:(0,t.jsx)(i.default,{src:"/assetshttps://www.cbtnuggets.com/images/g2/leader-badge.png",alt:"G2 Leader badge for CBT Nuggets",width:240,height:120,className:"h-auto w-auto max-h-24"})})}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"rounded-xl border border-border bg-card",children:(0,t.jsxs)("details",{className:"group/details",open:!0,children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer select-none items-center justify-between px-5 py-3.5 list-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)("span",{className:"text-overline text-muted-foreground",children:"More platform capabilities"}),(0,t.jsx)(L.f,{className:"size-4 text-muted-foreground transition-transform duration-200 group-open/details:rotate-180"})]}),(0,t.jsxs)("ul",{className:"px-5 pb-3 space-y-0.5",children:[(0,t.jsx)(z,{icon:k.f,text:"Team assignments and playlist enrollment",href:o.A}),(0,t.jsx)(z,{icon:N.f,text:"Hands-on virtual labs for real-world readiness",href:a.j["Virtual labs"]}),(0,t.jsx)(z,{icon:S.f,text:"Blueprint-weighted certification practice exams",href:a.j["Practice exams"]}),(0,t.jsx)(z,{icon:$.f,text:"Live insights on team progress and skill gaps",href:o.J}),(0,t.jsx)("li",{className:"pt-1",children:(0,t.jsx)(r.default,{href:"/platform",className:"inline-block rounded-sm py-1 text-sm text-cbt-500 underline hover:text-cbt-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500",children:"See platform features →"})})]})]})})}),!J&&_&&(0,t.jsx)(p.l,{resolved:null!==K,pending:null,children:(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-muted/30",children:[(0,t.jsxs)("button",{onClick:()=>H(e=>!e),className:"flex w-full cursor-pointer select-none items-center justify-between px-5 py-3.5 text-left focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500","aria-expanded":V,"aria-controls":q,children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Just need this course?"}),(0,t.jsx)(L.f,{className:(0,l.f)("size-4 text-muted-foreground transition-transform duration-200",V&&"rotate-180"),"aria-hidden":"true"})]}),V&&(0,t.jsxs)("div",{id:q,className:"px-5 pb-5 space-y-3",children:[v.length>1?(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:D,className:"block text-sm font-medium text-muted-foreground",children:["This skill is taught in ",v.length," courses — choose which to unlock:"]}),(0,t.jsx)("select",{id:D,value:_.courseId,onChange:e=>Y(e.target.value),className:"mt-2 h-10 w-full rounded-md border border-border bg-background px-3 text-sm text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500",children:v.map(e=>(0,t.jsxs)("option",{value:e.courseId,children:[e.title," — ",d(e.price)]},e.courseId))})]}):(0,t.jsx)("p",{className:"text-sm font-semibold text-foreground",children:_.title}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Course Unlock — ",d(_.price),", one year of access",U&&_.courseId===B&&(0,t.jsxs)(t.Fragment,{children:[" · ",U.total," skills"]})]}),(0,t.jsx)(u.StartCheckoutForm,{intent:{plan:"single-course",courseId:_.courseId},courseSlug:_.slug,ariaLabel:`Unlock This Course — ${_.title}, ${d(_.price)} for 1 year`,className:"flex h-10 w-full items-center justify-center rounded-full border border-border text-sm font-semibold text-foreground hover:bg-muted transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500",children:"Unlock This Course"}),(0,t.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:["Or get"," ",(0,t.jsxs)(r.default,{href:"/pricing",className:"rounded-sm font-semibold text-foreground underline underline-offset-2 transition-colors hover:text-cbt-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cbt-500",children:["every course for $",(0,a.a)(a.f),"/month, billed annually"]})]})]})]})})})]})}],675108)},950182,e=>{var t=e.i(843476),s=e.i(271645);e.s(["ServerOnlyHtml",0,function({token:e,as:r,lazySrc:n,lazyTrigger:i="mount",...l}){let a=(0,s.useRef)(null),[o,c]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let e=a.current;if(!n||!e||e.firstChild)return;let t=!1,s=()=>{fetch(n,{headers:{Accept:"text/html"}}).then(e=>e.ok?e.text():"").then(e=>{!t&&e&&c(e)}).catch(()=>{})};if("details-open"===i){let r=e.closest("details");if(r&&!r.open){let e=()=>{r.open&&s()};return r.addEventListener("toggle",e,{once:!0}),()=>{t=!0,r.removeEventListener("toggle",e)}}}return s(),()=>{t=!0}},[n,i]),(0,t.jsx)(r??"div",{...l,ref:a,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o??null??""}})}])}])})();