(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9453,6779],{79676:function(e,t){"use strict";t.Z="/assets/_next/static/53cea6de0356be3a72a836647840570d.png"},54815:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getUserPlaylists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"userPlaylists"},name:{kind:"Name",value:"getUserPlaylists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userNrn"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:96}};t.loc.source={body:"query getUserPlaylists($userId:String){userPlaylists:getUserPlaylists(userNrn:$userId){name id}}",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n0;){var c=a;a=new Set,c.forEach(function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach(function(e){a.add(e)}))})}return o.forEach(function(t){var n=i(e,t);n&&r.definitions.push(n)}),r}(t,"getUserPlaylists")},6270:function(e,t,n){"use strict";n.d(t,{$J:function(){return i},EZ:function(){return r},KO:function(){return s},le:function(){return o},uF:function(){return a}});var i="assetshttps://www.cbtnuggets.com/images/all_feature@2x.png",r="assetshttps://www.cbtnuggets.com/images/business_page_@1x.png",s="/assetshttps://www.cbtnuggets.com/imageshttps://www.cbtnuggets.com/images/corporate_logos@2x.png",o="/assetshttps://www.cbtnuggets.com/imageshttps://www.cbtnuggets.com/images/universal_sprite_sheet.png",a="/assetshttps://www.cbtnuggets.com/imageshttps://www.cbtnuggets.com/images/training_sprite.png"},56779:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(67294),r=i.createContext({});r.displayName="ServerContextContext",n(64687);var s=n(85893),o=n(87379),a=o.ZP.section.withConfig({displayName:"ErrorMain",componentId:"sc-1cyirqj-0"})(["display:flex;flex-direction:column;justify-content:center;background-color:white;max-width:50rem;margin:0 auto;padding:1rem;padding-top:8rem;text-align:center;height:50vh;min-height:50rem;p{text-align:center;font-size:",";font-weight:400;color:",";&.error-code{margin-top:30px;}}a{text-decoration:none;padding-bottom:1px;color:",";&:hover{text-decoration:underline;}}"],function(e){return e.theme.standardFont},function(e){return e.theme.secondary},function(e){return e.theme.blue}),c=o.ZP.div.withConfig({displayName:"ErrorSvgContainer",componentId:"sc-1cyirqj-1"})(["margin:auto;margin:0;"]),l=o.ZP.h1.withConfig({displayName:"Title",componentId:"sc-1cyirqj-2"})(["color:#000;text-align:center;font-family:",";font-size:4.8rem;margin:1rem 0 2rem;line-height:5rem;"],function(e){return e.theme.fontFamilyCursive}),d={error404:{image:"/assets/client/404-error.svg",title:"Oh, dang it!",message:'That page was moved or doesn\'t exist anymore. Head to our homepage or chat with Learner Support for help.'},error500:{image:"/assets/client/500-error.svg",title:"Well, that's not good",message:'Something went wrong with one of our servers. Try reloading the page or come back again later. If you need help right away, contact Learner Support.'}},u=function(e,t){return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(c,{children:(0,s.jsx)("img",{src:e.image,alt:""})}),(0,s.jsx)(l,{children:e.title}),(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:e.message}}),(0,s.jsx)("p",{children:(0,s.jsxs)("strong",{children:["Error Code: ",t]})})]})},h=function(e){var t=e.code,n=i.useContext(r);return t&&n&&n.response&&(n.response.statusCode=t),(0,s.jsx)(a,{children:t&&t>399&&t<500?u(d.error404,t):u(d.error500,t)})}},12549:function(e,t,n){"use strict";var i=n(59499),r=n(4730);n(67294);var s=n(25675),o=n.n(s),a=n(85893),c=["src","alt","fill"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t0&&void 0!==a[0]&&a[0],i=a.length>1&&void 0!==a[1]&&a[1],!n.isFreePlayer){e.next=6;break}n.getFreeManifest(),e.next=15;break;case 6:if(!((void 0===n.activePlayer.playerId||null===n.activePlayer.playerId)&&1===n.players.length)){e.next=10;break}return e.next=10,n.setActivePlayer(n.players[0].playerId);case 10:return s=(r=n.activePlayer).videoId,o=r.context,t&&n.setManifestFetchTimedOut(!1),null!==n.licenseRetryTimeout&&n.clearLicenseRetryTimeout(),n.setLicenseStatus("CREATE","LOADING"),e.abrupt("return",(0,g.od)({method:"POST",url:"/api/license/v2/create",data:{context:o,video_id:s,manifest:t}}).then(function(e){var r=e.data,s=r.license,a=r.media,c=r.start_position,l=r.video_nrn;n.setLicense(s),n.setLicenseStatus("CREATE","SUCCESS"),n.setLicenseStatus("HEARTBEAT","NOT_STARTED"),t&&(n.setManifest({media:a,start_position:c,context:o,video_nrn:l}),n.start()),i&&n.play(),n.missedHeartbeats.length&&n.sendMissedHeartbeats(),n.activePlayer.isTrackingProgress||n.setTrackingProgress(!0)}).catch(function(e){n.setLicenseStatus("CREATE","FAILURE");var i=(0,u.Z)(e,"response.status"),r="PLAYING"===n.activePlayer.playerState;switch(i){case 403:r&&(n.setTrackingProgress(!1),n.startLicenseRetryTimeout());break;case 409:n.takeoverLicense(t)}n.logErrors(e,"create_license",{video:n.activePlayer.videoNrn,statusCode:i})}));case 15:case"end":return e.stop()}},e)}))),(0,c.Z)(this,"start",function(){n.sendEvent("start"),n.play(!0)}),(0,c.Z)(this,"play",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.activePlayer.licenseRevoked&&n.setLicenseRevoked(!1);var t=!n.isFreePlayer&&(0,h.Z)(n.license);!e&&t&&(n.licenseRetryWaitTimeIndex=0,n.isFreePlayer?n.getFreeManifest():n.createLicense()),n.setPlayerState("PLAYING"),n.activePlayer.autoStartFailed=!1,n.sendEvent("play")}),(0,c.Z)(this,"pause",function(){n.setPlayerState("PAUSED"),n.sendEvent("pause")}),(0,c.Z)(this,"stop",function(){n.setPlayerState("NOT_STARTED"),n.setHlsUrl(""),n.sendEvent("stop")}),(0,c.Z)(this,"handlePlayerError",function(e,t){n.logError(e,t),"hlsError"===e&&t&&"manifestLoadTimeOut"===t.details&&(n.stop(),n.setManifestFetchTimedOut(!0)),"NotAllowedError"===e.name&&n.setAutoStartFailed()}),(0,c.Z)(this,"toggleShowCaptions",function(){n.localStoragePreferences.showCaptions=!n.localStoragePreferences.showCaptions,n.sendEvent("toggleShowCaptions"),n.sendGTMEvent("showCaptions",n.localStoragePreferences.showCaptions),(0,y.l$)("showCaptions",n.localStoragePreferences.showCaptions),n.activePlayer.isPopout&&(window.showCaptions=n.localStoragePreferences.showCaptions)}),(0,c.Z)(this,"setCaptions",(e=(0,s.Z)(d().mark(function e(t){var i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,h.Z)(t)){e.next=4;break}return n.activePlayer.captions=[],n.sendEvent("setCaptions"),e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch(t);case 7:return i=e.sent,e.next=10,i.json();case 10:n.activePlayer.captions=e.sent,n.sendEvent("setCaptions"),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),console.log("setCaptions error:",e.t0);case 17:case"end":return e.stop()}},e,null,[[4,14]])})),function(t){return e.apply(this,arguments)})),(0,c.Z)(this,"toggleQuizQuestions",function(){n.localStoragePreferences.showQuizQuestions=!n.localStoragePreferences.showQuizQuestions,n.sendEvent("toggleQuizQuestions"),(0,y.l$)("showQuizQuestions",n.localStoragePreferences.showQuizQuestions),n.sendGTMEvent("showQuizQuestions",n.localStoragePreferences.showQuizQuestions),n.activePlayer.isPopout&&(window.showQuizQuestions=n.localStoragePreferences.showQuizQuestions)}),(0,c.Z)(this,"toggleAutoPlay",function(){n.localStoragePreferences.autoPlayEnabled=!n.localStoragePreferences.autoPlayEnabled,n.sendEvent("toggleAutoPlay"),(0,y.l$)("autoPlayEnabled",n.localStoragePreferences.autoPlayEnabled),n.sendGTMEvent("autoPlayEnabled",n.localStoragePreferences.autoPlayEnabled),n.activePlayer.isPopout&&(window.autoPlayEnabled=n.localStoragePreferences.autoPlayEnabled)}),(0,c.Z)(this,"toggleDebugLogs",function(){n.localStoragePreferences.showDebugLogs=!n.localStoragePreferences.showDebugLogs,n.sendEvent("toggleDebugLogs"),(0,y.l$)("showDebugLogs",n.localStoragePreferences.showDebugLogs),n.sendGTMEvent("showDebugLogs",n.localStoragePreferences.showDebugLogs),n.activePlayer.isPopout&&(window.showDebugLogs=n.localStoragePreferences.showDebugLogs)}),(0,c.Z)(this,"setVolume",function(e){n.localStoragePreferences.volume=e,n.sendEvent("volumeChange"),(0,y.l$)("volume",e),n.activePlayer.isPopout&&(window.volume=e)}),(0,c.Z)(this,"answerQuizQuestion",function(){"PLAYING"===n.activePlayer.playerState&&n.pause(),n.activePlayer.isFullScreen&&n.setFullScreen(!1);var e={questionIndex:n.activePlayer.currentQuizQuestion.order-1,questionId:n.activePlayer.currentQuizQuestion.question_id},t=new CustomEvent("quiz-answer-event",{detail:e});window.dispatchEvent(t)}),(0,c.Z)(this,"seekTo",function(e){n.activePlayer.casting&&n.seekChromecastMedia(e),n.activePlayer.progress.playedSeconds=e,n.lastSeekedPosition=Math.floor(e),n.sendEvent("seekTo")}),(0,c.Z)(this,"toggleFullScreen",function(){n.activePlayer.isFullScreen=!n.activePlayer.isFullScreen,n.sendEvent("toggleFullScreen"),n.sendGTMEvent("isFullScreen",n.activePlayer.isFullScreen)}),(0,c.Z)(this,"setFullScreen",function(e){n.activePlayer.isFullScreen=e,n.sendEvent("toggleFullScreen")}),r)return r;this.eventBus=new v,this.players=[],this.activePlayer={progress:{}},this.missedHeartbeats=[],this.lastSeekedPosition=0,this.lastHeartbeatType=null,this.lastHeartbeatPosition=null,this.arrivalHeartbeatTimeout=null,this.videoSecondsHistory=[],this.license=null,this.licenseStatuses=x,this.licenseRetryTimeout=null,this.licenseRetryWaitTimesMs=[5e3,1e4,15e3,3e4],this.licenseRetryWaitTimeIndex=0,this.userData=w,this.localStoragePreferences=P,this.isFreePlayer=!1,this.adeptCourseSlug="",r=this}return(0,a.Z)(t,[{key:"setApolloClient",value:function(e){this.client=e}},{key:"registerPlayer",value:function(e){this.players.push(e)}},{key:"setIsFreePlayer",value:function(e){this.isFreePlayer=e}},{key:"setAdeptCourseSlug",value:function(e){this.adeptCourseSlug=e}},{key:"setActivePlayer",value:function(e){var t,n=this,i=void 0===this.activePlayer.playerId||null===this.activePlayer.playerId,r=this.activePlayer.playerId!==e;return new Promise((t=(0,s.Z)(d().mark(function t(s,o){return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(!i&&r)){t.next=4;break}return t.next=4,n.shutdownActivePlayer();case 4:r&&(n.activePlayer=n.getPlayer(e)),s(n.activePlayer),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),o(t.t0);case 11:case"end":return t.stop()}},t,null,[[0,8]])})),function(e,n){return t.apply(this,arguments)}))}},{key:"getActivePlayer",value:function(){return this.activePlayer}},{key:"getPlayer",value:function(e){return this.players.find(function(t){return t.playerId===e})}},{key:"updatePlayer",value:function(e,t){var n=this.getPlayer(e),i=this.players.findIndex(function(t){return t.playerId===e}),r=k(k({},n),t);this.players[i]=r,e===this.activePlayer.playerId&&(this.activePlayer=r),this.sendEvent("updatePlayer",e)}},{key:"getLicense",value:function(){return this.license}},{key:"shutdownActivePlayer",value:function(){return this.resetActivePlayer(),this.resetLicenseStatuses(),!(0,h.Z)(this.license)&&this.releaseLicense()}},{key:"resetActivePlayer",value:function(){"NOT_STARTED"!==this.activePlayer.playerState&&this.stop(),this.setHlsUrl(""),this.resetProgress(),this.setLicenseRevoked(!1),this.clearMissedHeartbeats()}},{key:"resetLicenseStatuses",value:function(){this.licenseStatuses=x}},{key:"putPlayerOnWindow",value:function(e){var t=this.isFreePlayer?this.getFreeManifest:this.createLicense;window.cbtplayer={state:e.playerState,start:this.start,play:this.play,pause:this.pause,stop:this.stop,seekTo:this.seekTo,createLicense:t}}},{key:"setPlayerState",value:function(e){this.activePlayer.playerState=e,this.setWindowPlayerState(e)}},{key:"setGroupId",value:function(e){this.userData.groupId=e}},{key:"setMemberId",value:function(e){this.userData.memberId=e}},{key:"startLicenseRetryTimeout",value:function(e){var t=this,i=this.licenseRetryWaitTimesMs,r=this.licenseRetryWaitTimeIndex,s=e||i[r];this.licenseRetryTimeout=n.g.setTimeout(function(){t.isFreePlayer?t.getFreeManifest():t.createLicense()},s)}},{key:"clearLicenseRetryTimeout",value:function(){clearTimeout(this.licenseRetryTimeout),this.licenseRetryTimeout=null;var e=this.licenseRetryWaitTimesMs;this.licenseRetryWaitTimeIndex15&&this.videoSecondsHistory.length>1){for(var n=this.videoSecondsHistory[0],i=this.videoSecondsHistory[this.videoSecondsHistory.length-1],r=n;r=15&&this.resetSecondsHistory();this.videoSecondsHistory.push(e)}}},{key:"sendOneOffHeartbeat",value:function(e){var t=this;clearTimeout(this.arrivalHeartbeatTimeout);var i=Math.floor((0,u.Z)(this.activePlayer,"progress.playedSeconds",0));if(this.setLocalStorageProgress(i),i<1&&(i=1),!this.isFreePlayer){if("arrival"===e&&(0,h.Z)(this.missedHeartbeats))this.arrivalHeartbeatTimeout=n.g.setTimeout(function(){return t.sendHeartbeat(i,e)},1e3);else if("departure"!==e)return this.sendHeartbeat(i,e);else if("departure"!==this.lastHeartbeatType)return this.sendHeartbeat(i,e)}}},{key:"queueMissedHeartbeat",value:function(e){if(!this.isFreePlayer&&!this.missedHeartbeats.map(function(e){return e.position}).includes(e)){var t={position:e,videoNrn:this.activePlayer.videoNrn,context:this.activePlayer.context};this.missedHeartbeats.push(t)}}},{key:"sendMissedHeartbeats",value:(e=(0,s.Z)(d().mark(function e(){var t,n,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isFreePlayer){e.next=11;break}t=this.missedHeartbeats.length,n=0;case 3:if(!(n0&&void 0!==arguments[0]&&arguments[0];if(!this.isFreePlayer){var n=this.activePlayer,i=n.videoNrn,r=n.progress.playedSeconds,s=void 0===r?0:r,o=i.replace("nrn:video:",""),a=this.license;return this.setLicenseStatus("RELEASE","LOADING"),this.setLicenseStatus("CREATE","NOT_STARTED"),(0,g.od)({method:"POST",url:"/api/license/v2/release",data:{video_id:o,license:a,position:Math.ceil(t?s+1:s)}}).then(function(){e.setLicenseStatus("RELEASE","SUCCESS"),e.setLicenseStatus("CREATE","NOT_STARTED"),e.setLicense("")}).catch(function(t){e.setLicenseStatus("RELEASE","FAILURE"),e.setLicenseStatus("CREATE","NOT_STARTED"),e.logErrors(t,"release_license",{video:e.activePlayer.videoNrn})})}}},{key:"releaseLicenseOnUnload",value:function(){if(!this.isFreePlayer){var e,t=this.activePlayer,n=t.videoNrn,i=t.progress.playedSeconds;n&&(e=n.replace("nrn:video:",""));var r=this.license;try{(0,g.od)({method:"POST",url:"/api/license/v2/release",data:{video_id:e,license:r,position:Math.ceil(i)}})}catch(e){this.setLicenseStatus("RELEASE","FAILURE"),this.setLicenseStatus("CREATE","NOT_STARTED"),this.logErrors(e,"release_license",{video:n})}this.setLicense("")}}},{key:"takeoverLicense",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isFreePlayer){var n=this.userData,i=n.memberId,r=n.groupId;return this.setLicenseStatus("TAKEOVER","LOADING"),(0,g.od)({method:"POST",url:"/api/license/v2/takeover",data:{license:"".concat(r,".").concat(i)}}).then(function(){e.setLicenseStatus("TAKEOVER","SUCCESS"),e.isFreePlayer?e.getFreeManifest():e.createLicense(t,!0)}).catch(function(n){switch(e.setLicenseStatus("TAKEOVER","FAILURE"),(0,u.Z)(n,"response.status")){case 404:e.isFreePlayer?e.getFreeManifest():e.createLicense(t,!0);break;case 429:var i="FAILED"===e.licenseStatuses.licenseCreateStatus;e.logError("429",{source:"License Service",details:"License takeover rate limited",licenseCreateFailed:i}),setTimeout(function(){i&&(e.isFreePlayer?e.getFreeManifest():e.createLicense(t,!0))},2e3)}})}}},{key:"initSeekPosition",value:function(e){this.lastSeekedPosition=e}},{key:"setLicenseStatus",value:function(e,t){if(!this.isFreePlayer||this.isFreePlayer&&("CREATE"===e||"RELEASE"===e)){switch(e){case"CREATE":this.licenseStatuses.licenseCreateStatus=t;break;case"TAKEOVER":this.licenseStatuses.licenseTakeoverStatus=t;break;case"RELEASE":this.licenseStatuses.licenseReleaseStatus=t;break;case"HEARTBEAT":this.licenseStatuses.licenseHeartbeatStatus=t}this.sendEvent("setLicenseStatus")}}},{key:"setTrackingProgress",value:function(e){this.activePlayer.isTrackingProgress=e,this.sendEvent("setTrackingProgress")}},{key:"setLicenseRevoked",value:function(e){this.activePlayer.licenseRevoked=e,this.sendEvent("setLicenseRevoked")}},{key:"setManifestFetchTimedOut",value:function(e){this.activePlayer.manifestFetchTimedOut=e,this.sendEvent("setManifestFetchTimedOut")}},{key:"dismissBanner",value:function(e){this.activePlayer.dismissedBanners.push(e),this.sendEvent("dismissBanner")}},{key:"setHasPopout",value:function(e){this.activePlayer.hasPopout=e,this.sendEvent("hasPopout")}},{key:"setQuizQuestions",value:function(e){this.activePlayer.quizQuestions=e,this.sendEvent("setQuizQuestions")}},{key:"setHlsUrl",value:function(e){this.activePlayer.hlsUrl=e,this.sendEvent("setHlsUrl")}},{key:"setLicense",value:function(e){e!==this.license&&(this.license=e,this.sendEvent("setLicense"))}},{key:"setManifest",value:function(e){this.activePlayer.manifest=e,this.sendEvent("setManifest");var t=(0,u.Z)(e,"media.x10.hlscf",""),n=(0,u.Z)(e,"media.x10.hls5",""),i=(0,u.Z)(e,"media.x10.caption.json",""),r="";r=(0,h.Z)(t)?n:t;var s=e.context,o=e.video_nrn,a=e.start_position;this.setHlsUrl(r),this.setCaptions(i),this.setVideoNrn(void 0===o?"":o),this.setStartPosition(void 0===a?0:a),this.setContext(void 0===s?"":s)}},{key:"setContext",value:function(e){this.activePlayer.context=e,this.sendEvent("setContext")}},{key:"setVideoNrn",value:function(e){this.activePlayer.videoNrn=e,this.sendEvent("setVideoNrn")}},{key:"setVideoId",value:function(e){this.activePlayer.videoId=e,this.sendEvent("setVideoId")}},{key:"setStartPosition",value:function(e){this.activePlayer.startPosition=e,this.sendEvent("setStartPosition")}},{key:"setAutoStartFailed",value:function(){this.pause(),this.activePlayer.autoStartFailed=!0,this.sendEvent("setAutoStartFailed")}},{key:"logError",value:function(e,t){var n=this.activePlayer.hlsUrl,i="unknown";n.includes("akamai")?i="ak":n.match(/\/videos.*nuggets.com\//g)&&(i="cf"),"hlsError"===e?this.logErrors("hls_error: ".concat(t.type),"hls",{hlsDetails:t.details,hlsReason:t.reason,hlsType:t.type,hlsFatal:t.fatal,hlsErrorLevel:t.level,hlsBufferLen:t.buffer,videoNrn:this.activePlayer.videoNrn,memberId:this.userData.memberId,hlsUrl:n,host:i}):this.logErrors(e,"player",t)}},{key:"logErrors",value:function(e,t,n){"string"!=typeof e&&(e=e.toString()),n||(n={}),n.errorType=t,n.errorId=(0,m.Z)(),(0,p.jl)().error(e,n)}},{key:"sendGTMEvent",value:function(e,t){var n;n="speedChange"===e||"qualityChange"===e?"".concat(e).concat(t):"".concat(e).concat(t?"On":"Off"),this.activePlayer.sendClickEvent(n)}},{key:"sendTimeToPlayToGTM",value:function(e){var t=e-this.activePlayer.playerMountedAtTime;window.dataLayer&&window.dataLayer.push({event:"learner.course.timing.timeToPlay",label:"Video Player",value:t})}},{key:"resetActivePlayerMountedAtTime",value:function(){this.activePlayer.playerMountedAtTime=Date.now()}},{key:"rewind",value:function(){var e=this.activePlayer.progress.playedSeconds-10;this.seekTo(Math.max(0,e))}},{key:"forward",value:function(){var e=this.activePlayer.progress.playedSeconds+10;this.seekTo(Math.min(e,this.activePlayer.durationSeconds-1))}},{key:"setSpeed",value:function(e){this.localStoragePreferences.speed=e,this.sendEvent("speedChange"),(0,y.l$)("speed",e),this.sendGTMEvent("speedChange",e),this.activePlayer.isPopout&&(window.speed=e)}},{key:"setQuality",value:function(e){this.localStoragePreferences.quality=e,this.sendEvent("qualityChange"),(0,y.l$)("quality",e),this.sendGTMEvent("qualityChange",e),this.activePlayer.isPopout&&(window.quality=e)}},{key:"setMute",value:function(e){this.localStoragePreferences.muted=e,this.sendEvent("volumeChange")}},{key:"setProgress",value:function(e){var t=Math.floor((0,u.Z)(this.activePlayer,"progress.playedSeconds",0)),n=Math.floor(e.playedSeconds);this.activePlayer.progress=e,this.sendEvent("progress"),t!==n&&(this.sendNormalHeartbeat(),this.handleQuizEvent(n),this.setLocalStorageProgress(n))}},{key:"setLocalStorageProgress",value:function(e){var t=this.activePlayer,n=t.videoNrn,i=t.durationSeconds,r=null==n?void 0:n.replace("nrn:video:",""),s={position:Math.floor(i)-e<=5?0:e,updatedAt:Date.now()},o=k(k({},(0,y.Oz)("progress")),{},(0,c.Z)({},r,s));(0,y.l$)("progress",o)}},{key:"handleQuizEvent",value:function(e){var t=this.activePlayer.quizQuestions;Object.keys(t).map(function(e){return parseInt(e)}).includes(e)&&(this.activePlayer.currentQuizQuestion=t[e])}},{key:"resetCurrentQuizQuestion",value:function(){this.activePlayer.currentQuizQuestion={}}},{key:"resetProgress",value:function(){this.activePlayer.progress={playedSeconds:0,played:0,loadedSeconds:0,loaded:0},this.sendEvent("progress")}},{key:"setDuration",value:function(e){this.activePlayer.durationSeconds=e,this.sendEvent("duration")}},{key:"seekToPercentage",value:function(e){var t=this.activePlayer.durationSeconds*e;this.activePlayer.progress.playedSeconds=t,this.lastSeekedPosition=Math.floor(t),this.sendEvent("seekTo")}},{key:"startCasting",value:function(e){this.pause(),this.setFullScreen(!1),this.activePlayer.casting=!0,this.activePlayer.castingDeviceName=e,this.sendEvent("startCasting"),this.sendGTMEvent("startCasting",this.activePlayer.casting),this.play()}},{key:"stopCasting",value:function(){this.activePlayer.casting=!1,this.activePlayer.chromecastMedia=null,this.activePlayer.castingDeviceName="unknown device",this.sendEvent("stopCasting")}},{key:"seekChromecastMedia",value:function(e){var t=new window.chrome.cast.media.SeekRequest;t.currentTime=e;var n=(0,u.Z)(window,"session.media[0]",{}),i=n.sessionId,r=n.mediaSessionId;new window.chrome.cast.media.Media(void 0===i?null:i,void 0===r?null:r).seek(t,function(){console.log("Chromecast seek success")},function(e){console.error("Chromecast seek error:",e)})}},{key:"subscribeToEvent",value:function(e,t){this.eventBus.addListener(e,t)}},{key:"unsubscribeToEvent",value:function(e,t){this.eventBus.removeListener(e,t)}},{key:"getState",value:function(e){return k(k(k(k({},e?this.getPlayer(e):this.activePlayer),this.licenseStatuses),this.localStoragePreferences),{},{license:this.license})}},{key:"sendEvent",value:function(e,t){var n=this.getState(t),i=this.activePlayer.casting?"cast.":"",r="".concat(n.playerId,".playerEvent.").concat(i).concat(e);this.eventBus.sendEvent(r,n)}}],[{key:"getInstance",value:function(){return r}},{key:"getEventBus",value:function(){return r.eventBus}}]),t}()},27534:function(e,t,n){"use strict";n.d(t,{Oz:function(){return i},hp:function(){return s},l$:function(){return r}});var i=function(e){if("undefined"!=typeof localStorage){var t=localStorage.getItem("cbt_player_preferences");return("string"==typeof t?JSON.parse(t):{})[e]}return{}},r=function(e,t){if("undefined"!=typeof localStorage){var n=localStorage.getItem("cbt_player_preferences"),i="string"==typeof n?JSON.parse(n):{};i[e]=t,localStorage.setItem("cbt_player_preferences",JSON.stringify(i))}},s=function(){var e=i("volume"),t=i("autoPlayEnabled");return{showCaptions:i("showCaptions")||!1,showQuizQuestions:i("showQuizQuestions")||!0,volume:void 0!==e?e:.5,muted:void 0!==e&&0===e,speed:i("speed")||1,quality:i("quality")||"auto",autoPlayEnabled:void 0===t||t,showDebugLogs:i("showDebugLogs")||!1}}},40157:function(e,t,n){"use strict";n.d(t,{Rc:function(){return o},pU:function(){return a}}),n(67294);var i=n(15584),r=n(15103),s=n(85893),o=function(e){var t=e.seconds;if("number"!=typeof t)return null;var n=(0,i.CY)(t);return(0,s.jsx)(r.t7,{children:n})},a=function(e){var t=e.totals,n=e.courseType;if(!t)return null;var i=t.skills&&t.skills>0?(0,s.jsx)(r.t7,{children:"".concat(t.skills," skill").concat(t.skills>1?"s":"")}):null,a=t.virtualLabs&&t.virtualLabs>0?(0,s.jsx)(r.t7,{children:"".concat(t.virtualLabs," Virtual lab").concat(t.virtualLabs>1?"s":"")}):null,c=t.kaplanPracticeExams&&t.kaplanPracticeExams>0?(0,s.jsx)(r.t7,{children:"".concat(t.kaplanPracticeExams," Practice exam").concat(t.kaplanPracticeExams>1?"s":"")}):null,l=t.videoSeconds?(0,s.jsx)(o,{seconds:t.videoSeconds}):null;return(0,s.jsxs)(r.oR,{children:[(0,s.jsx)(r.t7,{isPill:!0,children:n}),i,l,a,c]})}},15103:function(e,t,n){"use strict";n.d(t,{$U:function(){return l},D7:function(){return h},OP:function(){return c},Vl:function(){return m},cQ:function(){return u},g:function(){return y},hx:function(){return g},oR:function(){return p},pf:function(){return d},t7:function(){return f},tm:function(){return v},uC:function(){return a}});var i=n(87379),r=n(10637),s=n(21161),o=n(87984),a=i.ZP.section.withConfig({displayName:"CatalogContainer",componentId:"sc-chx1g2-0"})([""]),c=i.ZP.header.withConfig({displayName:"LayoutHero",componentId:"sc-chx1g2-1"})(["display:flex;"]);i.ZP.article.withConfig({displayName:"LayoutTopTotals",componentId:"sc-chx1g2-2"})(["margin:2rem auto;max-width:",";"],function(e){return e.theme.desktop1200});var l=i.ZP.section.withConfig({displayName:"LayoutCourses",componentId:"sc-chx1g2-3"})(["max-width:",";margin:0 auto;margin-bottom:2rem;padding:1rem 4rem 0;"],function(e){return e.theme.desktop990}),d=i.ZP.div.withConfig({displayName:"CoursesContainer",componentId:"sc-chx1g2-4"})(["border-top:1px solid ",";display:flex;flex-direction:column;"],function(e){return e.theme.greyBorder}),u=i.ZP.ul.withConfig({displayName:"CourseList",componentId:"sc-chx1g2-5"})(["border-bottom:1px solid ",";display:flex;flex-direction:column;margin:0;padding:0;"],function(e){return e.theme.greyBorder}),h=i.ZP.li.withConfig({displayName:"CourseListItem",componentId:"sc-chx1g2-6"})(["border-top:1px solid ",";padding:2rem 0;list-style:none;margin:0;display:flex;align-items:flex-start;","{margin-right:1.4rem;}"],function(e){return e.theme.greyBorder},o.y),m=i.ZP.div.withConfig({displayName:"CourseTitle",componentId:"sc-chx1g2-7"})(["display:flex;flex-wrap:wrap;align-items:center;line-height:3.6rem;min-height:3.6rem;"]),g=(0,i.ZP)(r.l).withConfig({displayName:"CourseLink",componentId:"sc-chx1g2-8"})(["font-size:2.2rem;font-weight:600;line-height:2.4rem;display:inline-block;margin-right:1rem;"]),p=i.ZP.section.withConfig({displayName:"CourseStatContainer",componentId:"sc-chx1g2-9"})(["display:flex;align-items:center;flex-wrap:wrap;"]),f=i.ZP.span.withConfig({displayName:"CourseStat",componentId:"sc-chx1g2-10"})(["color:",";white-space:nowrap;font-size:",";text-transform:",";padding-top:",";padding-right:2rem;padding-bottom:0.4rem;"],function(e){return e.theme.secondary},function(e){return e.isPill?e.theme.smallFont:e.theme.standardFont},function(e){return e.isPill?"uppercase":"inherit"},function(e){return e.isPill?"0.2rem":0});i.ZP.section.withConfig({displayName:"CategoryNavigation",componentId:"sc-chx1g2-11"})(["max-width:",";position:relative;margin:0 auto;margin-bottom:2rem;padding:0 4rem;"],function(e){return e.theme.desktop990});var v=i.ZP.h2.withConfig({displayName:"CertificationLevelHeader",componentId:"sc-chx1g2-12"})(["font-size:2.6rem;"]),y=(0,i.ZP)(s.PS).withConfig({displayName:"StyledNewTag",componentId:"sc-chx1g2-13"})(["margin-right:1rem;"])},1014:function(e,t,n){"use strict";n.d(t,{Qt:function(){return r},jJ:function(){return s},pQ:function(){return o}});var i="".concat("it-training"),r=function(e){if(!e)return i;var t,n="training";return null!==(t=e.primaryCourseCategory)&&void 0!==t&&t.slug?n=e.primaryCourseCategory.slug:e.courseCategories&&e.courseCategories.length&&(n=e.courseCategories[0].slug),"".concat(i,"/").concat(n,"/").concat(e.slug)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===t.length&&0===e.length?i:0===t.length&&e.length>0?"".concat(i,"/").concat(e):"".concat(i,"/").concat(e,"/").concat(t)},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=function(e){var t=new Date(0);return t.setSeconds(e),t.toISOString().substring(15,19)};return e.map(function(e){return e.text?"

".concat(t(e.start)," - ").concat(e.text,"

"):null}).join("")}},87629:function(e,t,n){"use strict";n.r(t),n.d(t,{CourseView:function(){return ts},default:function(){return to}});var i=n(67294),r=n(56779),s=n(9008),o=n.n(s),a=n(99177),c=n(52857),l=n(1014),d=n(71641),u=n(54815),h=n.n(u),m=n(17099),g=n(85893),p=[],f=(0,i.createContext)({userPlaylists:p,refetchPlaylists:function(){}}),v=function(e){var t=e.children,n=(0,i.useContext)(m.V),r=n.isLoggedIn,s=n.userId,o=(0,i.useState)(p),a=o[0],c=o[1],l=(0,d.a)(h(),{variables:{userId:s},skip:!s||!r,fetchPolicy:"cache-and-network"}),u=l.data,v=l.refetch;return(0,i.useEffect)(function(){u&&null!=u&&u.userPlaylists&&c(u.userPlaylists)},[u,r,s]),(0,g.jsx)(f.Provider,{value:{userPlaylists:a,refetchPlaylists:v},children:t})},y={status:null,skillId:null,message:null,setSkillStatus:function(){}},x=(0,i.createContext)(y),w=function(e){var t=e.children,n=(0,i.useState)(y),r=n[0],s=r.status,o=r.message,a=r.skillId,c=n[1];return(0,g.jsx)(x.Provider,{value:{status:s,skillId:a,message:o,setSkillStatus:c},children:t})},P=n(16065),b=n(2644),k=n(53160),S=n(50029),C=n(64687),I=n.n(C),T=n(87379),j=T.ZP.aside.withConfig({displayName:"AsideContainer",componentId:"sc-1x8is86-0"})(["flex:0 0 39.4rem;position:relative;transition:flex 0.15s ease-in;",";@media (max-width:960px){flex:1 1 100%;padding-right:0.5rem;max-height:100%;}"],function(e){return e.isOpen?"\n margin-right: 3rem;\n max-width: 395px;\n @media (max-width: 960px) {\n margin-right: 0;\n max-width: 90vw;\n }\n ":"\n align-items: center;\n background-color: #FCFCFC;\n display: flex;\n flex-direction: column;\n flex: 1 15.2rem;\n justify-content: flex-start;\n padding: 4.4rem 0;\n transition: flex 0.27s ease-out;\n margin: 0 3rem 4.6rem 0;\n\n @media (max-width: 960px) {\n display: none;\n margin-right: 0;\n } \n "}),E=T.ZP.div.withConfig({displayName:"Tabs",componentId:"sc-1x8is86-1"})(["display:flex;"]),L=T.ZP.button.withConfig({displayName:"TabsIconButton",componentId:"sc-1x8is86-2"})(["background-color:transparent;border:none;color:",";cursor:pointer;font-size:2rem;&:last-of-type{margin-top:4.4rem;}"],function(e){return e.theme.secondary}),Z=T.ZP.button.withConfig({displayName:"ExpanderButton",componentId:"sc-1x8is86-3"})(["background-color:#fff;border:none;cursor:pointer;position:absolute;right:0;padding:0 0.2rem 0 0;@media (max-width:960px){display:none;}"]),N=T.ZP.div.withConfig({displayName:"PresentationImg",componentId:"sc-1x8is86-4"})(["width:",";height:",";background:url(",") 0 0;"],function(e){return e.width||"auto"},function(e){return e.height||"auto"},function(e){return e.imgSrc}),A=T.ZP.button.withConfig({displayName:"TabsButtonContainer",componentId:"sc-5mewvg-0"})(["background-color:transparent;border:none;border-bottom:0.2rem solid ",";color:#5c697d;font-size:",";letter-spacing:0.003rem;line-height:2.3rem;padding-bottom:2rem;padding-right:1rem;&:hover{cursor:pointer;}font-size:0;span{font-size:",";}",""],function(e){return e.theme.greyBorder},function(e){return e.theme.largeFont},function(e){return e.theme.largeFont},function(e){return e.isActive?"\n border-bottom: 0.2rem solid ".concat(e.theme.gold,"; \n color: #1B2733;\n font-weight: ").concat(e.theme.bold,";\n "):""}),O=function(e){var t=e.name,n=e.view,i=e.onClick,r=e.children,s=t===n;return(0,g.jsx)(A,{isActive:s,"aria-pressed":s,onClick:function(){return i(t)},"data-at":"tabs",children:(0,g.jsx)("span",{children:r})})},D=n(27812),M=T.ZP.ul.withConfig({displayName:"StyledVideoList",componentId:"sc-1rxkvjw-0"})(["list-style:none;padding:0;margin:0;",";"],function(e){return e.isOpen?" \n max-height: 999rem;\n transition: max-height 0.27s ease-in; \n ":"\n max-height: 0;\n transition: max-height 0.27s ease-out; \n "}),F=T.ZP.li.withConfig({displayName:"VideoListItem",componentId:"sc-1rxkvjw-1"})(["background-color:",";border-top:0.2rem solid ",";display:flex;flex:0 1 26.8rem;padding:1.2rem 0;&:hover{background-color:#eff2f7;cursor:pointer;}"],function(e){return e.isActive?"#eff2f7":""},function(e){return e.theme.greyBorder}),H=T.ZP.div.withConfig({displayName:"VideoListItemPlayPauseContainer",componentId:"sc-1rxkvjw-2"})(["min-width:2rem;margin:0 0.5rem;"]),R=T.ZP.div.withConfig({displayName:"VideoListItemPlayPause",componentId:"sc-1rxkvjw-3"})([""]),z=T.ZP.div.withConfig({displayName:"VideoListItemCopy",componentId:"sc-1rxkvjw-4"})(["span{font-weight:",";&:hover{text-decoration:underline;}}div{color:#5c697d;padding-top:0.5rem;}"],function(e){return e.theme.bold}),_=T.ZP.div.withConfig({displayName:"VideoItemIcon",componentId:"sc-1rxkvjw-5"})(["width:",";height:",";background:url(",") "," 0};"],function(e){return e.width||"auto"},function(e){return e.height||"auto"},function(e){return e.imgSrc},function(e){return e.positionX||"0"}),V=n(79676),B=n(15584),Q=n(26480),q=n(33194),U=n(85697),G=function(e){var t=e.isFirstSkill,n=e.isOpen,r=e.activeVideo,s=e.setActiveVideo,o=e.setActiveSkill,a=e.skill,c=new q.Z,l=c.getActivePlayer(),d=l&&"PLAYING"===l.playerState,u=(0,i.useState)(d),h=u[0],m=u[1],p=function(e){m("PLAYING"===(0,U.Z)(window,"cbtplayer.state","NOT_STARTED"))};(0,i.useEffect)(function(){window.addEventListener("player-playback-event",p)},[]);var f=(0,i.useMemo)(function(){return(0,D.Z)(null==a?void 0:a.videos).sort(function(e,t){return e.sortOrder-t.sortOrder})},[null==a?void 0:a.videos]);return(0,g.jsx)(M,{isOpen:n,children:f.map(function(e,n){var i,d,u=function(e,t){t.stopPropagation(),t.preventDefault();var n=e===(null==r?void 0:r.id),i=(null==l?void 0:l.playerState)!=="NOT_STARTED";n&&h&&(c.pause(),m(!1)),n&&i&&!h&&(c.play(),m(!0))},p=function(t){t.stopPropagation(),t.preventDefault(),s(e),o(a);var n=document.getElementById("videoPlayer");(0,Q.ZP)(n)},f=(0,B.CY)(e.videoLength),v=(null==e?void 0:e.id)===(null==r?void 0:r.id);return(0,g.jsxs)(F,{isActive:v,onClick:function(e){return p(e)},children:[(0,g.jsx)(H,{children:t&&0===n?(0,g.jsx)(R,{onClick:function(t){return u(null==e?void 0:e.id,t)},children:(i=(null==e?void 0:e.id)===(null==r?void 0:r.id),d=(null==l?void 0:l.playerState)!=="NOT_STARTED",(0,g.jsx)(_,{role:"presentation",imgSrc:V.Z,positionX:h&&i?"-94px":"-58px",width:"20px",height:"20px",style:{opacity:d?"1":"0.3"}}))}):""}),(0,g.jsxs)(z,{children:[(0,g.jsxs)("span",{children:[n+1,". ",e.name]}),(0,g.jsx)("div",{children:f})]})]},"key-".concat(n))})})},W=T.ZP.ul.withConfig({displayName:"StyledSkillList",componentId:"sc-pqcd25-0"})(["list-style:none;padding:0;"]),Y=T.ZP.li.withConfig({displayName:"SkillListItem",componentId:"sc-pqcd25-1"})(["border-top:0.2rem solid ",";overflow:hidden;"],function(e){return e.theme.greyBorder}),$=T.ZP.div.withConfig({displayName:"SkillListItemHeader",componentId:"sc-pqcd25-2"})(["color:",";display:flex;flex:0 1 26.8rem;font-size:",";font-weight:",";letter-spacing:0.003rem;line-height:2.3rem;padding:1.2rem 1rem;&:hover{background-color:#eff2f7;cursor:pointer;}"],function(e){return e.theme.secondary},function(e){return e.theme.standardFont},function(e){return e.theme.bold}),X=T.ZP.div.withConfig({displayName:"SkillListItemHeaderExpander",componentId:"sc-pqcd25-3"})([""]),K=T.ZP.div.withConfig({displayName:"SkillListItemHeaderExpanderIcon",componentId:"sc-pqcd25-4"})(["margin-right:0.6rem;vertical-align:super;transform:rotate(",");width:",";height:",";background:url(",") "," ",";"],function(e){return e.isOpen?"180deg":""},function(e){return e.width||"auto"},function(e){return e.height||"auto"},function(e){return e.imgSrc},function(e){return e.positionX||"0"},function(e){return e.isOpen?e.positionY||"0":e.offestY||"0"}),J=T.ZP.div.withConfig({displayName:"SkillListItemHeaderHeading",componentId:"sc-pqcd25-5"})([""]),ee=T.ZP.div.withConfig({displayName:"SkillListItemHeaderHeadingInfo",componentId:"sc-pqcd25-6"})(["color:#5c697d;font-size:",";letter-spacing:0.003rem;line-height:2rem;font-weight:normal;"],function(e){return e.theme.standardFont}),et=T.ZP.svg.withConfig({displayName:"SkillListItemHeaderHeadingInfoIcon",componentId:"sc-pqcd25-7"})(["margin-right:0.6rem;"]),en=function(){return(0,g.jsx)(et,{role:"presentation",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"m13.5332 8-5.53333333 5.5333333-5.53333334-5.5333333 5.53333334-5.53333333zm.8-.8-5.53333333-5.53333333c-.46666667-.46666667-1.13333334-.46666667-1.6 0l-5.53333334 5.53333333c-.46666666.46666667-.46666666 1.13333333 0 1.6l5.53333334 5.5333333c.46666666.4666667 1.13333333.4666667 1.6 0l5.53333333-5.5333333c.4-.46666667.4-1.13333333 0-1.6zm-4.8156.8052-1.53-1.53-1.5 1.5 1.53 1.53z",fill:"#5c697d",transform:"translate(-1 -1)"})})},ei=function(e){var t=e.skills,n=e.setActiveSkill,r=e.activeVideo,s=e.setActiveVideo,o=(0,i.useState)(null),a=o[0],c=o[1],l=(0,i.useMemo)(function(){var e=(0,D.Z)(t);return null==e?void 0:e.sort(function(e,t){return(null==e?void 0:e.sortOrder)-(null==t?void 0:t.sortOrder)})},[t]),d=function(e){if(e===a)return c(null);c(e)};return(0,g.jsx)(W,{children:l.map(function(e,t){var i=a===e.id;return(0,g.jsxs)(Y,{children:[(0,g.jsxs)($,{onClick:function(){n(e),d(e.id)},children:[(0,g.jsx)(X,{children:(0,g.jsx)(K,{isOpen:i,role:"presentation",imgSrc:V.Z,positionX:"-31px",positionY:"3px",width:"10px",height:"14px",offestY:"5px"})}),(0,g.jsxs)(J,{"aria-expanded":i,children:[(0,g.jsxs)(ee,{children:[(0,g.jsx)(en,{}),"Skill:"]}),e.name]})]}),(0,g.jsx)(G,{isFirstSkill:0===t,isOpen:i,activeVideo:r,setActiveVideo:s,setActiveSkill:n,skill:e})]},"key-".concat(e.id))})})},er=n(76637),es=T.ZP.div.withConfig({displayName:"TabContainer",componentId:"sc-5td82m-0"})(["display:",";max-height:114rem;min-height:30rem;overflow-x:hidden;overflow-y:scroll;padding-right:2rem;scroll-behavior:smooth;::-webkit-scrollbar{width:1em;}::-webkit-scrollbar-track{}::-webkit-scrollbar-thumb{background-color:#eff2f7;}h1{font-size:2.6rem;letter-spacing:0.004rem;line-height:3.3rem;margin:2.9rem 0 0;}h2,h3{font-size:",";margin:2.5rem 0 0;}@media (max-width:960px){max-height:100%;padding-right:0;}"],function(e){return e.isOpen?"initial":"none"},function(e){return e.theme.fonts.textLarge}),eo=T.ZP.div.withConfig({displayName:"TranscriptItem",componentId:"sc-5td82m-1"})(["background-color:",";border-radius:0.4rem;border:0.01rem solid ",";box-shadow:none;margin-bottom:1.5rem;margin-top:3rem;padding:2rem;max-height:1000px;overflow-y:auto;"],function(e){return e.theme.colors.white},function(e){return e.theme.colors.greyBorder}),ea=n(429),ec=function(e){var t,n=e.view,i=e.courseData,r=e.activeSkill,s=e.setActiveSkill,o=e.setActiveVideo,a=e.activeVideo,c=e.transcript,l=i.h1Title,d=i.h1Copy,u=i.h2Title,h=i.h2Copy,m=i.h3WhoTitle,p=i.h3WhoCopy,f=i.skills,v="\n

".concat(l,"

\n ").concat(d,"\n

").concat(u,"

\n ").concat(h,"\n

").concat(m,"

\n ").concat(p,"\n "),y=i.skills[0]===r,x=(null==i||null===(t=i.skills[0])||void 0===t?void 0:t.videos[0])===a,w=y&&x;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(es,{isOpen:"videos"===n,children:[(0,g.jsx)(er.k,{initialIsExpanded:!0,rawText:v,paragraphsDisplayed:3,ariaSectionTitle:i.h1Title}),(0,g.jsx)(ei,{activeVideo:a,setActiveVideo:o,setActiveSkill:s,skills:f,activeSkill:r})]}),(0,g.jsxs)(es,{isOpen:"transcripts"===n,children:[w&&(0,g.jsx)(eo,{dangerouslySetInnerHTML:{__html:c}}),!w&&(0,g.jsxs)("p",{children:["This content is not available for free learner accounts. ",(0,g.jsx)("br",{})," ",(0,g.jsx)(ea.Z.AnchorLink,{href:"/signup",children:"Upgrade now"})," to unlock our full learning library and all features.."]})]})]})},el=n(33811),ed=n(12549),eu=n(91345),eh=n(38070),em=function(e){var t,n=e.courseSlug,r=e.onProgress,s=(0,i.useState)(),o=s[0],a=s[1],c=(t=(0,S.Z)(I().mark(function e(){var t,i;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eu.od.get("/api/browsecache?course=".concat(n));case 3:a(null!==(t=(i=e.sent.data).previewVideos)&&void 0!==t&&t.length?i.previewVideos[0]:null),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error(e.t0);case 12:case"end":return e.stop()}},e,null,[[0,9]])})),function(){return t.apply(this,arguments)});return(0,i.useEffect)(function(){setTimeout(function(){return c()},1e3)},[]),(0,g.jsx)(eh.ZP,{muted:!0,playing:!0,autostart:!0,url:o,width:"0px",height:"0px",id:"transcript-layer",playbackRate:10,onProgress:r,config:{file:{hlsOptions:{xhrSetup:function(e){e.withCredentials=!1}}}}})},eg=function(e){var t,n,r=e.courseData,s=e.activeSkill,o=e.setActiveSkill,a=e.setActiveVideo,c=e.activeVideo,d=(0,i.useState)("videos"),u=d[0],h=d[1],m=(0,i.useState)(!0),p=m[0],f=m[1],v=(0,i.useState)(),y=v[0],x=v[1];(0,i.useEffect)(function(){var e=function(){960>=(0,el.fM)()&&f(!0)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]);var w=function(e){h(e)},P=function(e){f(!0),w(e)},b=(null==r?void 0:r.skills[0])===s,k=(null==r||null===(n=r.skills[0])||void 0===n?void 0:n.videos[0])===c,C=b&&k,T=(t=(0,S.Z)(I().mark(function e(){var t,n,i;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null==(n=null===(t=document.querySelector("#transcript-layer"))||void 0===t?void 0:t.children[0])?void 0:n.textTracks[0]){e.next=5;break}return e.abrupt("return");case 5:i.mode="hidden",x(Object.values(i.cues).map(function(e){return{text:e.text,start:e.startTime.toFixed(0)}}));case 8:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return p?(0,g.jsxs)(j,{isOpen:p,children:[(0,g.jsx)(Z,{onClick:function(){return f(!p)},"aria-label":"Collapse Videos and Transcripts Column",children:(0,g.jsx)(N,{role:"presentation",imgSrc:V.Z,width:"15px",height:"15px","data-at":"expanderButton"})}),(0,g.jsxs)(E,{children:[(0,g.jsx)(O,{name:"videos",view:u,onClick:function(){return w("videos")},children:"Videos"}),C&&(0,g.jsx)(O,{name:"transcripts",view:u,onClick:function(){return w("transcripts")},children:"Transcripts"})]}),(0,g.jsx)(ec,{activeVideo:c,setActiveVideo:a,setActiveSkill:o,activeSkill:s,courseData:r,view:u,transcript:null!=y&&y.length?(0,l.pQ)(y):"Loading transcripts..."}),(0,g.jsx)(em,{courseSlug:null==r?void 0:r.adeptCourseSlug,onProgress:T})]}):(0,g.jsxs)(j,{isOpen:p,children:[(0,g.jsxs)(L,{onClick:function(){P("videos")},children:[(0,g.jsx)(ed.Z,{role:"presentation",alt:"",src:"/assets/client/video.svg","data-at":"videoTabIcon"}),(0,g.jsx)("div",{children:"Videos"})]}),C&&(0,g.jsxs)(L,{onClick:function(){P("transcripts")},children:[(0,g.jsx)(ed.Z,{role:"presentation",alt:"",src:"/assets/client/transcripts.svg","data-at":"transcriptsTabIcon"}),(0,g.jsx)("div",{children:"Transcripts"})]})]})},ep=n(5152),ef=n.n(ep),ev=T.ZP.div.withConfig({displayName:"MainContent",componentId:"sc-16gx10u-0"})(["flex:1 1 auto;.custom-video-container{width:100%;height:375px;}@media screen and (min-width:1601px){.custom-video-container{height:375px !important;}}@media (max-width:960px){order:1;}"]),ey=n(72679),ex=T.ZP.div.withConfig({displayName:"PremiumCtaContainer",componentId:"sc-2kfwrh-0"})(["background-color:#eff2f7;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:2.5rem;padding:3.8rem 6.2rem;a{margin-top:1.4rem;}@media (max-width:480px){padding:3.2rem 2rem;}"]),ew=T.ZP.img.withConfig({displayName:"ListItemIcon",componentId:"sc-2kfwrh-1"})(["margin-right:1.9rem;width:24px;height:24px;"]),eP=T.ZP.div.withConfig({displayName:"PremiumCtaHeading",componentId:"sc-2kfwrh-2"})(["font-size:2.6rem;font-weight:",";letter-spacing:0.004rem;line-height:3.3rem;margin:1rem 0;"],function(e){return e.theme.bold}),eb=T.ZP.div.withConfig({displayName:"PremiumCtaCopy",componentId:"sc-2kfwrh-3"})(["flex:0 1 32rem;"]),ek=T.ZP.ul.withConfig({displayName:"PremiumCtaList",componentId:"sc-2kfwrh-4"})(["flex:0 1 31rem;list-style:none;padding:0;@media (max-width:960px){margin-top:4rem;}"]),eS=T.ZP.div.withConfig({displayName:"PremiumCtaListItem",componentId:"sc-2kfwrh-5"})(["align-items:center;display:flex;margin-top:1.6rem;&:first-of-type{margin:0;}"]),eC=function(){return(0,g.jsxs)(ex,{children:[(0,g.jsxs)(eb,{children:[(0,g.jsx)(eP,{children:"This video is only available in the new course view."}),(0,g.jsx)("a",{href:"/powered-by-adept",children:"Learn more about the new platform."})]}),(0,g.jsx)(ek,{children:(0,g.jsxs)(ey.LazyLoadComponent,{children:[(0,g.jsxs)(eS,{children:[(0,g.jsx)(ew,{role:"presentation",src:"/assetshttps://www.cbtnuggets.com/images/icons/quizzes-icon.png",alt:"New tools",width:40,height:40}),"New tools"]}),(0,g.jsxs)(eS,{children:[(0,g.jsx)(ew,{role:"presentation",src:"/assetshttps://www.cbtnuggets.com/images/icons/coaching-icon.png"}),"More features"]}),(0,g.jsxs)(eS,{children:[(0,g.jsx)(ew,{role:"presentation",src:"/assetshttps://www.cbtnuggets.com/images/icons/practice-exams-icon.png"}),"Improved organization"]})]})})]})},eI=ef()(function(){return n.e(3365).then(n.bind(n,83365))},{loadableGenerated:{webpack:function(){return[83365]}}}),eT=ef()(function(){return n.e(5186).then(n.bind(n,45186))},{loadableGenerated:{webpack:function(){return[45186]}}}),ej=ef()(function(){return n.e(9107).then(n.bind(n,99107))},{loadableGenerated:{webpack:function(){return[99107]}}}),eE=ef()(function(){return Promise.all([n.e(9511),n.e(9841)]).then(n.bind(n,9841))},{loadableGenerated:{webpack:function(){return[9841]}}}),eL=ef()(function(){return n.e(8406).then(n.bind(n,22204))},{loadableGenerated:{webpack:function(){return[22204]}}}),eZ=ef()(function(){return n.e(8152).then(n.bind(n,48152))},{loadableGenerated:{webpack:function(){return[48152]}}}),eN=ef()(function(){return n.e(2060).then(n.bind(n,52060))},{loadableGenerated:{webpack:function(){return[52060]}}}),eA=function(e){var t=e.recommendedCourses,n=e.courseData,i=e.activeSkill,r=e.activeVideo,s=e.faqs,o=e.faqTitle,a=e.isLoggedIn,c=void 0!==a&&a;return(0,g.jsxs)(ev,{children:[(0,g.jsx)(eE,{activeVideo:r,activeSkill:i,courseData:n,isLoggedIn:c}),null!=n&&n.isAdeptOnly&&c?(0,g.jsx)(eC,{}):(0,g.jsx)(eI,{}),(0,g.jsx)(eT,{totals:n.totals}),(0,g.jsx)(ej,{trainer:i.trainer}),(0,g.jsx)(eN,{}),s.length?(0,g.jsx)(eL,{questions:s,title:o}):null,t.length>0&&(0,g.jsx)(eZ,{recommendedCourses:t})]})},eO=(0,k.D)(),eD=function(e){var t,n=e.recommendedCourses,r=e.courseData,s=e.categorySlug,d=e.courseSlug,u=(e.loading,e.faqs),h=e.faqTitle,m=e.showViewInAdeptButton,p=e.isLoggedIn,f=null!==(t=null==r?void 0:r.pageTitle)&&void 0!==t?t:a.i,y=(null==r?void 0:r.pageTitleMetaData)||a.D,x=(0,l.Qt)(r),k=(0,l.jJ)(s,d),S=(0,i.useState)(r.skills[0]),C=S[0],I=S[1],T=(0,i.useState)(C.videos[0]),j=T[0],E=T[1];return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(v,{children:[(0,g.jsx)(w,{children:(0,g.jsxs)(c.ck,{children:[(0,g.jsxs)(o(),{children:[(0,g.jsx)("title",{children:"".concat(f)},"title"),(0,g.jsx)("meta",{name:"description",content:y},"description"),(0,g.jsx)("link",{rel:"canonical",href:x},"canonical"),(0,g.jsx)("meta",{property:"og:title",content:"".concat(f," articles from CBT Nuggets")},"ogTitle"),(0,g.jsx)("meta",{property:"og:url",content:k},"ogUrl"),(0,g.jsx)("meta",{property:"og:description",content:"".concat(y)},"ogDescription"),(0,g.jsx)("meta",{property:"og:title",content:null!=r&&r.name?null==r?void 0:r.name:""},"ogTitle"),(0,g.jsx)("meta",{property:"og:image",content:"".concat(eO,"/assetshttps://www.cbtnuggets.com/images/og/courses/").concat(d,".png")},"ogImage")]}),(0,g.jsx)(eg,{activeVideo:j,setActiveVideo:E,setActiveSkill:I,activeSkill:C,courseData:r}),(0,g.jsx)(eA,{recommendedCourses:n,activeVideo:j,activeSkill:C,courseData:r,faqs:u,faqTitle:h,showViewInAdeptButton:void 0!==m&&m,isLoggedIn:void 0!==p&&p})]})}),(0,g.jsx)(P.Z,{schemaData:(0,b.Z)(r)})]})})},eM="".concat("it-training"),eF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===t.length&&0===e.length?eM:0===t.length&&e.length>0?"".concat(eM,"/").concat(e):"".concat(eM,"/").concat(e,"/").concat(t)},eH=n(21161),eR=n(62083),ez=n(944),e_=T.ZP.div.withConfig({displayName:"StyledCertificateIcon",componentId:"sc-7v2db2-0"})(["width:",";height:",";background:url(",");background-position-x:",";background-position-y:",";background-size:",";background-repeat:no-repeat;margin-right:",";margin-top:",";margin-left:",";"],function(e){return e.width||"50px"},function(e){return e.height||"50px"},function(e){return e.imgSrc},function(e){return e.positionX},function(e){return e.positionY},function(e){return e.size||"cover"},function(e){return e.rightMargin||"0px"},function(e){return e.toptMargin||"0px"},function(e){return e.leftMargin||"10px"}),eV=T.ZP.article.withConfig({displayName:"MultiExamContentContainer",componentId:"sc-1s4rbgm-0"})(["max-width:",";margin:0 auto;padding:6rem 2rem;"],function(e){return e.theme.desktop990}),eB=T.ZP.span.withConfig({displayName:"MultiExamIconHeader",componentId:"sc-1s4rbgm-1"})(["display:flex;align-items:center;position:relative;left:-7rem;@media (max-width:","){left:0;.cert-icon{display:none;}}.cert-icon{margin-top:7.5rem;width:5.6rem;height:5.6rem;margin-right:1rem;}"],function(e){return e.theme.desktop990}),eQ=T.ZP.div.withConfig({displayName:"NeedToKnowContent",componentId:"sc-1s4rbgm-2"})(["max-width:",";@media (max-width:","){max-width:100%;}p:first-child{font-weight:",";font-size:",";}ul{font-size:",";line-height:2.6rem;margin:2rem 3rem;padding:0;}"],function(e){return e.theme.smtablet},function(e){return e.theme.desktop990},function(e){return e.theme.bold},function(e){return e.theme.largeFont},function(e){return e.theme.largeFont}),eq=T.ZP.div.withConfig({displayName:"NeedToKnowHero",componentId:"sc-1s4rbgm-3"})(["background-color:",";@media (min-width:","){background-image:url(",");background-position:top right;background-repeat:no-repeat;background-size:cover;}"],function(e){return e.theme.greyLight},function(e){return e.theme.desktop990},"/assets/_next/static/b7a856ac5404d850c90a0dffe6e7dd0d.jpg"),eU=T.ZP.p.withConfig({displayName:"MultiExamIconDetailItem",componentId:"sc-1s4rbgm-4"})(["font-size:",";font-weight:",";"],function(e){return e.theme.largeFont},function(e){return e.theme.bold}),eG=T.ZP.div.withConfig({displayName:"WhoShouldTakeOverview",componentId:"sc-1s4rbgm-5"})(["margin-bottom:5rem;"]),eW=T.ZP.div.withConfig({displayName:"TargetUserContainer",componentId:"sc-1s4rbgm-6"})(["display:grid;grid-gap:2rem;grid-template-columns:1fr 1fr;@media (max-width:","){grid-template-columns:1fr;}"],function(e){return e.theme.tablet}),eY=T.ZP.div.withConfig({displayName:"TargetUserBox",componentId:"sc-1s4rbgm-7"})(["background-color:",";padding:3.5rem;h3{font-size:",";line-height:1.8rem;}"],function(e){return e.theme.greyLight},function(e){return e.theme.largeFont});T.ZP.ul.withConfig({displayName:"ExamCourseList",componentId:"sc-1s4rbgm-8"})(["margin:0;padding:0;"]),T.ZP.li.withConfig({displayName:"ExamCourseListItem",componentId:"sc-1s4rbgm-9"})(["display:flex;flex-direction:row;a{font-size:2.4rem;}"]);var e$=T.ZP.div.withConfig({displayName:"StyledHeaderContainer",componentId:"sc-1s4rbgm-10"})(["flex:1;margin-top:6rem;display:flex;flex-direction:column;h1{margin-top:1rem;margin-bottom:1.5rem;}"]),eX=n(6270),eK=function(e){var t=e.certData,n=t.name,i=t.subheading,r=t.recommendedExperience,s=t.primaryCategory,o=s.name,a=s.slug,c=s.urlPath,l=void 0===c?"/it-training":c,d=[{title:"Home",path:"/"},{title:"IT Training",path:l},{title:o,path:"".concat(l,"/").concat(a)},{title:n,path:""}];return(0,g.jsx)(eR.uO,{children:(0,g.jsxs)(eV,{children:[(0,g.jsx)(ez.b,{tree:d}),(0,g.jsxs)(eB,{children:[(0,g.jsx)(e_,{size:"8000px",width:"65px",height:"40px",rightMargin:"10px",toptMargin:"74px",imgSrc:eX.uF,positionX:"-7585px",positionY:"0px"}),(0,g.jsxs)(e$,{children:[(0,g.jsx)(eH._Y,{children:"Course"}),(0,g.jsx)("h1",{children:n})]})]}),(0,g.jsx)(eU,{children:i}),(0,g.jsxs)(eU,{children:[r," experience recommended"]})]})})},eJ=n(54031),e0=n(40157),e1=n(24859),e3=n(15103),e2=n(4648),e6=n(21642),e5=T.ZP.div.withConfig({displayName:"StyledModalWrapper",componentId:"sc-1ksri6z-0"})([".cohesion-modal{max-height:100vh;max-width:100vw;overflow:auto;width:fit-content;#cohesion-modal-title{color:",";font-family:",";font-size:3.2rem;font-weight:600;letter-spacing:0.05px;line-height:40px;}@media (max-width:","){padding:0;}}"],function(e){return e.theme.colors.primary},function(e){return e.theme.fonts.fontFamily},function(e){return e.theme.breakpoints.mediaMobileMax}),e4=T.ZP.div.withConfig({displayName:"StyledSubTitle",componentId:"sc-1ksri6z-1"})(["margin-top:1rem;color:",";font-family:",";font-size:1.8rem;font-weight:100;letter-spacing:0.03px;line-height:23px;"],function(e){return e.theme.colors.primary},function(e){return e.theme.fonts.fontFamily}),e7=T.ZP.div.withConfig({displayName:"StyledModalContent",componentId:"sc-1ksri6z-2"})(["margin:0 4rem;@media (max-width:","){margin:0 2rem;}"],function(e){return e.theme.breakpoints.mediaMobileMax}),e8=T.ZP.div.withConfig({displayName:"StyledModalButtonGroup",componentId:"sc-1ksri6z-3"})(["display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-top:2rem;button{margin:1rem 1.5rem auto 1rem;height:5rem;}@media (max-width:","){justify-content:center;button{width:25rem;}}@media (max-width:","){margin-bottom:5rem;}"],function(e){return e.theme.breakpoints.phone590},function(e){return e.theme.breakpoints.phone}),e9=function(e){var t=e.height,n=e.width,i=e.title,r=e.visible,s=e.onClose,o=e.animationType,a=e.subTitle,c=e.children;return(0,g.jsx)(e5,{children:(0,g.jsx)(e2.Z,{visible:void 0!==r&&r,animationType:void 0===o?"zoom":o,animationDurationInMs:400,onClose:s,className:"cohesion-modal",style:{height:void 0===t?"fit-content":t,width:void 0===n?"80rem":n},children:(0,g.jsxs)(e7,{children:[(0,g.jsx)(e2.Z.CloseButton,{}),(0,g.jsxs)(e2.Z.Title,{id:"cohesion-modal-title",children:[void 0===i?"":i,a&&(0,g.jsx)(e4,{children:a})]}),c]})})})},te=function(e){var t=e.visible,n=e.onCancel,i=e.onConfirm,r=e.width,s=e.height,o=e.title,a=e.message,c=e.confirmText;return(0,g.jsxs)(e9,{title:o,visible:void 0!==t&&t,onClose:n,width:r,height:s,children:[(0,g.jsx)("p",{children:a}),(0,g.jsx)("br",{}),(0,g.jsxs)(e8,{children:[(0,g.jsx)(e6.Z.SecondaryDarkLarge,{onClick:n,children:"Cancel"}),(0,g.jsx)(e6.Z.PrimaryDarkLarge,{onClick:i,children:c})]})]})},tt=function(e){var t=e.certData,n=e.categorySlug,r=void 0===n?"":n,s=t.description,o=t.additionalDescription,a=t.courses,c=(0,i.useContext)(m.V),l=c.isLoggedIn,d=c.userId,u=(0,i.useState)(!1),h=u[0],p=u[1],f=(0,i.useState)(!1),v=f[0],y=f[1],x=(0,i.useState)(null),w=x[0],P=x[1],b=(0,eJ.V)({isLoggedIn:l,userId:d}),k=b.data,S=b.loading,C=b.refetch,I=(null==k?void 0:k.bookshelfItems)||[];return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(eV,{children:[(0,g.jsx)("h2",{className:"underline",children:"Exams Towards this Certification"}),(0,g.jsx)("p",{children:s}),(0,g.jsx)(e3.cQ,{children:null==a?void 0:a.map(function(e){var t=(null==e?void 0:e.studioId)||"";if(e&&e.id)return(0,g.jsxs)(e3.D7,{children:[(0,g.jsx)(e1.R,{loadingBookmarkedCourses:S,bookmarkedCourses:I,tooltipPlacement:"left",courseName:(null==e?void 0:e.name)||"",isLoggedIn:l,contentNrn:t,userId:d,setShowRemoveModal:p,removeBookshelf:w===t&&v,setRemoveBookshelf:y,setSelectedCourse:P,refetchBookshelf:C}),(0,g.jsxs)("div",{children:[(0,g.jsx)(e3.hx,{ssrLink:!0,renderAs:"/it-training/".concat(r,"/").concat(e.slug),href:"/it-training/[category]/[course]",children:e.name}),(0,g.jsx)(e0.pU,{courseType:e.courseType&&(null==e?void 0:e.courseType),totals:null==e?void 0:e.totals})]})]},e.id)})}),(0,g.jsx)("p",{children:o})]}),(0,g.jsx)(te,{visible:h,onCancel:function(){return p(!1)},onConfirm:function(){y(!0),p(!1)},title:"Remove bookmark",width:"60rem",message:"Do you want to remove this course from bookmarked courses?",confirmText:"Remove bookmark"})]})},tn=function(e){var t=e.certData,n=t.needToKnowHeader,i=t.needToKnowContent;return(0,g.jsx)(eq,{children:(0,g.jsx)(eV,{children:(0,g.jsxs)(eQ,{children:[(0,g.jsx)("h2",{children:n}),(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:i&&i.html}})]})})})},ti=function(e){var t=e.certData,n=t.additionalInfoHeader,i=t.additionalInfoContent,r=t.additionalInfoBoxes;return(0,g.jsxs)(eV,{children:[(0,g.jsxs)(eG,{children:[(0,g.jsx)("h2",{className:"underline",children:n}),(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:i&&i.html}})]}),(0,g.jsx)(eW,{children:r.map(function(e){var t=e.headerImage,n=e.header,i=e.content,r="graph"===(void 0===t?"":t).toLowerCase()?{positionX:"-7528px",positionY:"0px"}:{positionX:"-7475px",positionY:"0px"};return i.html&&i.html.length>0&&(0,g.jsxs)(eY,{children:[(0,g.jsx)(e_,{size:"8000px",width:"65px",height:"65px",rightMargin:"0px",toptMargin:"0px",leftMargin:"0px",imgSrc:eX.uF,positionX:r.positionX,positionY:r.positionY}),(0,g.jsx)("h3",{children:n}),(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:i&&i.html}})]})})})]})},tr=function(e){var t=e.certData,n=e.categorySlug,i=t.name,s=t.description,a=t.slug,c=t.primaryCategory;if(!c)return(0,g.jsx)(r.default,{code:404});var l=c.slug,d=c.urlPath,u=eF(n,a),h="".concat(void 0===d?"/it-training":d,"/").concat(l,"/").concat(a);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(o(),{children:[(0,g.jsx)("title",{children:"".concat(i)},"title"),(0,g.jsx)("meta",{name:"description",content:s},"description"),(0,g.jsx)("link",{rel:"canonical",href:h},"canonical"),(0,g.jsx)("meta",{property:"og:title",content:"".concat(i)},"ogTitle"),(0,g.jsx)("meta",{property:"og:url",content:u},"ogUrl"),(0,g.jsx)("meta",{property:"og:description",content:"".concat(s)},"ogDescription"),(0,g.jsx)("meta",{name:"twitter:title",content:"".concat(i)},"twitterTitle"),(0,g.jsx)("meta",{name:"twitter:description",content:s},"twitterDescription")]}),(0,g.jsx)(eK,{certData:t}),(0,g.jsx)(tt,{certData:t,categorySlug:n}),(0,g.jsx)(tn,{certData:t}),(0,g.jsx)(ti,{certData:t})]})},ts=function(e){var t=e.courseSlug,n=e.categorySlug,s=e.data,o=(0,i.useContext)(m.V).isLoggedIn;if(!s.certification&&!s.course)return(0,g.jsx)(r.default,{code:404});var a=s.certification,c=s.course;if(a)return(0,g.jsx)(tr,{certData:a,categorySlug:n});if(o&&!(null!=c&&c.isAdeptOnly)){var l=localStorage.getItem("utm_params")?"&"+localStorage.getItem("utm_params"):"",d="/learn/it-training/playlist/".concat(null==c?void 0:c.studioId,"/1?autostart=1")+l;return window.location.href=d,(0,g.jsx)(g.Fragment,{})}if(c){var u=c.faqs,h=c.playlistTitle,p=c.recommendedCourses;return(0,g.jsx)(eD,{recommendedCourses:p,courseData:c,courseSlug:t,categorySlug:n,loading:!1,faqs:u,faqTitle:h,showViewInAdeptButton:!0,isLoggedIn:o})}return(0,g.jsx)(r.default,{code:500})},to=ts},76637:function(e,t,n){"use strict";n.d(t,{k:function(){return o}}),n(67294);var i=n(58870),r=n(71022),s=n(85893),o=function(e){var t=e.paragraphsDisplayed,n=e.rawText,o=e.ariaSectionTitle,a=e.initialIsExpanded,c=e.toggleShow,l=t||1,d=(0,i.Vd)(n);if(d.length>l){var u=d.slice(0,l),h=d.slice(l,d.length);return(0,s.jsx)(r.g,{initialIsExpanded:void 0!==a&&a,initialContent:u,expandedContent:h,toggleShow:c,ariaToggleInfo:o&&"Toggle more about ".concat(o)})}return(0,s.jsx)(s.Fragment,{children:d})}},70400:function(e,t,n){"use strict";n.d(t,{F0:function(){return d},G6:function(){return a},Nm:function(){return s},X5:function(){return h},bk:function(){return o},bz:function(){return u},oB:function(){return l},oC:function(){return c}});var i=n(87379),r=n(88611),s=i.ZP.article.withConfig({displayName:"StyledExpando",componentId:"sc-1xrs26x-0"})(["border-top:",";display:block;"],function(e){return e.borderTop?"1px solid ".concat(e.theme.greyBorder):"none"}),o=i.ZP.button.withConfig({displayName:"ExpanderButton",componentId:"sc-1xrs26x-1"})(["background:transparent;border:none;font-size:1.5rem;font-weight:600;padding:0rem;color:",";display:flex;align-items:center;margin-right:1rem;:hover,:focus{cursor:pointer;text-decoration:underline;}svg{transition:all 0.2s ease;transform:",";fill:",";&.active{fill:",";}}"],function(e){return e.theme.blue},function(e){return e.isExpanded?"rotate(180deg)":"rotate(0deg)"},function(e){return e.isExpanded?e.theme.blue:e.theme.black},function(e){return e.theme.blue}),a=i.ZP.header.withConfig({displayName:"ExpandoHeader",componentId:"sc-1xrs26x-2"})(["display:flex;align-items:center;justify-content:space-between;"]),c=i.ZP.span.withConfig({displayName:"ExpandoHeaderIcon",componentId:"sc-1xrs26x-3"})(["display:",";align-items:center;margin-right:",";"],function(e){return e.hasIcon?"flex":"none"},function(e){return e.iconMarginRight?"".concat(e.iconMarginRight/10,"rem"):0}),l=i.ZP.div.attrs(function(e){return{paddingSize:e.compact?".8rem":"3rem"}}).withConfig({displayName:"HeaderContent",componentId:"sc-1xrs26x-4"})(["display:flex;flex:1;align-items:center;padding:",";font-size:2.6rem;color:",";cursor:pointer;text-align:start;"],function(e){return e.hasAboveTheFoldContent?"".concat(e.paddingSize," 0 0 0"):"".concat(e.paddingSize," 0")},function(e){return e.theme.black}),d=i.ZP.div.withConfig({displayName:"ExpandoContent",componentId:"sc-1xrs26x-5"})(["height:auto;transition:max-height 0.4s ease-out;padding:0;margin-bottom:2rem;&.collapsed{max-height:0;display:none;}p{margin:0 0 1rem 0;}@media only screen and (min-width:","){padding-left:",";padding-right:",";}"],function(e){return e.theme.tablet},function(e){return e.contentOffset?"".concat(e.contentOffset/10,"rem"):0},function(e){return e.contentOffset?"".concat(e.contentOffset/10,"rem"):0}),u=i.ZP.div.withConfig({displayName:"IconPlaceholder",componentId:"sc-1xrs26x-6"})(["width:4.5rem;height:4.5rem;",";border-radius:50%;"],r.f),h=i.ZP.div.withConfig({displayName:"AboveTheFoldContainer",componentId:"sc-1xrs26x-7"})(["padding:1.6rem 0;padding-left:",";margin-left:",";"],function(e){return e.hasIcon?"3.6rem":"0"},function(e){return e.iconMarginRight?"".concat(e.iconMarginRight/10,"rem"):0})},62083:function(e,t,n){"use strict";n.d(t,{Ac:function(){return S},uO:function(){return C},QA:function(){return x}});var i=n(67294),r=n(87379),s=n(88611),o=(0,r.iv)(["height:42rem;@media screen and (min-width:1000px){height:21rem;background-position:top 0% left 67% !important;}@media screen and (min-width:1601px){height:42rem;}"]),a=r.ZP.div.withConfig({displayName:"HeroPlaceholder",componentId:"sc-x48w7n-0"})(["width:100%;height:32.5rem;",";@media (min-width:","){",";}"],s.f,function(e){return e.theme.desktop960},o),c=r.ZP.div.withConfig({displayName:"FullHeroImagePlaceholder",componentId:"sc-x48w7n-1"})(["",";",";"],o,s.f),l=r.ZP.div.withConfig({displayName:"FullHeroImage",componentId:"sc-x48w7n-2"})(["",";background-image:linear-gradient(rgba(27,39,51,0),rgba(27,39,51,0.8)),url(",");background-size:cover;background-position:bottom 0% left 67%;background-repeat:no-repeat,no-repeat;@media (min-width:","){background-image:url(",");background-position:bottom center,center center;}"],o,function(e){return e.imagePath},function(e){return e.theme.tablet},function(e){return e.imagePath}),d=r.ZP.div.withConfig({displayName:"FullHeroContent",componentId:"sc-x48w7n-3"})(["display:flex;flex-direction:column;height:100%;padding:4rem 4rem;margin:0 auto;max-width:",";justify-content:flex-end;@media (min-width:","){justify-content:center;}"],function(e){return e.theme.siteContentReducedWidth},function(e){return e.theme.tablet}),u=r.ZP.div.withConfig({displayName:"CategoryHeroTextContainer",componentId:"sc-x48w7n-4"})(["background-color:",";width:100%;@media (min-width:","){width:50%;display:flex;}@media (min-width:","){justify-content:flex-end;}"],function(e){return e.theme.greyLight},function(e){return e.theme.desktop960},function(e){return e.theme.desktop1400}),h=r.ZP.aside.withConfig({displayName:"CategoryHeroText",componentId:"sc-x48w7n-5"})(["padding:4rem 0rem 4rem 4rem;@media (min-width:","){width:60rem;padding:4rem 0rem 2rem 0;}"],function(e){return e.theme.desktop1400}),m=r.ZP.span.withConfig({displayName:"CategoryHeroImage",componentId:"sc-x48w7n-6"})(["display:none;display:flex;position:relative;@media (min-width:","){display:block;width:50%;min-height:42rem;background-image:url(",");background-size:cover;background-repeat:no-repeat;}"],function(e){return e.theme.desktop960},function(e){return e.imagePath}),g=(0,r.iv)(["min-height:30rem;width:100%;background-color:",";background-size:70rem 100%;@media (min-width:","){background-image:url(",");background-position:top right;background-repeat:no-repeat;}"],function(e){return e.theme.greyLight},function(e){return e.theme.tablet},function(e){return e.imagePath});r.ZP.div.withConfig({displayName:"CourseHeroImage",componentId:"sc-x48w7n-7"})(["",";"],g);var p=r.ZP.div.withConfig({displayName:"CertificationHeroImage",componentId:"sc-x48w7n-8"})(["",";@media (min-width:","){background-position:right -150px top 50%;}"],g,function(e){return e.theme.tablet}),f=r.ZP.div.withConfig({displayName:"CourseHeroImagePlaceholder",componentId:"sc-x48w7n-9"})(["",";height:20rem;@media (min-width:","){background-image:none;}"],g,function(e){return e.theme.tablet}),v=r.ZP.div.withConfig({displayName:"CourseHeroContent",componentId:"sc-x48w7n-10"})(["h1{margin:0;padding:0;text-align:left;}ul{margin:0;padding:2rem 2rem 0 0;}"]),y=n(85893),x=function(e){var t=e.children,n=e.imagePath,i=e.loading;return i?(0,y.jsx)(c,{}):(0,y.jsx)(l,{loadingPlaceholder:i,imagePath:n,children:(0,y.jsx)(d,{children:t})})},w=n(944),P=n(12549),b=r.ZP.h1.withConfig({displayName:"StyledH1",componentId:"sc-jqdin4-0"})(["margin:0 0 2rem 0;"]),k=r.ZP.div.withConfig({displayName:"StyledLogoContainer",componentId:"sc-jqdin4-1"})(["display:flex;align-items:center;height:14rem;margin:0;img{height:8rem;max-width:15.6rem;}"]),S=function(e){var t=e.imagePath,n=e.logoPath,r=e.h1Title,s=e.categoryName,o=e.loading,c=e.pageName,l=n?(0,y.jsx)(k,{role:"presentation",children:(0,y.jsx)(P.Z,{src:n,alt:"",width:33,height:80})}):null,d=(0,i.useMemo)(function(){var e="Online Training";return r||c?r||"".concat(c," ").concat(e):e},[r,c]);return o?(0,y.jsx)(a,{}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(u,{children:(0,y.jsxs)(h,{children:[(0,y.jsx)(w.b,{tree:[{title:"All Training",path:"/it-training"},{title:s,path:""}]}),l,(0,y.jsx)(b,{children:d})]})}),(0,y.jsx)(m,{imagePath:t,role:"presentation","aria-hidden":!0})]})},C=function(e){var t=e.children,n=e.imagePath;return e.loading?(0,y.jsx)(f,{}):(0,y.jsx)(p,{imagePath:n,children:(0,y.jsx)(v,{children:t})})}},71022:function(e,t,n){"use strict";n.d(t,{g:function(){return h}});var i=n(67294),r=n(70400),s=n(87379),o=s.ZP.label.withConfig({displayName:"ShowMoreToggle",componentId:"sc-1yyossx-0"})(["display:flex;align-items:center;"]),a=s.ZP.div.withConfig({displayName:"InitialContent",componentId:"sc-1yyossx-1"})(["& p{margin:1rem 0 0 0;}"]),c=s.ZP.div.withConfig({displayName:"ExpandedContent",componentId:"sc-1yyossx-2"})(["height:",";overflow:hidden;"],function(e){return e.height}),l=s.ZP.div.withConfig({displayName:"StyledShowMore",componentId:"sc-1yyossx-3"})(["button{font-family:",";font-weight:",";font-size:",";}svg{width:2rem;margin-left:0.5rem;}"],function(e){return e.theme.fonts.fontFamily},function(e){return e.theme.regular},function(e){return e.theme.fonts.textStandard}),d=n(85893),u=(0,d.jsx)("svg",{className:"active",xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24px",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"})}),h=function(e){var t=e.initialContent,n=e.expandedContent,s=e.ariaToggleInfo,h=e.hideInitialContent,m=e.initialIsExpanded,g=void 0===m||m,p=e.toggleShow,f=void 0===p?function(){}:p,v=(0,i.useState)(g),y=v[0],x=v[1],w=(0,i.useRef)(null);return(0,i.useEffect)(function(){x(g)},[g]),(0,d.jsxs)(l,{children:[(0,d.jsx)(a,{hidden:void 0!==h&&h&&y,children:t}),(0,d.jsx)(c,{height:y?"auto":"0",ref:w,hidden:!y,children:n}),(0,d.jsx)(o,{children:(0,d.jsx)(r.bk,{"data-at":"ExpanderButton",isExpanded:y,"aria-expanded":y,onClick:function(){x(!y),f()},"aria-label":s||"Toggle more information",children:y?(0,d.jsxs)(d.Fragment,{children:["Show less",u]}):(0,d.jsxs)(d.Fragment,{children:["Show more",u]})})})]})}},16065:function(e,t,n){"use strict";n(67294);var i=n(85893);t.Z=function(e){var t=e.schemaData;return(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}},2644:function(e,t,n){"use strict";var i=n(81350),r=n(53160);t.Z=function(e){var t=(0,r.D)();return{"@context":"https://schema.org","@type":"Course",name:null==e?void 0:e.name,url:"".concat(t).concat(null==e?void 0:e.publicViewLink),description:null==e?void 0:e.pageTitleMetaData,provider:(0,i.Z)(),offers:{"@type":"Offer",category:"Paid",price:"59",priceCurrency:"USD"},hasCourseInstance:[{"@type":"CourseInstance",courseMode:"Online",courseWorkload:"PT100H"}]}}},81350:function(e,t){"use strict";t.Z=function(){return{"@context":"https://schema.org","@type":"Corporation",alternateName:"CBT Nuggets",description:"We provide a variety of training, primarily in IT, project management, and office productivity topics. Our comprehensive library contains thousands of training videos ranging from Cisco networking to Microsoft Word. Whether you want to pass a certification exam, increase your skills, or simply learn new things, we've got you covered!",founder:"Dan Charbonneau",foundingDate:"1999",legalName:"CBT Nuggets, LLC",logo:"http://www.canuseducation.com/?cert=assetshttps://www.cbtnuggets.com/images/svg/cbtn-logo.png",name:"CBT Nuggets",url:"",address:{"@type":"PostalAddress",addressLocality:"Eugene",postalCode:"97408",streetAddress:"2850 Crescent Avenue"},contactPoint:{"@type":"ContactPoint",areaServed:"US",contactOption:"TollFree",contactType:"customer service",telephone:"888-507-6283"},sameAs:["https://twitter.com/CBTNuggets","https://www.facebook.com/cbtnuggets/","https://www.linkedin.com/company/cbt-nuggets/","https://www.youtube.com/user/cbtnuggets"]}}},99177:function(e,t,n){"use strict";n.d(t,{D:function(){return r},i:function(){return i}});var i="Online IT Training Videos, IT Certification Training",r="CBT Nuggets is the best way to learn IT, our blog is the best way to learn about CBT Nuggets"},26480:function(e,t,n){"use strict";n.d(t,{A_:function(){return s},uF:function(){return r}});var i=n(33811),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e&&(0,i.Nq)()){var n=document.body.getBoundingClientRect().top,r=e.getBoundingClientRect().top;window.scrollTo({top:r-n-t,behavior:"smooth"})}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"contact-form";e&&r(document.getElementById(e),50)};t.ZP=function(e){e&&e.scrollIntoView({behavior:"smooth",block:"center"})}},22651:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var i=function(e){return"string"!=typeof e?(console.warn("\n kebabCase requires a string,\n but was provided a type of:\n ".concat(typeof e,"\n ")),""):e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}},15584:function(e,t,n){"use strict";function i(e){var t=Math.floor((e=Number(e))/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return{hours:t,minutes:n,seconds:i,display:{hours:t>0?t+(1==t?" hour ":" hours "):"",minutes:n>0?n+(1==n?" minute ":" minutes "):"",seconds:i>0?i+(1==i?" second":" seconds"):""}}}function r(e){var t=i(e),n=t.hours&&t.hours>0?"".concat(t.hours," hr").concat(t.hours>1?"s":""):"",r=t.minutes&&t.minutes>0?"".concat(t.minutes," min").concat(t.minutes>1?"s":""):"";return 0===t.hours&&0===t.minutes?t.seconds&&t.seconds>0?"1 min":null:"".concat(n," ").concat(r)}function s(e){var t=i(e),n=t.hours>0?"".concat(t.hours.toLocaleString("en-US",{minimumIntegerDigits:2}),":"):"",r="".concat(t.minutes.toLocaleString("en-US",{minimumIntegerDigits:t.hours>0?2:1})),s="".concat(t.seconds.toLocaleString("en-US",{minimumIntegerDigits:2}));return"".concat(n).concat(r,":").concat(s)}n.d(t,{CY:function(){return r},qQ:function(){return s},qt:function(){return i}})}}]);