(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8603,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){s.has(e)||(s.add(e),(n[e]||new Set).forEach(function(e){a.add(e)}))})}return s.forEach(function(t){var n=i(e,t);n&&o.definitions.push(n)}),o}(t,"getUserPlaylists")},6270:function(e,t,n){"use strict";n.d(t,{$J:function(){return i},EZ:function(){return o},KO:function(){return r},le:function(){return s},uF:function(){return a}});var i="assetshttps://www.cbtnuggets.com/images/all_feature@2x.png",o="assetshttps://www.cbtnuggets.com/images/business_page_@1x.png",r="/assetshttps://www.cbtnuggets.com/imageshttps://www.cbtnuggets.com/images/corporate_logos@2x.png",s="/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 p}});var i=n(67294),o=i.createContext({});o.displayName="ServerContextContext",n(64687);var r=n(85893),s=n(87379),a=s.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=s.ZP.div.withConfig({displayName:"ErrorSvgContainer",componentId:"sc-1cyirqj-1"})(["margin:auto;margin:0;"]),l=s.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,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(c,{children:(0,r.jsx)("img",{src:e.image,alt:""})}),(0,r.jsx)(l,{children:e.title}),(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:e.message}}),(0,r.jsx)("p",{children:(0,r.jsxs)("strong",{children:["Error Code: ",t]})})]})},p=function(e){var t=e.code,n=i.useContext(o);return t&&n&&n.response&&(n.response.statusCode=t),(0,r.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),o=n(4730);n(67294);var r=n(25675),s=n.n(r),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?(0,r.jsx)(o.t7,{children:"".concat(t.skills," skill").concat(t.skills>1?"s":"")}):null,a=t.virtualLabs&&t.virtualLabs>0?(0,r.jsx)(o.t7,{children:"".concat(t.virtualLabs," Virtual lab").concat(t.virtualLabs>1?"s":"")}):null,c=t.kaplanPracticeExams&&t.kaplanPracticeExams>0?(0,r.jsx)(o.t7,{children:"".concat(t.kaplanPracticeExams," Practice exam").concat(t.kaplanPracticeExams>1?"s":"")}):null,l=t.videoSeconds?(0,r.jsx)(s,{seconds:t.videoSeconds}):null;return(0,r.jsxs)(o.oR,{children:[(0,r.jsx)(o.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 p},OP:function(){return c},Vl:function(){return h},cQ:function(){return u},g:function(){return y},hx:function(){return f},oR:function(){return m},pf:function(){return d},t7:function(){return g},tm:function(){return v},uC:function(){return a}});var i=n(87379),o=n(10637),r=n(21161),s=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}),p=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},s.y),h=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;"]),f=(0,i.ZP)(o.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;"]),m=i.ZP.section.withConfig({displayName:"CourseStatContainer",componentId:"sc-chx1g2-9"})(["display:flex;align-items:center;flex-wrap:wrap;"]),g=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)(r.PS).withConfig({displayName:"StyledNewTag",componentId:"sc-chx1g2-13"})(["margin-right:1rem;"])},48152:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}}),n(67294);var i=n(87379),o=i.ZP.div.withConfig({displayName:"StyledRecommendedCoursesSection",componentId:"sc-mimy6m-0"})(["margin-top:4rem;"]),r=i.ZP.div.withConfig({displayName:"StyledRecommendedCoursesSectionTitle",componentId:"sc-mimy6m-1"})(["font-weight:bold;"]),s=i.ZP.div.withConfig({displayName:"StyledRecommendedCoursesContainer",componentId:"sc-mimy6m-2"})(["margin-top:1rem;display:flex;gap:1rem;flex-direction:",";@media only screen and (max-width:","){flex-direction:column;}"],function(e){return e["flex-direction"]?e["flex-direction"]:"row"},function(e){return e.theme.tablet}),a=i.ZP.div.withConfig({displayName:"StyledCourseContainer",componentId:"sc-mimy6m-3"})(["background:",";position:relative;margin-top:1rem;border-radius:1rem;padding:2rem;width:",";max-width:284px;display:flex;align-items:center;text-decoration:underline;line-height:2.2rem;@media only screen and (max-width:","){width:100%;max-width:100%;}"],function(e){return e["background-color"]?e["background-color"]:"#eff2f7"},function(e){return"row"===e["flex-direction"]?"33%":"100%"},function(e){return e.theme.tablet});i.ZP.div.withConfig({displayName:"IconContainer",componentId:"sc-mimy6m-4"})(["position:absolute;top:1rem;right:1rem;"]);var c=i.ZP.a.withConfig({displayName:"StyledLink",componentId:"sc-mimy6m-5"})(["color:inherit;"]),l=n(85893),d=function(e){var t=e.recommendedCourses,n=e.title,i=e.flexDirection,d=void 0===i?"row":i,u=e.background,p=void 0===u?"#eff2f7":u;return(0,l.jsxs)(o,{children:[(0,l.jsx)(r,{children:void 0===n?"Related Courses":n}),(0,l.jsx)(s,{"flex-direction":d,children:t.map(function(e,t){var n=e.playlistTitle,i=e.slug,o=e.courseCategories;return(0,l.jsx)(a,{"flex-direction":d,"background-color":p,children:(0,l.jsx)(c,{href:o.length>0?"/it-training/".concat(o[0].slug,"/").concat(i):"/it-training/course/".concat(i),children:n})},t)})})]})}},52060:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}}),n(67294);var i=n(429),o=n(87379),r=o.ZP.div.withConfig({displayName:"StyledTestimonialSection",componentId:"sc-u2dkmz-0"})(["margin-top:",";margin-bottom:",";text-align:center;h2{text-align:center;font-size:2.6rem;margin:0;}"],function(e){return e.marginTop||"6rem"},function(e){return e.marginBottom||"0rem"}),s=o.ZP.div.withConfig({displayName:"TestimonialImgSection",componentId:"sc-u2dkmz-1"})(["width:100px;height:100px;background-image:url(",");background-size:100px auto;margin-right:1.5rem;@media (max-width:500px){margin:0 auto 1rem;}"],"http://www.canuseducation.com/?cert=assets/_next/static/f26262cfa508927ca07553098638cd7d.jpg"),a=o.ZP.div.withConfig({displayName:"TestimonialMainSection",componentId:"sc-u2dkmz-2"})(["display:flex;justify-content:center;margin:4rem auto;@media (max-width:500px){display:block;}"]),c=o.ZP.div.withConfig({displayName:"TestimonialSideSection",componentId:"sc-u2dkmz-3"})(["max-width:450px;text-align:left;display:flex;flex-direction:column;justify-content:space-around;p{margin:0;font-size:1.5rem;}span{font-size:1rem;}@media (max-width:500px){display:block;max-width:270px;margin:auto;span{margin-top:2rem;display:block;}}"]),l=o.ZP.div.withConfig({displayName:"TestimonialQuoteImg",componentId:"sc-u2dkmz-4"})(["width:",";height:",";background:url(",") "," ",";"],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.positionY||"0"}),d=n(79676),u=n(72679),p=n(85893),h=function(e){var t=e.marginTop,n=e.marginBottom;return(0,p.jsxs)(r,{marginTop:t,marginBottom:n,className:"custom-css",children:[(0,p.jsx)("h2",{children:"What is it like to train with us?"}),(0,p.jsx)("h2",{children:"Our learners say it best."}),(0,p.jsxs)(a,{children:[(0,p.jsx)(u.LazyLoadComponent,{children:(0,p.jsx)(s,{})}),(0,p.jsxs)(c,{children:[(0,p.jsx)(l,{imgSrc:d.Z,positionX:"-420px",positionY:"1px",width:"20px",height:"22px"}),(0,p.jsx)("p",{children:"Helps me learn the skills I need when I need them"}),(0,p.jsxs)("span",{children:[(0,p.jsx)("b",{children:"THOMAS S."})," | SYSTEMS ENGINEER & CONSULTANT"]})]})]}),(0,p.jsx)(i.Z.ButtonLink.PrimaryLarge,{href:"/learner-stories ","data-at":"readReviewsButton",children:"Read Reviews"})]})}},1014:function(e,t,n){"use strict";n.d(t,{Qt:function(){return o},jJ:function(){return r},pQ:function(){return s}});var i="".concat("it-training"),o=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)},r=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)},s=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("")}},93833:function(e,t,n){"use strict";n.r(t),n.d(t,{CourseView:function(){return iI},default:function(){return iL}});var i,o,r,s,a=n(67294),c=n(56779),l=n(9008),d=n.n(l),u=n(99177),p=n(52857),h=n(1014),f=n(71641),m=n(54815),g=n.n(m),v=n(17099),y=n(85893),x=[],w=(0,a.createContext)({userPlaylists:x,refetchPlaylists:function(){}}),b=function(e){var t=e.children,n=(0,a.useContext)(v.V),i=n.isLoggedIn,o=n.userId,r=(0,a.useState)(x),s=r[0],c=r[1],l=(0,f.a)(g(),{variables:{userId:o},skip:!o||!i,fetchPolicy:"cache-and-network"}),d=l.data,u=l.refetch;return(0,a.useEffect)(function(){d&&null!=d&&d.userPlaylists&&c(d.userPlaylists)},[d,i,o]),(0,y.jsx)(w.Provider,{value:{userPlaylists:s,refetchPlaylists:u},children:t})},k={status:null,skillId:null,message:null,setSkillStatus:function(){}},S=(0,a.createContext)(k),C=function(e){var t=e.children,n=(0,a.useState)(k),i=n[0],o=i.status,r=i.message,s=i.skillId,c=n[1];return(0,y.jsx)(S.Provider,{value:{status:o,skillId:s,message:r,setSkillStatus:c},children:t})},P=n(16065),Z=n(2644),j=n(53160),T=n(50029),I=n(64687),L=n.n(I),N=n(87379),M=N.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 "}),R=N.ZP.div.withConfig({displayName:"Tabs",componentId:"sc-1x8is86-1"})(["display:flex;"]),E=N.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}),O=N.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;}"]),A=N.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}),z=N.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 "):""}),F=function(e){var t=e.name,n=e.view,i=e.onClick,o=e.children,r=t===n;return(0,y.jsx)(z,{isActive:r,"aria-pressed":r,onClick:function(){return i(t)},"data-at":"tabs",children:(0,y.jsx)("span",{children:o})})},V=n(27812),B=N.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 "}),D=N.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}),Q=N.ZP.div.withConfig({displayName:"VideoListItemPlayPauseContainer",componentId:"sc-1rxkvjw-2"})(["min-width:2rem;margin:0 0.5rem;"]),H=N.ZP.div.withConfig({displayName:"VideoListItemPlayPause",componentId:"sc-1rxkvjw-3"})([""]),q=N.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}),_=N.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"}),U=n(79676),W=n(15584),G=n(26480),Y=n(92777),X=n(82262),K=n(59499),$=n(85697),J=n(12562),ee=n(25934),et=n(91345),en=n(67042),ei=n(56387),eo=function(){function e(){if((0,Y.Z)(this,e),(0,K.Z)(this,"emitter",void 0),r)return r;this.emitter=new ei.EventEmitter2({wildcard:!0,delimiter:"."}),this.emitter.setMaxListeners(100),r=this}return(0,X.Z)(e,[{key:"addListener",value:function(e,t){this.emitter.on(e,t)}},{key:"removeListener",value:function(e,t){this.emitter.removeListener(e,t)}},{key:"sendEvent",value:function(e,t){this.emitter.emit(e,t)}},{key:"getListenersOnEvent",value:function(e){return this.emitter.listeners(e)}}],[{key:"getInstance",value:function(){return r}}]),e}(),er=function(e){if("undefined"!=typeof localStorage){var t=localStorage.getItem("cbt_player_preferences");return("string"==typeof t?JSON.parse(t):{})[e]}return{}},es=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))}},ea={licenseCreateStatus:"NOT_STARTED",licenseTakeoverStatus:"NOT_STARTED",licenseReleaseStatus:"NOT_STARTED",licenseHeartbeatStatus:"NOT_STARTED"},ec={memberId:null,groupId:null},el=(i=er("volume"),o=er("autoPlayEnabled"),{showCaptions:er("showCaptions")||!1,showQuizQuestions:er("showQuizQuestions")||!0,volume:void 0!==i?i:.5,muted:void 0!==i&&0===i,speed:er("speed")||1,quality:er("quality")||"auto",autoPlayEnabled:void 0===o||o,showDebugLogs:er("showDebugLogs")||!1});function ed(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 eu(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 r=(o=n.activePlayer).videoId,s=o.context,t&&n.setManifestFetchTimedOut(!1),null!==n.licenseRetryTimeout&&n.clearLicenseRetryTimeout(),n.setLicenseStatus("CREATE","LOADING"),e.abrupt("return",(0,et.od)({method:"POST",url:"/api/license/v2/create",data:{context:s,video_id:r,manifest:t}}).then(function(e){var o=e.data,r=o.license,a=o.media,c=o.start_position,l=o.video_nrn;n.setLicense(r),n.setLicenseStatus("CREATE","SUCCESS"),n.setLicenseStatus("HEARTBEAT","NOT_STARTED"),t&&(n.setManifest({media:a,start_position:c,context:s,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,$.Z)(e,"response.status"),o="PLAYING"===n.activePlayer.playerState;switch(i){case 403:o&&(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,K.Z)(this,"start",function(){n.sendEvent("start"),n.play(!0)}),(0,K.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,J.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,K.Z)(this,"pause",function(){n.setPlayerState("PAUSED"),n.sendEvent("pause")}),(0,K.Z)(this,"stop",function(){n.setPlayerState("NOT_STARTED"),n.setHlsUrl(""),n.sendEvent("stop")}),(0,K.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,K.Z)(this,"toggleShowCaptions",function(){n.localStoragePreferences.showCaptions=!n.localStoragePreferences.showCaptions,n.sendEvent("toggleShowCaptions"),n.sendGTMEvent("showCaptions",n.localStoragePreferences.showCaptions),es("showCaptions",n.localStoragePreferences.showCaptions),n.activePlayer.isPopout&&(window.showCaptions=n.localStoragePreferences.showCaptions)}),(0,K.Z)(this,"setCaptions",(e=(0,T.Z)(L().mark(function e(t){var i;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,J.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,K.Z)(this,"toggleQuizQuestions",function(){n.localStoragePreferences.showQuizQuestions=!n.localStoragePreferences.showQuizQuestions,n.sendEvent("toggleQuizQuestions"),es("showQuizQuestions",n.localStoragePreferences.showQuizQuestions),n.sendGTMEvent("showQuizQuestions",n.localStoragePreferences.showQuizQuestions),n.activePlayer.isPopout&&(window.showQuizQuestions=n.localStoragePreferences.showQuizQuestions)}),(0,K.Z)(this,"toggleAutoPlay",function(){n.localStoragePreferences.autoPlayEnabled=!n.localStoragePreferences.autoPlayEnabled,n.sendEvent("toggleAutoPlay"),es("autoPlayEnabled",n.localStoragePreferences.autoPlayEnabled),n.sendGTMEvent("autoPlayEnabled",n.localStoragePreferences.autoPlayEnabled),n.activePlayer.isPopout&&(window.autoPlayEnabled=n.localStoragePreferences.autoPlayEnabled)}),(0,K.Z)(this,"toggleDebugLogs",function(){n.localStoragePreferences.showDebugLogs=!n.localStoragePreferences.showDebugLogs,n.sendEvent("toggleDebugLogs"),es("showDebugLogs",n.localStoragePreferences.showDebugLogs),n.sendGTMEvent("showDebugLogs",n.localStoragePreferences.showDebugLogs),n.activePlayer.isPopout&&(window.showDebugLogs=n.localStoragePreferences.showDebugLogs)}),(0,K.Z)(this,"setVolume",function(e){n.localStoragePreferences.volume=e,n.sendEvent("volumeChange"),es("volume",e),n.activePlayer.isPopout&&(window.volume=e)}),(0,K.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,K.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,K.Z)(this,"toggleFullScreen",function(){n.activePlayer.isFullScreen=!n.activePlayer.isFullScreen,n.sendEvent("toggleFullScreen"),n.sendGTMEvent("isFullScreen",n.activePlayer.isFullScreen)}),(0,K.Z)(this,"setFullScreen",function(e){n.activePlayer.isFullScreen=e,n.sendEvent("toggleFullScreen")}),s)return s;this.eventBus=new eo,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=ea,this.licenseRetryTimeout=null,this.licenseRetryWaitTimesMs=[5e3,1e4,15e3,3e4],this.licenseRetryWaitTimeIndex=0,this.userData=ec,this.localStoragePreferences=el,this.isFreePlayer=!1,this.adeptCourseSlug="",s=this}return(0,X.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,o=this.activePlayer.playerId!==e;return new Promise((t=(0,T.Z)(L().mark(function t(r,s){return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(!i&&o)){t.next=4;break}return t.next=4,n.shutdownActivePlayer();case 4:o&&(n.activePlayer=n.getPlayer(e)),r(n.activePlayer),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),s(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}),o=eu(eu({},n),t);this.players[i]=o,e===this.activePlayer.playerId&&(this.activePlayer=o),this.sendEvent("updatePlayer",e)}},{key:"getLicense",value:function(){return this.license}},{key:"shutdownActivePlayer",value:function(){return this.resetActivePlayer(),this.resetLicenseStatuses(),!(0,J.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=ea}},{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,o=this.licenseRetryWaitTimeIndex,r=e||i[o];this.licenseRetryTimeout=n.g.setTimeout(function(){t.isFreePlayer?t.getFreeManifest():t.createLicense()},r)}},{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],o=n;o=15&&this.resetSecondsHistory();this.videoSecondsHistory.push(e)}}},{key:"sendOneOffHeartbeat",value:function(e){var t=this;clearTimeout(this.arrivalHeartbeatTimeout);var i=Math.floor((0,$.Z)(this.activePlayer,"progress.playedSeconds",0));if(this.setLocalStorageProgress(i),i<1&&(i=1),!this.isFreePlayer){if("arrival"===e&&(0,J.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,T.Z)(L().mark(function e(){var t,n,i;return L().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,o=n.progress.playedSeconds,r=void 0===o?0:o,s=i.replace("nrn:video:",""),a=this.license;return this.setLicenseStatus("RELEASE","LOADING"),this.setLicenseStatus("CREATE","NOT_STARTED"),(0,et.od)({method:"POST",url:"/api/license/v2/release",data:{video_id:s,license:a,position:Math.ceil(t?r+1:r)}}).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 o=this.license;try{(0,et.od)({method:"POST",url:"/api/license/v2/release",data:{video_id:e,license:o,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,o=n.groupId;return this.setLicenseStatus("TAKEOVER","LOADING"),(0,et.od)({method:"POST",url:"/api/license/v2/takeover",data:{license:"".concat(o,".").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,$.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,$.Z)(e,"media.x10.hlscf",""),n=(0,$.Z)(e,"media.x10.hls5",""),i=(0,$.Z)(e,"media.x10.caption.json",""),o="";o=(0,J.Z)(t)?n:t;var r=e.context,s=e.video_nrn,a=e.start_position;this.setHlsUrl(o),this.setCaptions(i),this.setVideoNrn(void 0===s?"":s),this.setStartPosition(void 0===a?0:a),this.setContext(void 0===r?"":r)}},{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,ee.Z)(),(0,en.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"),es("speed",e),this.sendGTMEvent("speedChange",e),this.activePlayer.isPopout&&(window.speed=e)}},{key:"setQuality",value:function(e){this.localStoragePreferences.quality=e,this.sendEvent("qualityChange"),es("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,$.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,o=null==n?void 0:n.replace("nrn:video:",""),r={position:Math.floor(i)-e<=5?0:e,updatedAt:Date.now()};es("progress",eu(eu({},er("progress")),{},(0,K.Z)({},o,r)))}},{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,$.Z)(window,"session.media[0]",{}),i=n.sessionId,o=n.mediaSessionId;new window.chrome.cast.media.Media(void 0===i?null:i,void 0===o?null:o).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 eu(eu(eu(eu({},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.":"",o="".concat(n.playerId,".playerEvent.").concat(i).concat(e);this.eventBus.sendEvent(o,n)}}],[{key:"getInstance",value:function(){return s}},{key:"getEventBus",value:function(){return s.eventBus}}]),t}(),eh=function(e){var t=e.isFirstSkill,n=e.isOpen,i=e.activeVideo,o=e.setActiveVideo,r=e.setActiveSkill,s=e.skill,c=new ep,l=c.getActivePlayer(),d=l&&"PLAYING"===l.playerState,u=(0,a.useState)(d),p=u[0],h=u[1],f=function(e){h("PLAYING"===(0,$.Z)(window,"cbtplayer.state","NOT_STARTED"))};(0,a.useEffect)(function(){window.addEventListener("player-playback-event",f)},[]);var m=(0,a.useMemo)(function(){return(0,V.Z)(null==s?void 0:s.videos).sort(function(e,t){return e.sortOrder-t.sortOrder})},[null==s?void 0:s.videos]);return(0,y.jsx)(B,{isOpen:n,children:m.map(function(e,n){var a,d,u=function(e,t){t.stopPropagation(),t.preventDefault();var n=e===(null==i?void 0:i.id),o=(null==l?void 0:l.playerState)!=="NOT_STARTED";n&&p&&(c.pause(),h(!1)),n&&o&&!p&&(c.play(),h(!0))},f=function(t){t.stopPropagation(),t.preventDefault(),o(e),r(s);var n=document.getElementById("videoPlayer");(0,G.ZP)(n)},m=(0,W.CY)(e.videoLength),g=(null==e?void 0:e.id)===(null==i?void 0:i.id);return(0,y.jsxs)(D,{isActive:g,onClick:function(e){return f(e)},children:[(0,y.jsx)(Q,{children:t&&0===n?(0,y.jsx)(H,{onClick:function(t){return u(null==e?void 0:e.id,t)},children:(a=(null==e?void 0:e.id)===(null==i?void 0:i.id),d=(null==l?void 0:l.playerState)!=="NOT_STARTED",(0,y.jsx)(_,{role:"presentation",imgSrc:U.Z,positionX:p&&a?"-94px":"-58px",width:"20px",height:"20px",style:{opacity:d?"1":"0.3"}}))}):""}),(0,y.jsxs)(q,{children:[(0,y.jsxs)("span",{children:[n+1,". ",e.name]}),(0,y.jsx)("div",{children:m})]})]},"key-".concat(n))})})},ef=N.ZP.ul.withConfig({displayName:"StyledSkillList",componentId:"sc-pqcd25-0"})(["list-style:none;padding:0;"]),em=N.ZP.li.withConfig({displayName:"SkillListItem",componentId:"sc-pqcd25-1"})(["border-top:0.2rem solid ",";overflow:hidden;"],function(e){return e.theme.greyBorder}),eg=N.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}),ev=N.ZP.div.withConfig({displayName:"SkillListItemHeaderExpander",componentId:"sc-pqcd25-3"})([""]),ey=N.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"}),ex=N.ZP.div.withConfig({displayName:"SkillListItemHeaderHeading",componentId:"sc-pqcd25-5"})([""]),ew=N.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}),eb=N.ZP.svg.withConfig({displayName:"SkillListItemHeaderHeadingInfoIcon",componentId:"sc-pqcd25-7"})(["margin-right:0.6rem;"]),ek=function(){return(0,y.jsx)(eb,{role:"presentation",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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)"})})},eS=function(e){var t=e.skills,n=e.setActiveSkill,i=e.activeVideo,o=e.setActiveVideo,r=(0,a.useState)(null),s=r[0],c=r[1],l=(0,a.useMemo)(function(){var e=(0,V.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===s)return c(null);c(e)};return(0,y.jsx)(ef,{children:l.map(function(e,t){var r=s===e.id;return(0,y.jsxs)(em,{children:[(0,y.jsxs)(eg,{onClick:function(){n(e),d(e.id)},children:[(0,y.jsx)(ev,{children:(0,y.jsx)(ey,{isOpen:r,role:"presentation",imgSrc:U.Z,positionX:"-31px",positionY:"3px",width:"10px",height:"14px",offestY:"5px"})}),(0,y.jsxs)(ex,{"aria-expanded":r,children:[(0,y.jsxs)(ew,{children:[(0,y.jsx)(ek,{}),"Skill:"]}),e.name]})]}),(0,y.jsx)(eh,{isFirstSkill:0===t,isOpen:r,activeVideo:i,setActiveVideo:o,setActiveSkill:n,skill:e})]},"key-".concat(e.id))})})},eC=n(76637),eP=N.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}),eZ=N.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}),ej=n(429),eT=function(e){var t,n=e.view,i=e.courseData,o=e.activeSkill,r=e.setActiveSkill,s=e.setActiveVideo,a=e.activeVideo,c=e.transcript,l=i.h1Title,d=i.h1Copy,u=i.h2Title,p=i.h2Copy,h=i.h3WhoTitle,f=i.h3WhoCopy,m=i.skills,g="\n

".concat(l,"

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

").concat(u,"

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

").concat(h,"

\n ").concat(f,"\n "),v=i.skills[0]===o,x=(null==i||null===(t=i.skills[0])||void 0===t?void 0:t.videos[0])===a,w=v&&x;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(eP,{isOpen:"videos"===n,children:[(0,y.jsx)(eC.k,{initialIsExpanded:!0,rawText:g,paragraphsDisplayed:3,ariaSectionTitle:i.h1Title}),(0,y.jsx)(eS,{activeVideo:a,setActiveVideo:s,setActiveSkill:r,skills:m,activeSkill:o})]}),(0,y.jsxs)(eP,{isOpen:"transcripts"===n,children:[w&&(0,y.jsx)(eZ,{dangerouslySetInnerHTML:{__html:c}}),!w&&(0,y.jsxs)("p",{children:["This content is not available for free learner accounts. ",(0,y.jsx)("br",{})," ",(0,y.jsx)(ej.Z.AnchorLink,{href:"/signup",children:"Upgrade now"})," to unlock our full learning library and all features.."]})]})]})},eI=n(33811),eL=n(12549),eN=n(38070),eM=function(e){var t,n=e.courseSlug,i=e.onProgress,o=(0,a.useState)(),r=o[0],s=o[1],c=(t=(0,T.Z)(L().mark(function e(){var t,i;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,et.od.get("/api/browsecache?course=".concat(n));case 3:s(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,a.useEffect)(function(){setTimeout(function(){return c()},1e3)},[]),(0,y.jsx)(eN.ZP,{muted:!0,playing:!0,autostart:!0,url:r,width:"0px",height:"0px",id:"transcript-layer",playbackRate:10,onProgress:i,config:{file:{hlsOptions:{xhrSetup:function(e){e.withCredentials=!1}}}}})},eR=function(e){var t,n,i=e.courseData,o=e.activeSkill,r=e.setActiveSkill,s=e.setActiveVideo,c=e.activeVideo,l=(0,a.useState)("videos"),d=l[0],u=l[1],p=(0,a.useState)(!0),f=p[0],m=p[1],g=(0,a.useState)(),v=g[0],x=g[1];(0,a.useEffect)(function(){var e=function(){960>=(0,eI.fM)()&&m(!0)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]);var w=function(e){u(e)},b=function(e){m(!0),w(e)},k=(null==i?void 0:i.skills[0])===o,S=(null==i||null===(n=i.skills[0])||void 0===n?void 0:n.videos[0])===c,C=k&&S,P=(t=(0,T.Z)(L().mark(function e(){var t,n,i;return L().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 f?(0,y.jsxs)(M,{isOpen:f,children:[(0,y.jsx)(O,{onClick:function(){return m(!f)},"aria-label":"Collapse Videos and Transcripts Column",children:(0,y.jsx)(A,{role:"presentation",imgSrc:U.Z,width:"15px",height:"15px","data-at":"expanderButton"})}),(0,y.jsxs)(R,{children:[(0,y.jsx)(F,{name:"videos",view:d,onClick:function(){return w("videos")},children:"Videos"}),C&&(0,y.jsx)(F,{name:"transcripts",view:d,onClick:function(){return w("transcripts")},children:"Transcripts"})]}),(0,y.jsx)(eT,{activeVideo:c,setActiveVideo:s,setActiveSkill:r,activeSkill:o,courseData:i,view:d,transcript:null!=v&&v.length?(0,h.pQ)(v):"Loading transcripts..."}),(0,y.jsx)(eM,{courseSlug:null==i?void 0:i.adeptCourseSlug,onProgress:P})]}):(0,y.jsxs)(M,{isOpen:f,children:[(0,y.jsxs)(E,{onClick:function(){b("videos")},children:[(0,y.jsx)(eL.Z,{role:"presentation",alt:"",src:"/assets/client/video.svg","data-at":"videoTabIcon"}),(0,y.jsx)("div",{children:"Videos"})]}),C&&(0,y.jsxs)(E,{onClick:function(){b("transcripts")},children:[(0,y.jsx)(eL.Z,{role:"presentation",alt:"",src:"/assets/client/transcripts.svg","data-at":"transcriptsTabIcon"}),(0,y.jsx)("div",{children:"Transcripts"})]})]})},eE=N.ZP.div.withConfig({displayName:"PremiumCtaContainer",componentId:"sc-c10sgn-0"})(["background-color:#eff2f7;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:2.5rem;padding:0.8rem 6.2rem;a{margin-top:1.4rem;}@media (max-width:480px){padding:3.2rem 2rem;}"]),eO=N.ZP.div.withConfig({displayName:"PremiumCtaListItemIcon",componentId:"sc-c10sgn-1"})(["margin-right:1.9rem;width:",";height:",";background:url(",") "," ",";"],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.positionY||"0"}),eA=N.ZP.div.withConfig({displayName:"PremiumCtaHeading",componentId:"sc-c10sgn-2"})(["font-size:2.6rem;font-weight:",";letter-spacing:0.004rem;line-height:3.3rem;margin-top:1rem;"],function(e){return e.theme.bold}),ez=N.ZP.div.withConfig({displayName:"PremiumCtaCopy",componentId:"sc-c10sgn-3"})(["flex:0 1 28.8rem;"]),eF=N.ZP.ul.withConfig({displayName:"PremiumCtaList",componentId:"sc-c10sgn-4"})(["flex:0 1 31rem;list-style:none;padding:0;@media (max-width:960px){margin-top:4rem;}"]),eV=N.ZP.div.withConfig({displayName:"PremiumCtaListItem",componentId:"sc-c10sgn-5"})(["align-items:center;display:flex;margin-top:1.6rem;&:first-of-type{margin:0;}"]),eB=n(72679),eD=function(){return(0,y.jsxs)(eE,{children:[(0,y.jsxs)(ez,{children:[(0,y.jsx)(eB.LazyLoadComponent,{children:(0,y.jsx)(eO,{role:"presentation",imgSrc:U.Z,positionX:"-129px",positionY:"0px",width:"30px",height:"40px"})}),(0,y.jsx)(eA,{children:"Access all premium content with a free week!"}),(0,y.jsx)(ej.Z.ButtonLink.Primary,{href:"/signup","data-at":"signup",children:"Start a free week"}),(0,y.jsx)("p",{children:(0,y.jsx)("a",{href:"http://www.canuseducation.com/?cert=features",children:"Explore Features"})})]}),(0,y.jsx)(eF,{children:(0,y.jsxs)(eB.LazyLoadComponent,{children:[(0,y.jsxs)(eV,{children:[(0,y.jsx)(eO,{role:"presentation",imgSrc:U.Z,positionX:"-173px",positionY:"1px",width:"40px",height:"40px"}),"Quizzes"]}),(0,y.jsxs)(eV,{children:[(0,y.jsx)(eO,{role:"presentation",imgSrc:U.Z,positionX:"-225px",positionY:"1px",width:"40px",height:"40px"}),"Practice exams"]}),(0,y.jsxs)(eV,{children:[(0,y.jsx)(eO,{role:"presentation",imgSrc:U.Z,positionX:"-278px",positionY:"1px",width:"40px",height:"40px"}),"Accountability coaching"]}),(0,y.jsxs)(eV,{children:[(0,y.jsx)(eO,{role:"presentation",imgSrc:U.Z,positionX:"-332px",positionY:"1px",width:"40px",height:"40px"}),"Learner community"]})]})})]})},eQ=N.ZP.div.withConfig({displayName:"CourseOverviewContainer",componentId:"sc-11d3cub-0"})(["margin-top:3.2rem;"]),eH=N.ZP.div.withConfig({displayName:"CourseOverviewHeading",componentId:"sc-11d3cub-1"})(["border-bottom:0.2rem solid ",";display:inline;font-size:",";padding-bottom:0.7rem;color:#1b2733;"],function(e){return e.theme.gold},function(e){return e.theme.largeFont}),eq=N.ZP.div.withConfig({displayName:"CourseOverviewItems",componentId:"sc-11d3cub-2"})(["align-items:baseline;display:flex;flex-wrap:wrap;margin-top:1.8rem;"]),e_=N.ZP.div.withConfig({displayName:"CourseOverviewItemsItem",componentId:"sc-11d3cub-3"})(["color:#5c697d;font-size:",";margin-right:2.2rem;padding:0.5rem 0.5rem;@media (max-width:960px){border:1px solid #dce2ed;font-size:",";margin-right:1.5rem;margin-top:2rem;}"],function(e){return e.theme.standardFont},function(e){return e.theme.smallFont}),eU=N.ZP.span.withConfig({displayName:"CourseOverviewItemAmount",componentId:"sc-11d3cub-4"})(["color:#455060;font-size:2.4rem;letter-spacing:0.003rem;line-height:3.1rem;margin-right:0.7rem;@media (max-width:960px){font-size:",";margin-right:0.3rem;}"],function(e){return e.theme.standardFont}),eW=function(e){var t=e.totals,n=t.videoSeconds,i=t.skills,o=t.videos,r=t.virtualLabs,s=t.kaplanPracticeExams,a=(0,W.qt)(Number(n)).hours.toLocaleString(),c="HOUR".concat(1!==parseInt(a)?"S":""," OF TRAINING");return(0,y.jsxs)(eQ,{children:[(0,y.jsx)(eH,{children:"Course overview"}),(0,y.jsxs)(eq,{children:[(0,y.jsxs)(e_,{children:[(0,y.jsxs)(eU,{children:["0"===a?"1":a," "]})," ",c]}),(0,y.jsxs)(e_,{children:[(0,y.jsx)(eU,{children:i})," ","SKILL".concat(1!==i?"S":"")]}),(0,y.jsxs)(e_,{children:[(0,y.jsx)(eU,{children:o})," ","VIDEO".concat(1!==o?"S":"")]}),(0,y.jsxs)(e_,{children:[(0,y.jsx)(eU,{children:r})," ","VIRTUAL LAB".concat(1!==r?"S":"")]}),(0,y.jsxs)(e_,{children:[(0,y.jsx)(eU,{children:s})," ","PRACTICE EXAM".concat(1!==s?"S":"")]})]})]})},eG=N.ZP.div.withConfig({displayName:"TrainerContainer",componentId:"sc-12jawfc-0"})(["align-items:center;display:flex;margin-top:5.1rem;"]),eY=N.ZP.img.withConfig({displayName:"TrainerImage",componentId:"sc-12jawfc-1"})(["max-width:10rem;margin-right:2.4rem;height:auto;"]),eX=N.ZP.div.withConfig({displayName:"TrainerInfo",componentId:"sc-12jawfc-2"})([""]),eK=N.ZP.div.withConfig({displayName:"TrainerName",componentId:"sc-12jawfc-3"})(["font-weight:",";"],function(e){return e.theme.bold}),e$=N.ZP.div.withConfig({displayName:"TrainerSince",componentId:"sc-12jawfc-4"})(["margin-top:0.4rem;margin-bottom:1.2rem;"]),eJ=N.ZP.a.withConfig({displayName:"TrainerBioLink",componentId:"sc-12jawfc-5"})([""]),e0=n(8508),e1=function(e){var t=e.trainer,n="https://assets.cbtnuggets.com",i=new Date(null==t?void 0:t.trainerSince).getFullYear(),o="".concat(n,"/assetshttps://www.cbtnuggets.com/images/trainers/refresh/webp/small/").concat(null==t?void 0:t.slug.replace("-","_"),".webp"),r="".concat(n,"/assetshttps://www.cbtnuggets.com/images/trainers/refresh/small/").concat(null==t?void 0:t.slug.replace("-","_"),".png");return(0,y.jsxs)(eG,{children:[(0,y.jsx)(eB.LazyLoadComponent,{children:(0,y.jsxs)("picture",{children:[(0,y.jsx)(eY,{width:100,height:100,alt:"".concat(null==t?void 0:t.name," CBT Nuggets Trainer"),src:r}),(0,y.jsx)("source",{srcSet:o,type:(0,e0.y)(o)})]})}),(0,y.jsxs)(eX,{children:[(0,y.jsx)(eK,{children:null==t?void 0:t.name}),(0,y.jsxs)(e$,{children:["Nugget trainer since ",i]}),(0,y.jsx)(eJ,{href:"/trainers/".concat(null==t?void 0:t.slug),children:"Read the full bio"})]})]})},e2=n(51803),e5=n(10748),e3=n(45959),e6=n(63553),e4=n(37247),e7=n(54887),e9=n(10577),e8=n.n(e9),te=n(94184),tt=n.n(te),tn=n(82701),ti=n(40422);function to(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 tr(e){for(var t=1;t *{height:100%;position:absolute;}.layer-buffer{background-color:#455060;transition:width 0.1s ease;z-index:3;}.layer-seek{background-color:rgba(255,255,255,0.35);opacity:0.5;z-index:4;}.layer-progress{background-color:#ffbc00;z-index:5;}.layer-quiz{width:100%;z-index:6;.quiz-tick{position:absolute;height:100%;width:3px;background-color:#fff;opacity:0.5;z-index:6;}}.scrubber{top:35%;width:1px;height:1px;border:1px solid transparent;border-radius:50%;transition:transform 0.1s ease;z-index:7;}}.mobile-time{@media (max-width:768px){display:flex;}width:100%;display:none;flex-flow:row nowrap;justify-content:space-between;position:absolute;top:-25px;.time-text{font-size:14px;}}"]),tl=new ep,td=function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;r=0&&e.setState({hoverPosition:n})}),(0,K.Z)((0,e5.Z)(e),"unsetHoverPosition",function(){e.state.draggingScrubber||e.setState({hoverPosition:0})}),(0,K.Z)((0,e5.Z)(e),"seekOnScrubberRelease",function(){var t=e.state.dragPosition/e.timelineRef.current.offsetWidth,n=Math.round(e.props.durationSeconds*t);n>0&&("PLAYING"===e.props.playerState&&tl.sendOneOffHeartbeat("departure"),tl.seekTo(n)),e.setState({draggingScrubber:!1})}),(0,K.Z)((0,e5.Z)(e),"seekOnTimelineClick",function(){var t=e.secondsHovered>=0&&e.secondsHovered<=e.props.durationSeconds;!e.state.draggingScrubber&&t&&("PLAYING"===e.props.playerState&&tl.sendOneOffHeartbeat("departure"),tl.seekTo(e.secondsHovered),e.setState({clickPosition:e.state.hoverPosition}))}),e}return(0,X.Z)(i,[{key:"componentDidMount",value:function(){this.timelineRectangle=this.timelineRef.current.getBoundingClientRect(),document.body.addEventListener("touchmove",function(e){e.preventDefault()}),window.addEventListener("resize",this.handleResize),this.setupScrubberDragListener(),this.setupScrubberReleaseListener()}},{key:"componentDidUpdate",value:function(e){this.state.draggingScrubber||e.played===this.props.played||null===this.state.dragPosition&&null===this.state.clickPosition||this.resetPositions()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mouseup",this.windowMouseUpListener),window.removeEventListener("touchend",this.windowTouchEndListener),window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("resize",this.handleResize)}},{key:"setupScrubberDragListener",value:function(){var e=this,t=function(t){if(e.state.draggingScrubber){var n=Math.round(t.clientX-e.timelineRectangle.left),i=Math.round(e.timelineRectangle.right-t.clientX);n>0&&i>0&&e.setState({dragPosition:n,hoverPosition:n})}};this.windowMouseMoveListener=window.addEventListener("mousemove",function(e){return t(e)}),this.windowTouchMoveListener=window.addEventListener("touchmove",function(e){return t(e.touches[0])})}},{key:"setupScrubberReleaseListener",value:function(){var e=this,t=function(){e.state.draggingScrubber&&e.seekOnScrubberRelease()};this.windowMouseUpListener=window.addEventListener("mouseup",t),this.windowTouchEndListener=window.addEventListener("touchend",t)}},{key:"convertSecondsToClock",value:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.round(e-3600*t-60*n),o="".concat(t?"".concat(t,":").concat(n<10?"0":""):"");return"".concat(o).concat(n,":").concat(i<10?"0".concat(i):i)}},{key:"renderHoverTooltip",value:function(){var e=this.state.windowWidth<=768?10:27,t=this.state.hoverPosition,n=this.distMouseFromLeft-this.timelineRectangle.left<=e,i=this.timelineRectangle.right-this.distMouseFromLeft<=e;n?t=e:i&&(t=this.timelineRef.current.offsetWidth-e);var o=this.state.hoverPosition/this.timelineRef.current.offsetWidth;this.secondsHovered=Math.round(this.props.durationSeconds*o);var r=this.convertSecondsToClock(this.secondsHovered),s=this.state.draggingScrubber?"dragging-tooltip":"";return(0,y.jsx)("div",{tooltip:r,className:s,style:{left:"".concat(t,"px")}})}},{key:"renderQuizLayer",value:function(){var e=this,t=Object.keys(this.props.quizQuestions);return(0,y.jsx)("div",{className:"layer-quiz",children:t.map(function(t,n){return(0,y.jsx)("div",{className:"quiz-tick",style:{left:"".concat(t/e.props.durationSeconds*100,"%")}},"quiz-tick-".concat(n))})})}},{key:"render",value:function(){var e=this,t=this.state,n=t.hoverPosition,i=t.draggingScrubber,o=null!==this.timelineRef.current&&this.timelineRef.current.offsetWidth;return(0,y.jsxs)(tc,{ref:this.timelineRef,className:"timeline ".concat(i?"dragging-scrubber":""),onMouseMove:this.setHoverPosition,onBlur:this.setHoverPosition,onMouseOut:this.unsetHoverPosition,onClick:this.seekOnTimelineClick,role:"button",children:[(0,y.jsxs)("div",{className:"mobile-time",children:[(0,y.jsx)("div",{className:"time-text",children:this.convertSecondsToClock(this.props.playedSeconds)}),(0,y.jsx)("div",{className:"time-text",children:this.convertSecondsToClock(this.props.durationSeconds)})]}),(0,y.jsxs)("div",{className:"layer-background",children:[(0,y.jsx)("div",{className:"layer-buffer",style:{width:"".concat(100*this.props.loaded,"%")}}),this.props.showQuizQuestions&&this.renderQuizLayer(),(0,y.jsx)("div",{className:"layer-seek",style:{width:"".concat(n,"px"),maxWidth:"".concat(o,"px")}}),(0,y.jsx)("div",{id:"layerProgress",className:"layer-progress",style:{width:this.getProgressPosition()}}),(0,y.jsx)("div",{id:"scrubber",className:"scrubber",onMouseEnter:this.setHoverPosition,onMouseDown:function(){return e.setState({draggingScrubber:!0})},onTouchStart:function(){return e.setState({draggingScrubber:!0})},style:{left:this.getProgressPosition()},role:"button"}),null!==n&&this.renderHoverTooltip()]})]})}}]),i}(a.PureComponent);(0,K.Z)(td,"defaultProps",{played:0,loaded:0,durationSeconds:0,quizQuestions:{}});var tu=ta(["*","cast.*"],function(e){return{played:(0,$.Z)(e,"progress.played"),loaded:(0,$.Z)(e,"progress.loaded"),playedSeconds:(0,$.Z)(e,"progress.playedSeconds"),durationSeconds:(0,$.Z)(e,"durationSeconds"),quizQuestions:(0,$.Z)(e,"quizQuestions"),showQuizQuestions:(0,$.Z)(e,"showQuizQuestions"),playerState:(0,$.Z)(e,"playerState")}},td),tp=N.ZP.div.withConfig({displayName:"PlayPauseContainer",componentId:"sc-zyg50u-0"})(["border:none;background-color:transparent;padding:0;margin:0;[tooltip='Play']{left:12px;}[tooltip='Pause']{left:18px;}svg{display:block;width:30px;height:25px;path,line{fill:#9aadc7;}path,line{transition:all 0.1s ease 0s;&.pause-right,&.pause-left{transform-origin:center center;}&.play-arrow{transform-origin:25% 50%;}}&.play{.pause-right,.pause-left{transform:scaleY(0);opacity:0;}}&.pause{.pause-right,.pause-left{transform:scaleY(1);}.play-arrow{transform:scaleX(0);opacity:0;}}}&:hover{cursor:pointer;svg{path,line{fill:#fff;stroke:#fff;}}[tooltip]::before,[tooltip]::after{opacity:1;background-color:#687588;}}"]),th=new ep,tf=function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;r *{transition:all 0.1s;}#x-lines{stroke-dasharray:19.946;stroke-dashoffset:19.946;}#volume-line-1,#volume-line-2{fill:none;}&.mute{#volume-line-1{opacity:0;stroke-dasharray:0 19.177;stroke-dashoffset:-9 !important;}#volume-line-2{opacity:0;stroke-dasharray:0 27.791 !important;stroke-dashoffset:-14 !important;}#x-lines{stroke-dasharray:0;stroke-dashoffset:0;}}}}.volume-slider{display:flex;align-items:center;width:100px;height:30px;opacity:0;z-index:-1;transition:opacity 0.1s ease;background-color:#1b2733;&:hover,&.dragging{opacity:1;z-index:1;}.track-background{background-color:#455060;border-radius:5px;width:90px;height:7px;.track{height:100%;border-radius:5px 0 0 5px;background-color:#fff;.scrubber{position:relative;transform:translateY(-27%);width:15px;height:15px;border-radius:10px;background-color:#fff;}}}}"]),tw=new ep,tb=ta(["*","cast.*"],function(e){return{volume:(0,$.Z)(e,"volume",0),muted:(0,$.Z)(e,"muted",!1)}},function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;r0&&e.setState({lastScrubberPosition:i}),e.setVolumeFromMouseEvent(t)}}),(0,K.Z)((0,e5.Z)(e),"setVolumeFromMouseEvent",function(t){var n=e.volumeTrackRef.current.getBoundingClientRect(),i=t.clientX-n.left,o=n.right-t.clientX;if(i>=0&&o>=0){var r=parseFloat((i/e.volumeTrackRef.current.offsetWidth).toFixed(2));r<=.08&&(r=0),e.props.volume>0&&0===r&&tw.setMute(!0),0===e.props.volume&&r>0&&tw.setMute(!1),tw.setVolume(r)}}),(0,K.Z)((0,e5.Z)(e),"getVolumePctFromScrubberPos",function(t){return parseFloat((t/e.volumeTrackRef.current.getBoundingClientRect().width).toFixed(2))}),(0,K.Z)((0,e5.Z)(e),"toggleMuteOnButtonClick",function(){if(0===e.props.volume){tw.setMute(!1);var t=e.getVolumePctFromScrubberPos(e.state.lastScrubberPosition);t<=.08&&(t=.5),tw.setVolume(t)}else tw.setMute(!0),tw.setVolume(0)}),(0,K.Z)((0,e5.Z)(e),"renderVolumeButton",function(){var t=e.props.hoveringSlider||e.state.draggingScrubber?"hovering-slider hover":"",n=(0,$.Z)(e.props,"browser.name","");return(0,y.jsxs)("button",{id:"volumeButton",className:"volume-button ".concat(t),onClick:e.toggleMuteOnButtonClick,onFocus:function(){return e.props.setHoveringSlider(!0)},onBlur:function(){return e.props.setHoveringSlider(!1)},ref:e.volumeButtonRef,children:[(0,y.jsx)("div",{tooltip:e.props.muted||0===e.props.volume?"Unmute":"Mute"}),"safari"===n||"ios"===n?e.renderStaticSvgs():e.renderVolumeSvg()]})}),(0,K.Z)((0,e5.Z)(e),"renderVolumeSlider",function(){var t=e.state.scrubberPosition>0?e.state.scrubberPosition+1:0,n=null!==e.scrubberRef.current?e.scrubberRef.current.offsetWidth/2:0,i=e.state.draggingScrubber?"dragging":"";return(0,y.jsx)("div",{className:"volume-slider ".concat(i),onMouseEnter:function(){return e.props.setHoveringSlider(!0)},onMouseLeave:function(){return e.props.setHoveringSlider(!1)},children:(0,y.jsx)("div",{ref:e.volumeTrackRef,className:"track-background",onClick:e.setVolumeOnTrackClick,role:"button",children:(0,y.jsx)("div",{className:"track",style:{width:t},children:(0,y.jsx)("div",{className:"scrubber",ref:e.scrubberRef,style:{left:e.state.scrubberPosition-n},onMouseDown:function(){return e.setState({draggingScrubber:!0})},role:"button"})})})})}),(0,K.Z)((0,e5.Z)(e),"renderVolumeSvg",function(){var t=9+e.state.scrubberPosition/100*10.177,n=11+e.state.scrubberPosition/100*16.791;return(0,y.jsxs)("svg",{version:"1.1",id:"Layer_1",className:e.props.muted||0===e.props.volume?"mute":"",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",space:"preserve",children:[(0,y.jsx)("path",{id:"volume-speaker",fill:"#9aadc7",d:"M17.6,31.6c-0.3,0-0.6-0.1-0.8-0.3l-7.3-6.6H4.1c-0.7,0-1.3-0.6-1.3-1.3V11.6c0-0.7,0.6-1.3,1.3-1.3h5.4 l7.3-6.6c0.4-0.3,0.9-0.4,1.3-0.2c0.5,0.2,0.7,0.6,0.7,1.1v25.7c0,0.5-0.3,0.9-0.7,1.1C17.9,31.6,17.7,31.6,17.6,31.6z M5.3,22.2 h4.6c0.3,0,0.6,0.1,0.8,0.3l5.5,5v-20l-5.5,5c-0.2,0.2-0.5,0.3-0.8,0.3H5.3V22.2z"}),(0,y.jsx)("path",{id:"volume-line-2",fill:"none",stroke:"#9aadc7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeDasharray:n,strokeDashoffset:(-27.791+n)/2,d:"M26.642,4.238C29.307,7.98,30.88,12.555,30.88,17.5c0,4.763-1.456,9.185-3.945,12.848"}),(0,y.jsx)("path",{id:"volume-line-1",fill:"none",stroke:"#9aadc7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeDasharray:t,strokeDashoffset:(-19.177+t)/2,d:"M22.631,8.248c1.7,2.681,2.7,5.849,2.7,9.252c0,3.275-0.929,6.33-2.514,8.946"}),(0,y.jsx)("path",{id:"x-lines",fill:"none",stroke:"#9aadc7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M23.536,13.974l7.052,7.052 M30.588,13.974l-7.052,7.052"})]})}),(0,K.Z)((0,e5.Z)(e),"renderStaticVolumeSvg",function(){return(0,y.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",xmlSpace:"preserve",children:[(0,y.jsx)("path",{id:"volume-speaker",fill:"#9aadc7",d:"M17.6,31.6c-0.3,0-0.6-0.1-0.8-0.3l-7.3-6.6H4.1c-0.7,0-1.3-0.6-1.3-1.3V11.6c0-0.7,0.6-1.3,1.3-1.3h5.4 l7.3-6.6c0.4-0.3,0.9-0.4,1.3-0.2c0.5,0.2,0.7,0.6,0.7,1.1v25.7c0,0.5-0.3,0.9-0.7,1.1C17.9,31.6,17.7,31.6,17.6,31.6z M5.3,22.2 h4.6c0.3,0,0.6,0.1,0.8,0.3l5.5,5v-20l-5.5,5c-0.2,0.2-0.5,0.3-0.8,0.3H5.3V22.2z"}),(0,y.jsx)("path",{id:"volume-line-2",fill:"none",stroke:"#9aadc7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M26.935,30.348c2.489-3.663,3.945-8.085,3.945-12.848c0-4.945-1.573-9.52-4.238-13.262"}),(0,y.jsx)("path",{id:"volume-line-1",fill:"none",stroke:"#9aadc7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M22.817,26.446c1.585-2.616,2.514-5.671,2.514-8.946c0-3.403-1-6.571-2.7-9.252"})]})}),(0,K.Z)((0,e5.Z)(e),"renderStaticMuteSvg",function(){return(0,y.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",xmlSpace:"preserve",children:[(0,y.jsx)("path",{id:"volume-speaker",fill:"#9aadc7",d:"M17.6,31.6c-0.3,0-0.6-0.1-0.8-0.3l-7.3-6.6H4.1c-0.7,0-1.3-0.6-1.3-1.3V11.6c0-0.7,0.6-1.3,1.3-1.3h5.4 l7.3-6.6c0.4-0.3,0.9-0.4,1.3-0.2c0.5,0.2,0.7,0.6,0.7,1.1v25.7c0,0.5-0.3,0.9-0.7,1.1C17.9,31.6,17.7,31.6,17.6,31.6z M5.3,22.2 h4.6c0.3,0,0.6,0.1,0.8,0.3l5.5,5v-20l-5.5,5c-0.2,0.2-0.5,0.3-0.8,0.3H5.3V22.2z"}),(0,y.jsx)("path",{id:"static-x-lines",fill:"none",stroke:"#9aadc7",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:"M23.536,13.974l7.052,7.052 M30.588,13.974l-6.952,7.052"})]})}),(0,K.Z)((0,e5.Z)(e),"renderStaticSvgs",function(){return e.props.muted||0===e.props.volume?e.renderStaticMuteSvg():e.renderStaticVolumeSvg()}),(0,K.Z)((0,e5.Z)(e),"renderVolumeControls",function(){return(0,y.jsxs)(tx,{className:"volume-controls",children:[e.renderVolumeButton(),e.renderVolumeSlider()]})}),e}return(0,X.Z)(i,[{key:"componentDidMount",value:function(){this.setScrubberPositionFromVolume(),this.setupScrubberDragListener(),this.setupScrubberReleaseListener(),this.volumeButtonRef.current&&this.volumeButtonRef.current.addEventListener("keydown",this.handleVolumeKeypress)}},{key:"componentDidUpdate",value:function(){this.setScrubberPositionFromVolume()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.handleVolumeScrubber),window.removeEventListener("mouseup",this.handleScrubberRelease),this.volumeButtonRef.current&&this.volumeButtonRef.current.removeEventListener("keydown",this.handleVolumeKeypress)}},{key:"setupScrubberDragListener",value:function(){this.windowMouseMoveListener=window.addEventListener("mousemove",this.handleScrubberDrag)}},{key:"setupScrubberReleaseListener",value:function(){this.windowMouseUpListener=window.addEventListener("mouseup",this.handleScrubberRelease)}},{key:"setScrubberPositionFromVolume",value:function(){var e=this.volumeTrackRef.current,t=(this.props.volume<.08?.08:this.props.volume)*(null!==e?e.offsetWidth:0);t!==this.state.scrubberPosition&&this.setState({scrubberPosition:t})}},{key:"setLastScrubberPosition",value:function(){var e=this.state.scrubberPosition>0?{draggingScrubber:!1,lastScrubberPosition:this.state.scrubberPosition}:{draggingScrubber:!1};this.setState(e)}},{key:"render",value:function(){return this.renderVolumeControls()}}]),i}(a.PureComponent)),tk=(0,y.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",space:"preserve",className:"chromecast-empty",children:(0,y.jsxs)("g",{children:[(0,y.jsx)("path",{fill:"#9aadc7",d:"M30.046,28.995H18.965c-0.69,0-1.25-0.56-1.25-1.25s0.56-1.25,1.25-1.25h9.831v-18H4.205v3.241 c0,0.69-0.56,1.25-1.25,1.25s-1.25-0.56-1.25-1.25V7.245c0-0.69,0.56-1.25,1.25-1.25h27.091c0.69,0,1.25,0.56,1.25,1.25v20.5 C31.296,28.436,30.736,28.995,30.046,28.995z"}),(0,y.jsx)("path",{fill:"#9aadc7",d:"M13.518,28.995c-0.69,0-1.25-0.56-1.25-1.25c0-5.136-4.178-9.314-9.314-9.314c-0.69,0-1.25-0.559-1.25-1.25 s0.56-1.25,1.25-1.25c6.514,0,11.814,5.299,11.814,11.814C14.768,28.436,14.208,28.995,13.518,28.995z"}),(0,y.jsx)("path",{fill:"#9aadc7",d:"M8.734,28.995c-0.69,0-1.25-0.56-1.25-1.25c0-2.498-2.032-4.53-4.53-4.53c-0.69,0-1.25-0.56-1.25-1.25 s0.56-1.25,1.25-1.25c3.876,0,7.03,3.153,7.03,7.03C9.984,28.436,9.424,28.995,8.734,28.995z"}),(0,y.jsx)("path",{fill:"#9aadc7",d:"M2.96,29.005c-0.69,0-1.255-0.564-1.255-1.255s0.564-1.255,1.255-1.255s1.265,0.564,1.265,1.255 S3.65,29.005,2.96,29.005z"})]})}),tS=function(e){return(0,y.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",xmlSpace:"preserve",children:[(0,y.jsxs)("g",{id:"cast_screen",children:[(0,y.jsx)("path",{fill:e,d:"M30.046,28.995H18.965c-0.69,0-1.25-0.56-1.25-1.25s0.56-1.25,1.25-1.25h9.831v-18H4.205v3.241 c0,0.69-0.56,1.25-1.25,1.25s-1.25-0.56-1.25-1.25V7.245c0-0.69,0.56-1.25,1.25-1.25h27.091c0.69,0,1.25,0.56,1.25,1.25v20.5 C31.296,28.436,30.736,28.995,30.046,28.995z"}),(0,y.jsx)("path",{fill:e,d:"M13.518,28.995c-0.69,0-1.25-0.56-1.25-1.25c0-5.136-4.178-9.314-9.314-9.314c-0.69,0-1.25-0.559-1.25-1.25 s0.56-1.25,1.25-1.25c6.514,0,11.814,5.299,11.814,11.814C14.768,28.436,14.208,28.995,13.518,28.995z"}),(0,y.jsx)("path",{fill:e,d:"M8.734,28.995c-0.69,0-1.25-0.56-1.25-1.25c0-2.498-2.032-4.53-4.53-4.53c-0.69,0-1.25-0.56-1.25-1.25 s0.56-1.25,1.25-1.25c3.876,0,7.03,3.153,7.03,7.03C9.984,28.436,9.424,28.995,8.734,28.995z"}),(0,y.jsx)("path",{fill:e,d:"M3.256,29.005c-0.853,0-1.551-0.697-1.551-1.551s0.697-1.551,1.551-1.551S4.82,26.6,4.82,27.454 S4.109,29.005,3.256,29.005z"})]}),(0,y.jsx)("path",{id:"cast_screen",fill:e,d:"M16.765,23.995c-1.329-4.842-5.217-8.729-10.06-10.057v-2.943h19.591v13H16.765z"})]})},tC=N.ZP.div.withConfig({displayName:"ChromecastContainer",componentId:"sc-10foczw-0"})(["border:none;background-color:transparent;padding:0;margin:0;.tooltip-right{&[tooltip]{right:70px;}}svg{display:block;width:30px;height:25px;}&:hover{cursor:pointer;svg{path{fill:#fff;}}[tooltip]::before,[tooltip]::after{opacity:1;background-color:#687588;}}&.casting{svg{path{fill:#ffbc00;}}}"]),tP=new ep,tZ=function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(e){var t;return(0,Y.Z)(this,i),t=n.call(this,e),(0,K.Z)((0,e5.Z)(t),"initializeCastApi",function(){console.log("Initializing Cast Api...");try{var e=new chrome.cast.SessionRequest(chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID),n=new chrome.cast.ApiConfig(e,t.sessionListener,t.receiverListener);chrome.cast.initialize(n,t.onChromecastInitSuccess,t.onChromecastInitError)}catch(e){console.warn("Could not initialize chrome cast api",e)}}),(0,K.Z)((0,e5.Z)(t),"sessionListener",function(e){t.setSession(e)}),(0,K.Z)((0,e5.Z)(t),"receiverListener",function(e){e===chrome.cast.ReceiverAvailability.AVAILABLE&&console.log("Receiver is available")}),(0,K.Z)((0,e5.Z)(t),"onChromecastInitSuccess",function(){console.log("Chromecast Init Success")}),(0,K.Z)((0,e5.Z)(t),"onChromecastInitError",function(e){console.log("Chromecast Init Error",e)}),(0,K.Z)((0,e5.Z)(t),"onRequestSessionSuccess",function(e){t.setSession(e);var n=new chrome.cast.media.MediaInfo(t.props.hlsUrl),i=new chrome.cast.media.LoadRequest(n);i.currentTime=t.props.playedSeconds,window.session.loadMedia(i,t.loadMediaSuccess,t.loadMediaError)}),(0,K.Z)((0,e5.Z)(t),"onRequestSessionError",function(e){console.log("request session error: ",e)}),(0,K.Z)((0,e5.Z)(t),"loadMediaSuccess",function(e){window.media=e}),(0,K.Z)((0,e5.Z)(t),"loadMediaError",function(e){console.log("Error code: ",e)}),(0,K.Z)((0,e5.Z)(t),"startCasting",function(){try{var e=new chrome.cast.SessionRequest(chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID);chrome.cast.requestSession(t.onRequestSessionSuccess,t.onRequestSessionError,e)}catch(e){console.warn("Cast API not available",e)}}),(0,K.Z)((0,e5.Z)(t),"stopCasting",function(){if(window.media){var e=window.media.currentTime;tP.seekTo(e),tP.stopCasting(),window.session.stop()}}),(0,K.Z)((0,e5.Z)(t),"sessionUpdateListener",function(e){e||t.stopCasting()}),(0,K.Z)((0,e5.Z)(t),"setSession",function(e){var n=(0,$.Z)(e,"receiver.friendlyName","unknown device");tP.startCasting(n),window.session=e,window.session.addUpdateListener(t.sessionUpdateListener),null===window.media&&window.session.media[0]&&(window.media=window.session.media[0])}),(0,K.Z)((0,e5.Z)(t),"handleClick",function(){t.props.casting?t.stopCasting():t.startCasting()}),(0,K.Z)((0,e5.Z)(t),"getCastingOnIcon",function(){return(0,y.jsxs)(a.Fragment,{children:[(0,y.jsx)("div",{className:"tooltip-right",tooltip:"Stop Casting"}),t.props.isMobile?tS("#FFBC00"):tS("#FFF")]})}),(0,K.Z)((0,e5.Z)(t),"getCastingOffIcon",function(){return(0,y.jsxs)(a.Fragment,{children:[(0,y.jsx)("div",{tooltip:"Cast to TV"}),t.props.isMobile?tS("#FFF"):tk]})}),(0,K.Z)((0,e5.Z)(t),"getCastingIcon",function(){return t.props.casting?t.getCastingOnIcon():t.getCastingOffIcon()}),window.__onGCastApiAvailable=function(e){e&&t.initializeCastApi()},window.session||(window.session=null),window.media||(window.media=null),t}return(0,X.Z)(i,[{key:"componentDidMount",value:function(){var e="https://www.gstatic.com/cvhttps://www.cbtnuggets.com/js/sender/v1/cast_sender.js?loadCastFramework=1";if(window.addEventListener("beforeunload",this.stopCasting),!this.isScriptAdded(e)){var t=document.createElement("script");t.type="text/javascript",t.src=e,document.querySelector("head").appendChild(t)}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.casting,i=t.hlsUrl,o=t.playerState;n&&i!==e.hlsUrl&&this.stopCasting(),null!==window.session&&(this.props.playerVolume!==e.playerVolume&&window.session.setReceiverVolumeLevel(this.props.playerVolume),this.props.playerMuted&&window.session.setReceiverMuted(!this.props.playerMuted)),n&&("PAUSED"===o&&null!==window.media?window.media.pause(new chrome.cast.media.PauseRequest):"PLAYING"===o&&null!==window.media&&window.media.play(new chrome.cast.media.PlayRequest))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.stopCasting)}},{key:"isScriptAdded",value:function(e){var t,n=document.getElementsByTagName("script");if(!n.length)return!1;for(var i=n.length;i>=0;i--)if((null===(t=n[i])||void 0===t?void 0:t.src)===e)return!0;return!1}},{key:"render",value:function(){return(0,y.jsx)(tC,{id:"chromecast",className:"chromecast",onClick:this.handleClick,children:this.getCastingIcon()})}}]),i}(a.PureComponent);(0,K.Z)(tZ,"defaultProps",{hlsUrl:"",casting:!1,playerState:"PAUSED",playedSeconds:0,isMobile:!1});var tj=ta(["startCasting","stopCasting","progress","cast.*"],function(e){return{casting:(0,$.Z)(e,"casting"),playerVolume:(0,$.Z)(e,"volume"),playerMuted:(0,$.Z)(e,"muted",!1),playerState:(0,$.Z)(e,"playerState"),playedSeconds:(0,$.Z)(e,"progress.playedSeconds"),hlsUrl:(0,$.Z)(e,"hlsUrl")}},tZ),tT=(0,y.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",space:"preserve",children:(0,y.jsxs)("g",{children:[(0,y.jsx)("path",{fill:"#9aadc7",d:"M30.1,3.6h-9.4c-0.7,0-1.2,0.6-1.2,1.2s0.6,1.2,1.2,1.2h6.4l-9.2,9.2c-0.5,0.5-0.5,1.3,0,1.8s1.3,0.5,1.8,0 l9.3-9.3v6.4c0,0.7,0.6,1.2,1.2,1.2s1.2-0.6,1.2-1.2V4.9C31.4,4.2,30.8,3.6,30.1,3.6z"}),(0,y.jsx)("path",{fill:"#9aadc7",d:"M30.1,19.5c-0.7,0-1.2,0.6-1.2,1.2v8.2H6.1V6.1h8.2c0.7,0,1.2-0.6,1.2-1.2S15,3.6,14.3,3.6H4.9 c-0.7,0-1.2,0.6-1.2,1.2v25.3c0,0.7,0.6,1.2,1.2,1.2h25.3c0.7,0,1.2-0.6,1.2-1.2v-9.4C31.4,20,30.8,19.5,30.1,19.5z"})]})}),tI=(0,y.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",space:"preserve",children:(0,y.jsxs)("g",{children:[(0,y.jsx)("path",{fill:"#FFFFFF",d:"M30.1,3.6h-9.4c-0.7,0-1.2,0.6-1.2,1.2s0.6,1.2,1.2,1.2h6.4l-9.2,9.2c-0.5,0.5-0.5,1.3,0,1.8s1.3,0.5,1.8,0 l9.3-9.3v6.4c0,0.7,0.6,1.2,1.2,1.2s1.2-0.6,1.2-1.2V4.9C31.4,4.2,30.8,3.6,30.1,3.6z"}),(0,y.jsx)("path",{fill:"#FFFFFF",d:"M30.1,19.5c-0.7,0-1.2,0.6-1.2,1.2v8.2H6.1V6.1h8.2c0.7,0,1.2-0.6,1.2-1.2S15,3.6,14.3,3.6H4.9 c-0.7,0-1.2,0.6-1.2,1.2v25.3c0,0.7,0.6,1.2,1.2,1.2h25.3c0.7,0,1.2-0.6,1.2-1.2v-9.4C31.4,20,30.8,19.5,30.1,19.5z"})]})}),tL=(0,y.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 35 35",enableBackground:"new 0 0 35 35",space:"preserve",children:[(0,y.jsx)("path",{id:"pop-arrow",fill:"#9aadc7",d:"M18.825,17.375l9.4,0c0.7,0,1.2-0.6,1.2-1.2s-0.6-1.2-1.2-1.2l-6.4,0l9.2-9.2 c0.5-0.5,0.5-1.3,0-1.8s-1.3-0.5-1.8,0l-9.3,9.3l0-6.4c0-0.7-0.6-1.2-1.2-1.2s-1.2,0.6-1.2,1.2l0,9.2 C17.525,16.775,18.125,17.375,18.825,17.375z"}),(0,y.jsx)("path",{fill:"#9aadc7",d:"M30.1,19.5c-0.7,0-1.2,0.6-1.2,1.2v8.2H6.1V6.1h8.2c0.7,0,1.2-0.6,1.2-1.2S15,3.6,14.3,3.6H4.9 c-0.7,0-1.2,0.6-1.2,1.2v25.3c0,0.7,0.6,1.2,1.2,1.2h25.3c0.7,0,1.2-0.6,1.2-1.2v-9.4C31.4,20,30.8,19.5,30.1,19.5z"})]}),tN=N.ZP.button.withConfig({displayName:"PopoutContainer",componentId:"sc-5at7fc-0"})(["border:none;background-color:transparent;padding:0;margin:0;svg{display:block;width:30px;height:25px;}&:hover{cursor:pointer;svg{path{fill:#fff;}}[tooltip]::before,[tooltip]::after{opacity:1;background-color:#687588;}}"]),tM=new ep,tR=function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;re.length)&&(t=e.length);for(var n=0,i=Array(t);n0){var a=n[r-1];tU.setQuality(String(a))}}}),(0,K.Z)((0,e5.Z)(e),"getOptions",function(){var t=e.props,n=t.supportedResolutions,i=t.isMobile,o=[];if(o.push((0,y.jsx)("button",{id:"QualitySelect-auto",className:"toggle-item ".concat(e.isActive("auto")),onClick:function(){e.handleClick("auto")},children:"AUTO"},"auto")),!n||(0,J.Z)(n))return o;var r,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return t_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t_(e,t)}}(e))){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,r=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw r}}}}((0,tq.Z)(n));try{for(s.s();!(r=s.n()).done;)!function(){var t=r.value,n=String(t);(!i||i&&tW[t])&&o.push((0,y.jsx)("button",{id:"QualitySelect-".concat(n,"p"),className:"toggle-item ".concat(e.isActive(n)),onClick:function(){e.handleClick(n)},children:"".concat(n,"p")},n))}()}catch(e){s.e(e)}finally{s.f()}return o}),(0,K.Z)((0,e5.Z)(e),"isActive",function(t){return e.props.activeQuality===t?"active":""}),(0,K.Z)((0,e5.Z)(e),"handleClick",function(e){tU.setQuality(e)}),e}return(0,X.Z)(i,[{key:"componentDidMount",value:function(){this.setActiveResolution()}},{key:"componentDidUpdate",value:function(e){e.supportedResolutions!==this.props.supportedResolutions&&this.setActiveResolution()}},{key:"render",value:function(){return(0,y.jsxs)("div",{className:"setting-item",id:"videoQuality",children:[(0,y.jsx)("div",{className:"setting-label",children:"Quality"}),(0,y.jsx)("div",{className:"setting-control",children:(0,y.jsx)("div",{className:"options-toggle",children:this.getOptions()})})]})}}]),i}(a.PureComponent);(0,K.Z)(tG,"defaultProps",{activeQuality:er("quality")||"auto",supportedResolutions:[]});var tY=ta("*",function(e){return{activeQuality:(0,$.Z)(e,"quality")}},tG),tX=N.ZP.div.withConfig({displayName:"SettingsContainer",componentId:"sc-hp95f7-0"})([".toggle-item{border:none;background-color:transparent;padding:0;margin:0;transform:scale(1.2);}.settings-button{border:none;background-color:transparent;padding:0;margin-top:5px;svg{display:block;position:relative;width:30px;height:25px;}&.open{svg{transform:scale(1.15);path{fill:#fff;}}& ~ .settings-panel{display:block;}}&:hover{cursor:pointer;svg{path{fill:#fff;}}[tooltip]::before,[tooltip]::after{opacity:1;background-color:#687588;}}}.settings-panel{display:none;padding:20px 20px 10px 20px;position:absolute;bottom:45px;right:0;background-color:#1b2733;border-top-left-radius:4px;z-index:20;.setting-item{padding:15px 0px;display:flex;align-items:center;border-bottom:1px solid #687588;&:first-child{padding-top:0;}.setting-label{font-weight:bold;color:#fff;white-space:nowrap;margin-right:20px;}.setting-control{margin-left:auto;.options-toggle{display:flex;float:right;.toggle-item{min-width:40px;text-align:center;color:#9aadc7;border-bottom:2px solid transparent;margin-left:5px;padding-bottom:2px;cursor:pointer;&.active{color:#fff;font-weight:bold;border-bottom-color:#ffbc00;}}}.rocker-label{position:relative;width:45px;height:15px;margin-bottom:0;padding-right:32px;transform:translateY(3px);.setting-checkbox{display:none;transform:translate(3px,-3px);line-height:normal;box-sizing:border-box;padding:0;&:checked + .rocker{background-color:#ffbc00;&::before{transform:translateX(26px);}}}.rocker{position:absolute;width:40px;height:15px;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#455060;-webkit-transition:0.2s;transition:0.2s;&.round{border-radius:34px;&::before{border-radius:50%;}}&::before{position:absolute;content:'';height:21px;width:21px;top:-3px;left:-2px;bottom:2px;background-color:white;-webkit-transition:0.2s;transition:0.2s;}}}}}}"]),tK=new ep,t$=ta("*",function(e){return{showCaptions:(0,$.Z)(e,"showCaptions",!1),showQuizQuestions:(0,$.Z)(e,"showQuizQuestions",!1),autoPlayEnabled:(0,$.Z)(e,"autoPlayEnabled",!1),showDebugLogs:(0,$.Z)(e,"showDebugLogs"),isPopout:(0,$.Z)(e,"isPopout")}},function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;r1&&(o=1),o=Number(o.toFixed(1)),tJ.setVolume(o),o>0&&tJ.setMute(!1);break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:if(t.shiftKey)return;var r=t.which-48;tJ.seekToPercentage(r/10);break;case 36:if(t.shiftKey)return;tJ.seekTo(0);break;case 35:if(t.shiftKey)return;var s=e.props.durationSeconds-1;tJ.seekTo(s);break;case 74:case 37:e.props.isStopped||e.props.hoveringSlider||(e.props.isPlaying&&tJ.sendOneOffHeartbeat("departure"),tJ.rewind());break;case 76:case 39:e.props.isStopped||e.props.hoveringSlider||(e.props.isPlaying&&tJ.sendOneOffHeartbeat("departure"),tJ.forward());break;case 67:tJ.toggleShowCaptions();break;case 70:tJ.toggleFullScreen();break;case 77:0===e.props.volume?tJ.setVolume(.5):tJ.setVolume(0),tJ.setMute(!e.props.muted);break;case 84:var a=e.props.toggleTheaterMode;a&&a();break;case 80:if(e.props.isPopout)return;tJ.setHasPopout(!e.props.hasPopout),tJ.pause()}}),e}return(0,X.Z)(i,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyPress)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyPress)}},{key:"render",value:function(){return null}}]),i}(a.PureComponent);(0,K.Z)(t1,"defaultProps",{isPlaying:!1,volume:0,durationSeconds:0,muted:!1,hasPopout:!1,speed:1});var t2=ta("*",function(e){return{isPlaying:"PLAYING"===(0,$.Z)(e,"playerState","NOT_STARTED"),isStopped:"NOT_STARTED"===(0,$.Z)(e,"playerState","NOT_STARTED"),volume:(0,$.Z)(e,"volume"),durationSeconds:(0,$.Z)(e,"durationSeconds"),muted:(0,$.Z)(e,"muted"),isPopout:(0,$.Z)(e,"isPopout"),speed:(0,$.Z)(e,"speed")}},t1),t5=N.ZP.div.withConfig({displayName:"ControlBarContainer",componentId:"sc-1aeh59z-0"})(["display:flex;position:relative;width:100%;height:5.5rem;margin-top:-8px;flex-flow:column nowrap;background-color:#1b2733;border-radius:0;font-size:15px;transition:all 0.25s,height 0s,opacity 0s;@media (max-width:768px){display:none;}&.show-control-bar{transform:translateY(-45px);}&.fullscreen{margin-top:-5px;transform:translateY(5px);&.show-control-bar{transform:translateY(-50px);}&.ios-safari{transform:translateY(0);}}&.popped-out{.buttons{padding:3px 13px 0px 13px;}}.control-bar-buttons{display:flex;flex:1;flex-flow:row nowrap;align-items:center;justify-content:space-between;padding:13px 10px 7px 10px;.buttons-left,.buttons-right{display:flex;flex-flow:row nowrap;align-items:center;height:100%;}.buttons-left{& > *{margin-right:5px;}.player-time{color:#9aadc7;margin-left:-33%;user-select:none;&.is-tablet-player-time{margin-left:10px;}}}.buttons-right > *{margin-left:10px;}[tooltip]::before,[tooltip]::after{top:-20px;left:15px;}}svg{display:block;width:30px;height:25px;}[tooltip]{position:absolute;pointer-events:none;height:100%;z-index:3;&::before{content:'';position:absolute;top:-100%;left:50%;transform:translateX(-50%) !important;opacity:0;}&::after{content:attr(tooltip);position:absolute;padding:8px;top:-100%;left:50%;color:#fff;background-color:#444;font-weight:bold;border-radius:4px;transform:translateX(-50%) translateY(-110%) !important;white-space:nowrap;user-select:none;opacity:0;}}"]),t3=function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;r\');background-color:#eff2f6;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:visible;@media (max-width:408px){padding:1rem;.mobile-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){background-size:auto 260%;}&.active{opacity:0;pointer-events:none;}&.darkStyle{background-image:none;background-color:',";justify-content:center;h1{color:",";}.video-count-title{margin-top:2.4rem;color:",";}.play-svg{path{fill:",";}circle{stroke:",";}}}.play-svg,.animated-play-svg{border:none;background-color:transparent;width:10rem;transition:all 0.25s ease-out;opacity:0.8;&:hover{cursor:pointer;transform:scale(1.2);opacity:1;}}.retired-message{text-align:center;}.animated-play-svg{.play-triangle{fill:",";}.circle-background{fill:none;stroke:",";stroke-width:8;stroke-miterlimit:10;}.circle-loading{fill:none;stroke:#ffbc00;stroke-width:9;stroke-miterlimit:10;transition:stroke-dasharray 1s linear 0s;}}.loading-spinner-svg{--border-width:4px;--color:rgba(255,188,0,1);--color-trans:rgba(255,188,0,0.5);height:90px;width:90px;border-radius:50%;--mask:radial-gradient(farthest-side,transparent calc(100% - var(--border-width) - 0.5px),#000 calc(100% - var(--border-width) + 0.5px));-webkit-mask:var(--mask);mask:var(--mask);background:linear-gradient(to top,var(--color),var(--color-trans)) 100% 0/50% 100% no-repeat,linear-gradient(var(--color-trans) 50%,transparent 90%) 0 0/50% 100% no-repeat;animation:spin 1s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.collection-title{text-align:center;font-weight:bold;font-size:2.7rem;color:",";margin-top:0;}.video-count-title{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;max-width:90%;.video-count{font-weight:700;margin-bottom:0.5rem;}.video-title{text-align:center;}}.cancel-button{bottom:10px;transform:translateY(-50%);color:",";font-size:12px;user-select:none;&:hover{cursor:pointer;text-decoration:underline;}}.end-of-collection{display:flex;flex-flow:column nowrap;height:max-content;align-items:center;margin:auto;.end-of-video{max-width:100%;text-align:center;.end-of-video-title{width:100%;padding-left:10px;color:",";font-size:26px;font-weight:bold;font-family:'Helvetica Neue',Arial;margin-bottom:20px;text-align:center;}.end-of-video-subtitle{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;font-size:18px;padding-left:10px;.subtitle-text{margin-bottom:20px;}.end-of-video-link{font-size:18px;color:",";cursor:pointer;line-height:23px;&:hover{text-decoration:underline;}}}.subscription-btn{margin-top:2.5rem;}}}"],function(e){return e.backgroundImage},function(e){return e.theme.colors.black},function(e){return e.theme.colors.white},function(e){return e.theme.colors.white},function(e){return e.theme.colors.primaryBrand},function(e){return e.theme.colors.primaryBrand},function(e){return e.theme.colors.blue},function(e){return e.theme.colors.blue},function(e){return e.theme.colors.secondary},function(e){return e.theme.colors.blue},function(e){return e.theme.colors.secondary},function(e){return e.theme.colors.blue}),nd=N.ZP.div.withConfig({displayName:"MobileOverlayContainer",componentId:"sc-dk6j0b-1"})(["@media (max-width:","){&.show{opacity:1;z-index:1;}}& > *{-webkit-tap-highlight-color:transparent;}display:flex !important;justify-content:center;position:absolute;top:0;left:0;width:calc(100% - 15px);height:100%;background-color:rgba(0,0,0,0.75);color:white;opacity:0;transition:opacity 0.25s;z-index:-1;margin:0 7.5px;&:not(.fullscreen){.top-row{margin-bottom:60px;}}.full-screen{width:100%;height:100%;max-width:35px;svg{width:100%;height:100%;path{fill:#fff;}}}.play-pause{max-width:60px;svg{width:100%;height:100%;path,line{fill:#fff;stroke:#fff;}}}.rewind{width:100%;height:100%;max-width:35px;svg{width:100%;height:100%;path{fill:#fff;}}}.forward{width:100%;height:100%;max-width:35px;svg{width:100%;height:100%;path{fill:#fff;}}}.setting-item{display:flex;flex-flow:column nowrap;align-items:center;.setting-label{@media (max-width:$media-phone-small){font-size:16px;}font-size:18px;font-weight:bold;padding-bottom:4%;}.setting-control{@media (max-width:$media-phone-small){font-size:14px;}font-size:16px;.options-toggle{display:flex;flex-flow:row nowrap;.toggle-item{min-width:40px;text-align:center;color:#fff;border:0;border-bottom:2px solid transparent;margin-left:10px;padding-bottom:2px;cursor:pointer;background-color:transparent;&.active{font-weight:bold;border-bottom-color:#ffbc00;}}}}}.timeline{width:calc(100% - 40px);margin-left:20px;top:-15px;&:hover,&.dragging-scrubber{top:-17px;height:15px;}.layer-background,.layer-background > *{border-radius:5px;.scrubber{border-radius:50%;transform:scale(5) translateX(-10%) translateY(-5%);background-color:#ffbc00;}}.dragging-tooltip{position:absolute;pointer-events:none;height:100%;&::before{content:'';position:absolute;top:-100%;left:50%;transform:translateX(-50%);opacity:0;}&::after{content:attr(tooltip);position:absolute;padding:8px;top:-100%;left:50%;color:#fff;background-color:#222;font-weight:bold;border-radius:4px;transform:translateX(-50%) translateY(-165%);white-space:nowrap;user-select:none;opacity:0;}}}.top-row{width:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;&.casting{@media (max-width:","){justify-content:flex-start;}@media (max-width:","){justify-content:center;.chromecast-status{display:none;}}}.chromecast-status{padding:20px;.chromecast-status-stop-casting{color:#1c91c0;font-weight:bold;padding-left:10px;&:hover{cursor:pointer;text-decoration:underline;}}}.playback-controls-container{width:85%;display:flex;flex-flow:row nowrap;justify-content:space-around;align-items:center;@media (max-width:","){.play{height:40px;width:40px;}}.rewind,.forward{height:35px;width:35px;}}.speed-quality-container{display:flex;flex-flow:column nowrap;}}.bottom-row{width:100%;flex:0 1 50px;display:flex;position:absolute;bottom:0;right:0;flex-flow:row nowrap;align-items:center;justify-content:flex-end;.icon{padding:7.5px;&:last-child{margin-right:10px;}svg{height:25px;width:25px;}}}"],function(e){return e.theme.breakpoints.mediaTabletMax},function(e){return e.theme.breakpoints.phone590},function(e){return e.theme.breakpoints.smphone},function(e){return e.theme.breakpoints.smphone}),nu=N.ZP.div.withConfig({displayName:"BannerOverlayContainer",componentId:"sc-dk6j0b-2"})(["width:calc(100% - 15px);display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;position:absolute;top:0;left:0;background-color:white;border:1px solid rgb(233,233,233);border-top:none;transition:height 0.5s;padding:0.75rem;z-index:2;margin:0 7.5px;&.auto-start-failed{background-color:#fcf8e5;border:1px solid #f8ebcf;}@media (max-width:","){.auto-start-message,.offline-message{font-size:12px;}}.auto-start-message{color:#866d42;width:max-content;margin:0 auto;.message{margin-bottom:0.25rem;}.instructions{font-weight:bold;}.instructions-link{color:",";&:hover{text-decoration:underline;cursor:pointer;}}}.offline-message-container{width:100%;display:flex;flex-flow:row nowrap;justify-content:space-between;@media (max-width:","){.offline-message{b,span{font-size:14px;}}}.offline-message{margin:auto;.reload-link{color:#1c91c0;&:hover{text-decoration:underline;cursor:pointer;}}}.close-button{width:20px;height:20px;svg{margin:auto;width:20px;height:20px;fill:rgba(0,0,0,0.2);}&:hover{cursor:pointer;svg{fill:rgba(0,0,0,0.5);}}}}.quiz-dropdown{display:flex;justify-content:space-between;width:100%;.quiz-dropdown-left{display:flex;flex:1;flex-flow:column nowrap;margin-right:2rem;.quiz-dropdown-count{font-size:0.85rem;margin-bottom:2px;font-size:0.75rem;color:#777;}.quiz-dropdown-question{font-size:0.9rem;font-weight:700;line-height:1.25rem;overflow:hidden;}}.quiz-dropdown-right{display:flex;width:max-content;flex-flow:row nowrap;justify-content:flex-end;align-items:center;.quiz-dropdown-countdown-skip{height:max-content;width:max-content;margin-right:0.5rem;font-size:0.75rem;color:#777;.quiz-dropdown-skip{color:#428bca;&:hover{text-decoration:underline;cursor:pointer;}}}.quiz-dropdown-button{height:max-content;width:max-content;padding:5px 10px;font-size:0.75rem;background-color:#ffbc00;}}@media (max-width:","){&{display:block;.quiz-dropdown-left{.quiz-dropdown-question{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.quiz-dropdown-right{flex-direction:row-reverse;margin-top:5px;.quiz-dropdown-countdown-skip{margin-left:5px;}}}}}"],function(e){return e.theme.breakpoints.smphone},function(e){return e.theme.colors.blue},function(e){return e.theme.breakpoints.smphone},function(e){return e.theme.breakpoints.smtablet}),np=new ep,nh=function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;r"," Settings for This Website ",">"," Auto-Play ",">"," Allow All Auto-Play"]});break;case"firefox":e=(0,y.jsxs)("div",{className:"instructions",children:["Firefox menu ",">"," Preferences ",">"," Privacy & Security ",">"," Permissions ",">"," Uncheck: Block websites from automatically playing sound"]});break;case"edge":e=(0,y.jsxs)("div",{className:"instructions",children:["Edge menu ",">"," Settings ",">"," Advanced ",">"," Media Autoplay: Allow"]});break;case"ie":e=(0,y.jsxs)("div",{className:"instructions",children:["Go to ",(0,y.jsx)("i",{children:"Tools"})," ",">"," ",(0,y.jsx)("i",{children:"Manage add-ons"}),". Select ",(0,y.jsx)("i",{children:"Toolbars and Extensions"}),". Select __ ",(0,y.jsx)("i",{children:"Shockwave Flash Object"}),". Add www.cbtnuggets.com to the list of sites to allow the add-on to run."]});break;case"chrome":e=(0,y.jsxs)("div",{className:"instructions",children:["To start the video, click ",(0,y.jsx)("i",{children:"Play"}),". If you have questions, please contact"," ",(0,y.jsx)("a",{className:"instructions-link",href:"/contactus",target:"_blank",children:"Learner Support"}),"."]})}return"chrome"===t?(0,y.jsxs)("div",{className:"auto-start-message",children:[(0,y.jsx)("div",{className:"message",children:"It looks like autoplay might not be working for you."}),e]}):(0,y.jsxs)("div",{className:"auto-start-message",children:[(0,y.jsx)("div",{className:"message",children:"It looks like autoplay might not be working for you. To fix this, follow these steps in your browser:"}),e]})}},{key:"renderOfflineBanner",value:function(){return(0,y.jsxs)("div",{className:"offline-message-container",children:[(0,y.jsxs)("div",{className:"offline-message",children:[(0,y.jsx)("b",{children:"Heads Up!"})," ",(0,y.jsx)("span",{children:"Your viewing data is currently not being recorded."})," ",(0,y.jsx)("span",{className:"reload-link",onClick:function(){return window.location.reload()},role:"button",children:"Try refreshing your browser"})]}),(0,y.jsx)("div",{className:"close-button",onClick:function(){return nv.dismissBanner("connectivity")},role:"button",children:nm})]})}},{key:"renderQuizQuestion",value:function(){var e=this.props,t=e.quizQuestions,n=e.currentQuizQuestion;return(0,y.jsxs)("div",{className:"quiz-dropdown",children:[(0,y.jsxs)("div",{className:"quiz-dropdown-left",children:[(0,y.jsx)("div",{className:"quiz-dropdown-count",children:"Quiz question ".concat(n.order," of ").concat(Object.keys(t).length)}),(0,y.jsx)("div",{className:"quiz-dropdown-question",children:n.text})]}),(0,y.jsxs)("div",{className:"quiz-dropdown-right",children:[(0,y.jsxs)("div",{className:"quiz-dropdown-countdown-skip",children:[(0,y.jsx)("span",{className:"quiz-dropdown-countdown",children:"".concat(this.props.quizDropdownTimeRemaining,"s - ")}),(0,y.jsx)("span",{className:"quiz-dropdown-skip",onClick:this.props.resetQuizQuestionPrompt,role:"button",children:"Skip this question"})]}),(0,y.jsx)(ng.Z.PrimaryDarkSmall,{onClick:this.handleAnswerClick,children:"Answer"})]})]})}},{key:"renderBanner",value:function(){var e=this.props,t=e.autoStartFailed,n=e.offline,i=e.quizQuestion,o=e.isFreePlayer;return t?this.renderAutoStartFailedBanner():n&&!o?this.renderOfflineBanner():i&&!o?this.renderQuizQuestion():void 0}},{key:"render",value:function(){var e=this.props.autoStartFailed?"auto-start-failed":"";return(0,y.jsx)(nu,{className:"".concat(e),children:this.renderBanner()})}}]),i}(a.PureComponent);(0,K.Z)(ny,"defaultProps",{quizQuestions:{},currentQuizQuestion:{},quizDropdownTimeRemaining:0,isFreePlayer:!1});var nx=n(97500),nw=n(27717),nb=n(96018),nk=N.ZP.div.withConfig({displayName:"IconWrapper",componentId:"sc-l8mgde-0"})(["display:flex;margin-right:0.5rem;"]),nS=function(){return(0,y.jsx)(nk,{children:(0,y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"18px",height:"18px",viewBox:"0 0 24 24",version:"1.1",children:[(0,y.jsx)("title",{children:"open_in_new"}),(0,y.jsx)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:(0,y.jsxs)("g",{id:"open_in_new",children:[(0,y.jsx)("polygon",{id:"Path",points:"0 0 24 0 24 24 0 24"}),(0,y.jsx)("path",{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",id:"Shape",fill:"#1b2733","fill-rule":"nonzero"})]})})]})})},nC=N.ZP.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-b5oe5e-0"})(["display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;"]),nP=function(e){var t,n=e.slug;e.videoView;var i=(0,a.useContext)(v.V).isLoggedIn,o=(0,a.useState)(!1),r=o[0],s=o[1],c=(0,a.useState)(!1),l=c[0],d=c[1],u=(t=(0,T.Z)(L().mark(function e(){var t,i,o,r,a;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),t="www.cbtnuggets.com"===window.location.host?"cbtnuggets":"qanuggets",e.next=4,et.od.get("https://accounts.".concat(t,".com/adept/token")).then(function(e){var t=e.data;return t&&t.url}).catch(function(e){return console.error(e)});case 4:i=e.sent,o="&next=/cbtnuggets/".concat(n),r=i.replace("https://learn.sean.adept.at","https://learn.adept.at"),i?(a="".concat(r).concat(o),window.location.href=a):(s(!1),d(!0));case 8:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return i?(0,y.jsxs)(nC,{children:[(0,y.jsxs)(nb.Z.Primary,{disabled:r,onClick:u,children:[(0,y.jsx)(nS,{}),"Switch to new course view"]}),l?(0,y.jsx)("p",{children:"Something went wrong, try again soon."}):null]}):(0,y.jsx)(nC,{children:(0,y.jsx)(ej.Z.ButtonLink.Primary,{href:"/signup","data-at":"signup",children:"Start a free week"})})},nZ=new ep,nj=function(e){(0,e3.Z)(i,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(i);if(t){var o=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function i(){var e;(0,Y.Z)(this,i);for(var t=arguments.length,o=Array(t),r=0;r0&&e.setState({manifestLoadCountdown:e.state.manifestLoadCountdown-1e3})}),(0,K.Z)((0,e5.Z)(e),"clearManifestLoadingInterval",function(){clearInterval(e.manifestLoadingInterval),e.manifestLoadingInterval=null,e.resetManifestLoadCount()}),(0,K.Z)((0,e5.Z)(e),"getFormattedManifestLoadCount",function(){return Math.ceil(e.state.manifestLoadCountdown/1e3)}),(0,K.Z)((0,e5.Z)(e),"handleStartVideoClick",(0,T.Z)(L().mark(function t(){return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nZ.setActivePlayer(e.props.playerId);case 2:e.props.adeptCourseSlug&&nZ.setAdeptCourseSlug(e.props.adeptCourseSlug),nZ.isFreePlayer?nZ.getFreeManifest():nZ.createLicense(!0);case 5:case"end":return t.stop()}},t)}))),(0,K.Z)((0,e5.Z)(e),"renderPlayBtnOrLoadingSpinner",function(){var t=e.props,n=t.videoReady,i=t.licenseCreateStatus,o=t.licenseTakeoverStatus,r=t.manifestFetchTimedOut,s=t.autoStart;return r||("SUCCESS"!==i||n)&&("NOT_STARTED"!==i||!s)&&"LOADING"!==i&&"LOADING"!==o?(0,y.jsx)("button",{id:"overlayPlayButton",className:"play-svg",onClick:e.handleStartVideoClick,title:"Play video",children:e.renderPlaySvg("#455060")}):(0,y.jsx)("div",{id:"overlayLoadingSpinner",className:"loading-spinner-svg"})}),(0,K.Z)((0,e5.Z)(e),"renderVideoNumberOrStatusMsg",function(){var t=e.props,n=t.videoReady,i=t.licenseCreateStatus,o=t.licenseTakeoverStatus,r=t.manifestFetchTimedOut,s={NOT_STARTED:e.renderVideoCount(),LOADING:"Retrieving video URL...",FAILURE:"LOADING"===o?"Taking over active session...":"Failed to retrieve video URL",SUCCESS:r?"The server took too long to respond":n?e.renderVideoCount():"Retrieving video data..."};return(0,y.jsx)("div",{className:"video-count",children:s[i]})}),(0,K.Z)((0,e5.Z)(e),"renderStatusMsg",function(){var t=e.props,n=t.videoReady,i=t.licenseCreateStatus,o=t.licenseTakeoverStatus,r=t.manifestFetchTimedOut;return(0,y.jsx)("div",{className:"video-count",children:{NOT_STARTED:"",LOADING:"Retrieving video URL...",FAILURE:"LOADING"===o?"Taking over active session...":"Failed to retrieve video URL",SUCCESS:r?"The server took too long to respond":n?"":"Retrieving video data..."}[i]})}),(0,K.Z)((0,e5.Z)(e),"renderVideoTitleOrRetryMsg",function(){var t=e.props,n=t.selectedVideoTitle,i=t.licenseCreateStatus,o=t.manifestFetchTimedOut,r=t.licenseTakeoverStatus,s=t.manifestLoadingTimeOut,a=t.videoReady;return"SUCCESS"!==i||o||a||!(s>1e4)?"LOADING"!==r&&("FAILURE"===i||o)?(0,y.jsxs)("div",{className:"video-title mobile-clamp",children:["To try again, click the ",(0,y.jsx)("i",{children:"Play"})," button. In most cases, this will solve the problem."]}):(0,y.jsx)("div",{className:"video-title mobile-clamp",children:n}):(null===e.manifestLoadingInterval&&(e.manifestLoadingInterval=setInterval(e.decrementManifestLoadCount,1e3)),(0,y.jsx)("div",{className:"video-title mobile-clamp",children:"Retrying in ".concat(e.getFormattedManifestLoadCount()," seconds")}))}),(0,K.Z)((0,e5.Z)(e),"renderRetryMsg",function(){var t=e.props,n=t.licenseCreateStatus,i=t.manifestFetchTimedOut,o=t.licenseTakeoverStatus,r=t.manifestLoadingTimeOut,s=t.videoReady;return"SUCCESS"!==n||i||s||!(r>1e4)?"LOADING"!==o&&("FAILURE"===n||i)?(0,y.jsxs)("div",{className:"video-title mobile-clamp",children:["To try again, click the ",(0,y.jsx)("i",{children:"Play"})," button. In most cases, this will solve the problem."]}):void 0:(null===e.manifestLoadingInterval&&(e.manifestLoadingInterval=setInterval(e.decrementManifestLoadCount,1e3)),(0,y.jsx)("div",{className:"video-title mobile-clamp",children:"Retrying in ".concat(e.getFormattedManifestLoadCount()," seconds")}))}),(0,K.Z)((0,e5.Z)(e),"renderVideoCount",function(){var t=e.props,n=t.selectedVideoTitle,i=t.videoNumber,o=t.videosLength;if(o>0&&!(0,J.Z)(n))return"Video ".concat(i," of ").concat(o,":")}),(0,K.Z)((0,e5.Z)(e),"renderPlaySvg",function(e){return(0,y.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 200 200",enableBackground:"new 0 0 200 200",space:"preserve",children:[(0,y.jsx)("path",{id:"play-arrow",fill:e,d:"M81.206,130.546v-61.16c0-3.628,3.628-5.701,6.997-3.628l46.648,30.58c2.592, 2.073,2.592,5.701,0,7.515l-46.648,30.58C85.093,136.247,81.206,133.915,81.206,130.546z"}),(0,y.jsx)("circle",{fill:"none",stroke:e,strokeWidth:"8",strokeMiterlimit:"10",cx:"100",cy:"100",r:"90"})]})}),(0,K.Z)((0,e5.Z)(e),"renderAnimatedPlaySvg",function(){var t=2*Math.PI*90,n=1-e.props.nextVideoCountdownMsCurrent/e.props.NEXT_VIDEO_COUNTDOWN_MS;return(0,y.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 200 200",enableBackground:"new 0 0 200 200",space:"preserve",children:[(0,y.jsx)("path",{className:"play-triangle",d:"M81.2,130.5V69.4c0-3.6,3.6-5.7,7-3.6l46.6,30.6c2.6,2.1,2.6,5.7,0,7.5l-46.6,30.6C85.1,136.2,81.2,133.9,81.2,130.5z"}),(0,y.jsx)("circle",{className:"circle-background",cx:"100",cy:"100",r:90}),(0,y.jsx)("circle",{id:"bar",className:"circle-loading",cx:"100",cy:"100",r:90,style:{strokeDasharray:"".concat(n*t,", ").concat(t)},transform:"rotate(-90, 100, 100)"})]})}),e}return(0,X.Z)(i,[{key:"componentDidUpdate",value:function(e){this.handleClearInterval(e)}},{key:"renderRetiredVideoOverlay",value:function(){var e=this.props.skillTitle;return(0,y.jsxs)("div",{children:[(0,y.jsx)("h1",{className:"collection-title mobile-clamp",children:e}),(0,y.jsxs)("div",{className:"retired-message",children:["This skill has been retired.",(0,y.jsx)("a",{href:"/it-training",children:" Find something new."})]})]})}},{key:"renderStartVideoOverlay",value:function(){return(0,y.jsxs)(a.Fragment,{children:[(0,y.jsx)("h1",{className:"collection-title mobile-clamp",children:"Watch the first video free"}),this.renderPlayBtnOrLoadingSpinner(),(0,y.jsxs)("div",{className:"video-count-title",children:[this.renderStatusMsg(),this.renderRetryMsg()]})]})}},{key:"renderBetweenVideosOverlay",value:function(){var e=this,t=this.props,n=t.collectionTitle,i=t.nextVideoTitle,o=t.autoPlayEnabled,r=t.nextVideoCountdownCancelled,s=t.nextVideoCountdownMsCurrent,c=t.NEXT_VIDEO_COUNTDOWN_MS;return o&&!r&&s===c&&this.props.startNextVideoCountdown(),(0,y.jsxs)(a.Fragment,{children:[(0,y.jsx)("h1",{className:"collection-title mobile-clamp",children:n}),(0,y.jsx)("div",{id:"overlayPlayButtonAnimated",className:"animated-play-svg",onClick:function(){return e.props.goToNextVideo()},role:"button",children:this.renderAnimatedPlaySvg()}),(0,y.jsxs)("div",{className:"video-count-title",children:[(0,y.jsx)("div",{className:"video-count",children:"Next Up:"}),(0,y.jsx)("div",{className:"video-title mobile-clamp",children:i})]}),o&&!r&&(0,y.jsx)("div",{id:"cancelNextVideo",className:"cancel-button",onClick:function(){return e.props.cancelNextVideoCountdown()},role:"button",children:"CANCEL"})]})}},{key:"renderEndOfCollectionOverlay",value:function(){var e=this.props.isLMI;return(0,y.jsx)("div",{className:"end-of-collection",children:(0,y.jsxs)("div",{className:"end-of-video",children:[(0,y.jsx)("div",{className:"end-of-video-title",children:"You’ve watched the last video in this collection."}),e?null:(0,y.jsxs)("div",{className:"end-of-video-subtitle",children:["What will you learn next?",(0,y.jsxs)("a",{className:"end-of-video-link",href:"/learn/search",children:[" ","Find something new"]})]})]})})}},{key:"renderLoggedOutEndOfVideoOverlay",value:function(){return(0,y.jsx)("div",{className:"end-of-collection",children:(0,y.jsxs)("div",{className:"end-of-video",children:[(0,y.jsx)("div",{className:"end-of-video-title",children:"Watch now with a free week."}),(0,y.jsx)("div",{children:(0,y.jsx)(ej.Z.ButtonLink.Primary,{href:"/signup",children:"Watch now"})}),(0,y.jsx)("p",{children:(0,y.jsx)(nw.Z.Arrow,{onClick:function(e){return(0,nx.B)()},children:(0,y.jsx)("span",{children:"Have a team? Let's chat"})})})]})})}},{key:"renderExpiredSubscriptionOverlay",value:function(){return(0,y.jsx)("div",{className:"end-of-collection",children:(0,y.jsxs)("div",{className:"end-of-video",children:[(0,y.jsx)("div",{className:"end-of-video-title",children:"Your subscription has expired."}),(0,y.jsxs)("div",{className:"end-of-video-subtitle",children:[(0,y.jsx)("div",{className:"subtitle-text",children:"This video is only available to subscribers with an active subscription."}),(0,y.jsx)(ej.Z.ButtonLink.DarkLarge,{href:"/youraccount/plan-and-payment",children:"Reactivate your subscription"})]})]})})}},{key:"renderUpgradeYourAccountOverlay",value:function(){return(0,y.jsx)("div",{className:"end-of-collection",children:(0,y.jsxs)("div",{className:"end-of-video",children:[(0,y.jsx)("div",{className:"end-of-video-title",children:"Upgrade your account to watch this video."}),(0,y.jsxs)("div",{className:"end-of-video-subtitle",children:[(0,y.jsxs)("div",{className:"subtitle-text",children:["This video is only available to paid subscribers. Upgrade your account now to access our entire library and unlock all of our features, like ",(0,y.jsx)("a",{href:"/virtual-labs",children:" virtual labs"})," and ",(0,y.jsx)("a",{href:"/it-training-videos/exams",children:"practice exams."})]}),(0,y.jsx)("div",{children:(0,y.jsx)(ej.Z.ButtonLink.DarkLarge,{href:"/upgrade",children:"Upgrade account"})})]})]})})}},{key:"renderNonViewerOverlay",value:function(){return(0,y.jsx)("div",{className:"end-of-collection",children:(0,y.jsxs)("div",{className:"end-of-video",children:[(0,y.jsx)("div",{className:"end-of-video-title",children:"Videos are only available to subscribers with viewing access enabled."}),(0,y.jsxs)("div",{className:"end-of-video-subtitle",children:[(0,y.jsx)("div",{children:"You can edit your access in the Learner Management section of your account."}),(0,y.jsxs)("div",{children:["If you need help, please contact your account owner or ",(0,y.jsx)("a",{href:"/contactus",children:"Learner Support"}),"."]})]})]})})}},{key:"render",value:function(){var e,t=this.props,n=t.videoReady,i=t.videoEnded,o=t.videoNumber,r=t.videosLength,s=t.playerState,a=t.isViewer,c=t.isNextVideoInPreReleaseState,l=t.isCurrentVideoInPreReleaseState,d=t.hasActiveSubscription,u=t.hasAccessToVideo,p=t.isCurrentSkillRetired,h=t.isFreemiumSkill,f=t.isFreePlayer,m=(t.courseSlug,t.isAdeptOnly),g=t.isLoggedIn,v=!1;return a||h?!1===u?f?(0,y.jsx)(nl,{children:this.renderLoggedOutEndOfVideoOverlay()}):(0,y.jsx)(nl,{children:this.renderUpgradeYourAccountOverlay()}):!1===d?(0,y.jsx)(nl,{children:this.renderExpiredSubscriptionOverlay()}):m&&g?(0,y.jsx)(nl,{className:"darkStyle",children:(0,y.jsx)(nP,{slug:this.props.adeptCourseSlug})}):(p?e=this.renderRetiredVideoOverlay():(i||l)&&!f?e=oe.length)&&(t=e.length);for(var n=0,i=Array(t);n=i}),l=c?"nrn:collection:".concat(c.collectionId):null,d=n.find(function(e){return e.id===l});s=d?"Pre-release"===d.state:null}var u=o?"Pre-release"===o.state:null;e.setState({isCurrentVideoInPreReleaseState:u,isNextVideoInPreReleaseState:s})}),(0,K.Z)((0,e5.Z)(e),"resetQuizQuestionPrompt",function(){e.quizDropdownInterval&&clearInterval(e.quizDropdownInterval),e.setState({showQuizDropdown:!1,quizDropdownTimeRemaining:15}),nM.resetCurrentQuizQuestion()}),(0,K.Z)((0,e5.Z)(e),"goToNextVideo",function(){var t,n=e.props,i=n.history,o=n.videoNumber,r=n.collectionId,s=n.isPopout,a=n.isLMI,c="autostart=1";if(s)t="/learn/popout-player",window.videoNumber=o+1;else if(a){t="/learn/lmi";var l=new URLSearchParams(location.search);l.get("autostart")&&l.delete("autostart"),c=c.concat("&",l.toString())}else t="/learn/it-training";r.startsWith("nrn:playlist:")?i.push({pathname:"".concat(t,"/").concat(s?"":"playlist/").concat(r,"/").concat(o+1),search:c}):i.push({pathname:"".concat(t,"/").concat(r,"/").concat(o+1),search:c})}),(0,K.Z)((0,e5.Z)(e),"goToNextVideoOnTimeoutEnd",function(t){var n=e.state.nextVideoCountdownMsCurrent,i=t.nextVideoCountdownMsCurrent;0===n&&i>0&&setTimeout(function(){0===e.state.nextVideoCountdownMsCurrent&&e.goToNextVideo()},1e3)}),(0,K.Z)((0,e5.Z)(e),"goToVideo",function(t,n){var i,o=e.props,r=o.history,s=o.collectionId,a=o.isPopout,c=o.isLMI,l="autostart=1".concat(n?"#pos=".concat(n):"");if(a)i="/learn/popout-player";else if(c){i="/learn/lmi";var d=new URLSearchParams(location.search);d.get("autostart")&&d.delete("autostart"),l=l.concat("&",d.toString())}else i="/learn/it-training";s.startsWith("nrn:playlist:")?r.push({pathname:"".concat(i,"/playlist/").concat(s,"/").concat(t),search:l}):r.push({pathname:"".concat(i,"/").concat(s,"/").concat(t),search:l})}),(0,K.Z)((0,e5.Z)(e),"startMobileOverlayTimeout",function(){clearTimeout(e.mobileOverlayTimeout),e.mobileOverlayTimeout=setTimeout(function(){e.setState({showMobileOverlay:!1})},3e3)}),(0,K.Z)((0,e5.Z)(e),"clearMobileOverlayTimeout",function(){clearTimeout(e.mobileOverlayTimeout)}),(0,K.Z)((0,e5.Z)(e),"startNextVideoCountdown",function(){clearInterval(e.nextVideoCountdownInterval),e.nextVideoCountdownInterval=setInterval(function(){e.state.nextVideoCountdownMsCurrent>0&&e.setState(function(e){return{nextVideoCountdownMsCurrent:e.nextVideoCountdownMsCurrent-500}})},500)}),(0,K.Z)((0,e5.Z)(e),"clearNextVideoCountdown",function(){clearInterval(e.nextVideoCountdownInterval),e.setState({nextVideoCountdownMsCurrent:3e3})}),(0,K.Z)((0,e5.Z)(e),"setVideoUnready",function(){e.setState({videoReady:!1})}),(0,K.Z)((0,e5.Z)(e),"setQualityLevels",function(){e.hlsInstance=e.player.current.getInternalPlayer("hls");var t=null===(n=e.hlsInstance)||void 0===n?void 0:n.levels;if(t&&!(t.length<1)){var n,i,o=t.map(function(e,t){return e.level||(e.level=t),e}),r={main:{},baseline:{}},s=[],a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return nL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nL(e,t)}}(e))){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,r=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw r}}}}(o);try{for(a.s();!(i=a.n()).done;){var c=i.value,l=c.height;c.attrs.CODECS.includes("avc1.77")||c.videoCodec.includes("avc1.4d")?r.main[l]=c:r.baseline[l]=c,s.length&&s[s.length-1]===l||s.push(l)}}catch(e){a.e(e)}finally{a.f()}for(var d=[],u=[],p=0;p0&&nM.setMute(!1)),r&&nM.setSpeed(r),s&&nM.setQuality(s),void 0!==d&&d!==e.props.autoPlayEnabled&&nM.toggleAutoPlay(),void 0!==a&&a!==e.props.showCaptions&&nM.toggleShowCaptions(),void 0!==c&&c!==e.props.showQuizQuestions&&nM.toggleQuizQuestions(),e.state.showPopoutCloseLink&&e.setState({showPopoutCloseLink:!1})}),(0,K.Z)((0,e5.Z)(e),"cancelNextVideoCountdown",function(){e.clearNextVideoCountdown(),e.setState({nextVideoCountdownCancelled:!0})}),(0,K.Z)((0,e5.Z)(e),"getVideoStartPosition",function(){var t=e.props,n=t.hashPosition,i=t.startPosition,o=t.videoId,r=er("progress"),s=(0,$.Z)(r,"".concat(o,".position"),0),a=(0,$.Z)(r,"".concat(o,".updatedAt"),0),c=Date.now()-a;return n>0?n:s>0&&c<3e5?s:i>0?i:0}),(0,K.Z)((0,e5.Z)(e),"onPlayerError",function(t,n){"hlsError"===t&&n&&"manifestLoadTimeOut"===n.details&&e.state.manifestLoadingTimeOut<2e4&&e.setState({manifestLoadingTimeOut:2e4}),nM.handlePlayerError(t,n)}),e}return(0,X.Z)(o,[{key:"componentDidMount",value:function(){this.setupFullScreenListener(),this.setupWindowUnloadListeners(),this.setupPopoutListener(),this.setReleasedVideos(),null===this.windowMouseMoveListener&&this.setupMouseMoveListener(),this.props.isPopout&&this.props.setPopout(!0)}},{key:"componentDidUpdate",value:function(e,t){var n=this,i=this.props,o=i.playerState,r=i.playedSeconds,s=i.autoStart,a=i.speed,c=i.quality,l=i.hasPopout,d=i.startPosition,u=i.isFullScreen,p=i.showQuizQuestions,h=i.playlistCollections,f=i.videoNumber,m=this.state,g=m.videoReady,v=m.videoEnded,y=m.showMobileOverlay,x=m.showQuizDropdown,w=m.quizDropdownTimeRemaining;if(this.handleNewVideo(e),this.handleAutoStart(),this.handleQualityChange(e),this.handleQuizDropdown(e),this.goToNextVideoOnTimeoutEnd(t),e.playlistCollections!==h&&this.setReleasedVideos(),e.videoNumber!==f&&this.setVideoStates(),"NOT_STARTED"!==e.playerState&&"NOT_STARTED"===o&&this.setVideoUnready(),!e.videoReady&&g&&this.resetManifestLoadingTimeout(),!e.hasPopout&&l&&this.openPopoutPlayer(),t.videoEnded&&!v&&this.nextVideoCountdownInterval&&this.clearNextVideoCountdown(),Math.abs(r-e.playedSeconds)>1&&this.seekTo(r),d!==e.startPosition&&d>0&&nM.initSeekPosition(d),u!==e.isFullScreen&&this.toggleFullScreen(),y&&!t.showMobileOverlay&&this.startMobileOverlayTimeout(),x&&!t.showQuizDropdown&&this.handleQuizDropdownInterval(),a!==e.speed&&"PLAYING"===o&&nM.sendOneOffHeartbeat("speed change"),e.showQuizQuestions!==p&&this.resetQuizQuestionPrompt(),0===w&&this.resetQuizQuestionPrompt(),"NOT_STARTED"===o&&g&&s&&this.playerWrapper.current.click(),g&&!this.initialPlayerAlertShown?setTimeout(function(){n.handlePlayerAlertTimeouts(e),n.initialPlayerAlertShown=!0},1e3):g&&this.handlePlayerAlertTimeouts(e),this.player.current&&this.player.current.getInternalPlayer("hls")){var b=this.player.current.getInternalPlayer("hls"),k=this.getQualityIndexForQuality(c,b.currentLevel);if(-1!==k&&b.currentLevel!==k&&(b.currentLevel=k),k0&&e.setState(function(e){return{quizDropdownTimeRemaining:e.quizDropdownTimeRemaining-1}})},1e3)}},{key:"handleCaptionAlertTimeout",value:function(){var e=this;clearTimeout(this.captionAlertTimeout),this.setState({showCaptionAlert:!0},function(){e.captionAlertTimeout=setTimeout(function(){e.setState({showCaptionAlert:!1})},2e3)})}},{key:"handleAutoPlayAlertTimeout",value:function(){var e=this;clearTimeout(this.autoPlayAlertTimeout),this.setState({showAutoPlayAlert:!0},function(){e.autoPlayAlertTimeout=setTimeout(function(){e.setState({showAutoPlayAlert:!1})},2e3)})}},{key:"handleQuizQuestionsAlertTimeout",value:function(){var e=this;clearTimeout(this.QuizQuestionsAlertTimeout),this.setState({showQuizQuestionsAlert:!0},function(){e.QuizQuestionsAlertTimeout=setTimeout(function(){e.setState({showQuizQuestionsAlert:!1})},2e3)})}},{key:"getHighestQualityIndex",value:function(){var e=this.qualityLevels;if(e.length)return Math.max.apply(Math,(0,V.Z)(e.map(function(e){return e}))).level}},{key:"openPopoutPlayer",value:(n=(0,T.Z)(L().mark(function e(){var t,n,i,o,r=this;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=this.props).collectionId,i=t.videoNumber,o=Math.floor(t.playedSeconds),e.next=4,nM.releaseLicense();case 4:this.popoutWindow=window.open("/learn/popout-player/".concat(n,"/").concat(i,"?autostart=1#pos=").concat(o),"CBT Nuggets Pop-out Player","width=900,height=650"),this.isIE11||this.popoutWindow.addEventListener("load",function(){r.props.setPopout(!0),r.popoutWindow.addEventListener("beforeunload",r.handlePopoutPlayerClose)});case 6:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"closePopoutPlayer",value:function(){this.popoutWindow&&this.popoutWindow.close(),this.props.setPopout(!1),nM.setHasPopout(!1)}},{key:"getQualityIndexForQuality",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.qualityLevels.length&&-1!==t){var n=e;"auto"===e&&(n=this.player.current.getInternalPlayer("hls").levels[t].height);var i=this.qualityLevels.find(function(e){return e.height===parseInt(n)});if(i)return i.level}return -1}},{key:"renderCaptionAlert",value:function(){var e=this.state.showCaptionAlert?"show-alert":"";return(0,y.jsx)("div",{className:"caption-alert ".concat(e),children:"Closed captions ".concat(this.props.showCaptions?"On":"Off")})}},{key:"renderAutoPlayAlert",value:function(){var e=this.state.showAutoPlayAlert?"show-alert":"";return(0,y.jsx)("div",{className:"caption-alert ".concat(e),children:"Autoplay ".concat(this.props.autoPlayEnabled?"On":"Off")})}},{key:"renderQuizQuestionsAlert",value:function(){var e=this.state.showQuizQuestionsAlert?"show-alert":"";return(0,y.jsx)("div",{className:"caption-alert ".concat(e),children:"Quiz questions ".concat(this.props.showQuizQuestions?"On":"Off")})}},{key:"renderVideo",value:function(){var e=this.isSafari?"PLAYING"===this.props.playerState&&this.state.safariBrowserReady:"PLAYING"===this.props.playerState,t=!!this.props.hasPopout||!!this.props.casting||this.props.muted,n=(0,J.Z)(this.hlsInstance)?1:this.props.speed,i=this.getQualityIndexForQuality(this.props.quality),o=this.useCookiesWithVideoRequests(this.props.hlsUrl);return(0,y.jsx)(eN.ZP,{playbackRate:n,ref:this.player,url:this.props.hlsUrl,width:"100%",height:"100%",className:"react-player",playing:e,progressInterval:250,volume:this.props.volume,muted:t,onReady:this.onReady,onStart:this.onStart,onPlay:this.onPlay,onPause:this.onPause,onProgress:this.onProgress,onDuration:this.onDuration,onSeek:this.onSeek,onEnded:this.onEnded,onClick:this.playPause,onError:this.onPlayerError,config:{file:{hlsOptions:{xhrSetup:function(e){e.withCredentials=o},startPosition:this.getVideoStartPosition(),startLevel:i,nudgeOffset:1,manifestLoadingTimeOut:this.state.manifestLoadingTimeOut},attributes:{playsInline:1,className:"react-player-video"}}}})}},{key:"renderCaptions",value:function(){var e,t=this.props.showCaptions,n=this.state.videoReady,i=null===(e=document.querySelector(".react-player"))||void 0===e?void 0:e.children[0],o=function(){if(!i)return null;var e,t=i.textTracks[0];null!=t&&t.mode&&(t.mode="hidden");var n=null!==(e=null==t?void 0:t.activeCues)&&void 0!==e?e:null,o=null!=n&&n.length?n[0]:null;if(n&&o)return(null==o?void 0:o.text).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")};if(t&&n&&o())return(0,y.jsx)("div",{className:"caption",children:(0,y.jsx)("p",{className:"caption-line",children:o()})})}},{key:"renderControlBar",value:function(){var e=this,t=this.props,n=t.isPopout,i=t.playerId,o=t.theaterMode,r=t.setTheaterMode,s=t.playerState,a=t.hlsUrl,c=t.speed,l=t.isFreePlayer,d=this.state,u=d.videoReady,p=d.supportedResolutions;return("NOT_STARTED"!==s&&u?"active":"")?(0,y.jsx)(t6,{seekTo:function(t){return e.seekTo(t)},videoReady:u,videoUrl:a,isPopout:n,browser:nN,isMobile:this.isMobile,isIosChromeOrFirefox:this.isIosChromeOrFirefox,playerId:i,theaterMode:o,setTheaterMode:r,supportedResolutions:p,speed:c,isFreePlayer:l,showControlBar:this.state.showControlBar}):null}},{key:"renderPopoutOverlay",value:function(){return(0,y.jsxs)("div",{className:"popout-overlay",children:[(0,y.jsx)("div",{className:"popout-svg",children:tI}),(0,y.jsx)("div",{className:"popout-text",children:"This video is playing in a different window."}),this.state.showPopoutCloseLink&&(0,y.jsx)("div",{className:"popout-link",onClick:this.popInClickHandler,role:"button",children:"Play here instead"})]})}},{key:"renderLicenseRevokedOverlay",value:function(){var e="LOADING"===this.props.licenseCreateStatus,t="LOADING"===this.props.licenseTakeoverStatus,n=e||t?(0,y.jsx)("div",{className:"popout-text-small",children:"Restarting video..."}):(0,y.jsx)("div",{className:"popout-link",onClick:function(){return nM.takeoverLicense()},role:"button",children:"Play here instead"});return(0,y.jsxs)("div",{className:"popout-overlay",children:[(0,y.jsx)("div",{className:"popout-svg",children:tI}),(0,y.jsx)("div",{className:"popout-text",children:"A CBT Nuggets video is playing in a different window."}),n]})}},{key:"renderCastingOverlay",value:function(){return(0,y.jsxs)("div",{className:"casting-overlay",children:[(0,y.jsx)("div",{className:"casting-svg",children:tS("#FFF")}),(0,y.jsxs)("div",{className:"casting-text",children:["This video is playing on ",this.props.castingDeviceName,"."]}),(0,y.jsx)("div",{className:"stop-casting-link",onClick:this.stopCasting,role:"button",children:"Stop Casting"})]})}},{key:"renderBannerOverlay",value:function(){var e=this.state,t=e.showQuizDropdown,n=e.quizDropdownTimeRemaining,i=this.props,o=i.isTrackingProgress,r=i.dismissedBanners,s=i.currentQuizQuestion,a=i.quizQuestions,c=i.autoStartFailed,l=i.playerId,d=i.isFreePlayer;return c&&!this.isMobile?(0,y.jsx)(ny,{playerId:l,autoStartFailed:!0,browser:nN,isFreePlayer:d}):!1!==o||r.includes("connectivity")?t?(0,y.jsx)(ny,{quizQuestion:!0,playerId:l,currentQuizQuestion:s,quizQuestions:a,quizDropdownTimeRemaining:n,resetQuizQuestionPrompt:this.resetQuizQuestionPrompt,isFreePlayer:d}):void 0:(0,y.jsx)(ny,{playerId:l,offline:!0,isFreePlayer:d})}},{key:"renderMainOverlay",value:function(){var e=this.props,t=e.videosLength,n=e.videoNumber,i=e.hasActiveSubscription,o=e.hasAccessToVideo,r=e.autoStart,s=e.playerId,a=e.isViewer,c=e.isLMI,l=e.selectedVideoCollection,d=e.skillTags,u=e.isFreePlayer,p=e.courseSlug,h=e.adeptCourseSlug,f=e.isAdeptOnly,m=e.isLoggedIn,g=!1;return l?g=!(0,ti.Z)(l.tags.find(function(e){return(null==e?void 0:e.display)==="FREE"})):d&&(g=!(0,ti.Z)(d.find(function(e){return(null==e?void 0:e.display)==="FREE"}))),(0,y.jsx)(nT,{playerId:s,videoReady:this.state.videoReady,videoEnded:this.state.videoEnded,videosLength:t,videoNumber:n,nextVideoCountdownCancelled:this.state.nextVideoCountdownCancelled,nextVideoCountdownMsCurrent:this.state.nextVideoCountdownMsCurrent,startNextVideoCountdown:this.startNextVideoCountdown,cancelNextVideoCountdown:this.cancelNextVideoCountdown,goToNextVideo:this.goToNextVideo,NEXT_VIDEO_COUNTDOWN_MS:3e3,hasActiveSubscription:i,hasAccessToVideo:o,manifestLoadingTimeOut:this.state.manifestLoadingTimeOut,autoStart:r,isViewer:a,isNextVideoInPreReleaseState:this.state.isNextVideoInPreReleaseState,isCurrentVideoInPreReleaseState:this.state.isCurrentVideoInPreReleaseState,isCurrentSkillRetired:(null==l?void 0:l.state)==="Retired",skillTitle:null==l?void 0:l.title,isFreemiumSkill:g,isLMI:c,isFreePlayer:u,courseSlug:p,adeptCourseSlug:h,isAdeptOnly:f,isLoggedIn:m})}},{key:"renderMobileOverlay",value:function(){var e=this.props,t=e.playerId,n=e.isFreePlayer,i=e.courseSlug,o=this.state,r=o.showMobileOverlay,s=o.supportedResolutions;return r?(0,y.jsx)(nf,{playerId:t,showMobileOverlay:r,startMobileOverlayTimeout:this.startMobileOverlayTimeout,clearMobileOverlayTimeout:this.clearMobileOverlayTimeout,isIosChromeOrFirefox:this.isIosChromeOrFirefox,browser:nN,isMobile:this.isMobile,supportedResolutions:s,isFreePlayer:n,courseSlug:i}):null}},{key:"renderPlayerAlerts",value:function(){return(0,y.jsxs)(a.Fragment,{children:[this.renderCaptionAlert(),this.renderAutoPlayAlert(),this.renderQuizQuestionsAlert()]})}},{key:"renderPlayer",value:function(){var e=this,t=this.props,n=t.isPopout,i=t.playerState,o=t.hasPopout,r=t.casting,s=t.isFullScreen,a=t.hasActiveSubscription,c=t.hasAccessToVideo,l=t.licenseRevoked,d=tt()("player-wrapper",{casting:r,popout:n,active:"NOT_STARTED"!==i&&this.state.videoReady,"fullscreen-safari":"safari"===nN.name&&!this.isMobile&&s,"fullscreen-chrome-firefox":("chrome"===nN.name||"firefox"===nN.name)&&s,"fullscreen-ie11":"ie"===nN.name&&s,"fullscreen-edge":"edge"===nN.name&&s});return(0,y.jsxs)("div",{ref:this.playerWrapper,className:d,onClick:function(){return e.setState({showMobileOverlay:!0})},onTouchStart:function(){return e.setState({showMobileOverlay:!0})},role:"button",children:[this.renderBannerOverlay(),this.renderPlayerAlerts(),(a||c)&&!this.state.isCurrentVideoInPreReleaseState&&this.renderVideo(),this.renderCaptions(),this.renderControlBar(),this.renderMainOverlay(),o&&this.renderPopoutOverlay(),!o&&l&&this.renderLicenseRevokedOverlay(),r&&this.renderCastingOverlay(),this.renderMobileOverlay()]})}},{key:"render",value:function(){var e="NOT_STARTED"!==this.props.playerState&&this.state.videoReady?"active":"",t=this.props.isPopout?"popout":"";return(0,y.jsx)(nI,{className:"margin-adjusted-container ".concat(e," ").concat(t," custom-video-container"),children:this.renderPlayer()})}}]),o}(a.PureComponent);(0,K.Z)(nR,"defaultProps",{hlsUrl:"",playerState:"NOT_STARTED",playedSeconds:0,startPosition:0,captions:[],showCaptions:!1,showQuizQuestions:!1,isFullScreen:!1,hasPopout:!1,volume:.5,muted:!1,isLMI:!1,isFreePlayer:!1});var nE=ta(["*","cast.*"],function(e){return{playerState:e.playerState,playedSeconds:(0,$.Z)(e,"progress.playedSeconds"),showCaptions:e.showCaptions,showQuizQuestions:e.showQuizQuestions,captions:e.captions,volume:e.volume,muted:e.muted,speed:e.speed,quality:e.quality,isFullScreen:e.isFullScreen,hlsUrl:e.hlsUrl,startPosition:e.startPosition,hasPopout:e.hasPopout,quizQuestions:e.quizQuestions,currentQuizQuestion:e.currentQuizQuestion,casting:e.casting,castingDeviceName:e.castingDeviceName,license:e.license,isTrackingProgress:e.isTrackingProgress,dismissedBanners:e.dismissedBanners,manifest:e.manifest,autoStartFailed:e.autoStartFailed,autoPlayEnabled:e.autoPlayEnabled,nextVideoTitle:e.nextVideoTitle,isPopout:e.isPopout,durationSeconds:e.durationSeconds,licenseRevoked:e.licenseRevoked,licenseCreateStatus:e.licenseCreateStatus,showDebugLogs:e.showDebugLogs,videoId:e.videoId}},nR),nO=function(e,t){var n=e.collectionId,i=e.videoNumber,o=e.isPopout,r=e.nextVideoTitle,s=e.selectedVideoTitle,a=e.collectionTitle,c=e.videoId;return{playerId:t,collectionId:n,videoNumber:i,context:e.context,videoNrn:"",hlsUrl:"",playerState:"NOT_STARTED",casting:!1,hasPopout:!1,isPopout:void 0!==o&&o||!1,quizQuestions:[],currentQuizQuestion:{},chromecastMedia:null,chromecastSession:null,dismissedBanners:[],autoStartFailed:!1,collectionTitle:a,selectedVideoTitle:s,nextVideoTitle:r,playedSeconds:0,sendClickEvent:e.sendClickEvent,playerMountedAtTime:Date.now(),videoId:c,licenseRevoked:!1,manifestFetchTimedOut:!1}},nA=new ep,nz=function(e){(0,e3.Z)(r,e);var t,n,i,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(r);if(t){var i=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function r(e){(0,Y.Z)(this,r),n=o.call(this,e),(0,K.Z)((0,e5.Z)(n),"playerId",(0,ee.Z)()),(0,K.Z)((0,e5.Z)(n),"checkForNewVideo",(t=(0,T.Z)(L().mark(function e(t){var i,o,r,s,a,c,l,d,u,p,h;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(i=n.props).videoId,r=i.context,s=t.videoId,a=t.context,c="1"===e7.Z.parse(location.search).autostart,l=nA.getLicense(),!(o!==s||r!==a)){e.next=13;break}if(u=(d=nA.getPlayer(n.playerId)).pemVideoId,p=d.pemContext,nA.setLicenseStatus("CREATE","NOT_STARTED"),nA.resetActivePlayer(),((0,J.Z)(u)||(0,J.Z)(p))&&(h={videoId:o,context:r},nA.updatePlayer(n.playerId,h)),(0,J.Z)(l)){e.next=12;break}return e.next=12,nA.releaseLicense();case 12:c&&n.getLicenseAndManifest();case 13:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})),(0,K.Z)((0,e5.Z)(n),"checkForNewQuiz",function(e){if(n.props.quizQuestions!==e.quizQuestions){var t={};n.props.quizQuestions.forEach(function(e,n){t[e.present_pos]={text:e.text,order:n+1,id:e.question_id}}),nA.updatePlayer(n.playerId,{quizQuestions:t})}}),(0,K.Z)((0,e5.Z)(n),"checkForVideoTitles",function(e){if(e.selectedVideoTitle!==n.props.selectedVideoTitle){var t=n.props,i=t.collectionTitle,o=t.selectedVideoTitle,r=t.nextVideoTitle;nA.updatePlayer(n.playerId,{collectionTitle:i,selectedVideoTitle:o,nextVideoTitle:r})}}),(0,K.Z)((0,e5.Z)(n),"checkForUserCreds",function(e){e.groupId!==n.props.groupId&&nA.setGroupId(n.props.groupId),e.memberId!==n.props.memberId&&nA.setMemberId(n.props.memberId)});var t,n,i=nO(e,n.playerId);return n.initializePlayer(i),nA.setGroupId(e.groupId),nA.setMemberId(e.memberId),n}return(0,X.Z)(r,[{key:"componentDidUpdate",value:function(e){this.props.isPopout||this.checkForNewQuiz(e),this.props.videosLength>1&&this.checkForNewVideo(e),this.checkForUserCreds(e),this.checkForVideoTitles(e)}},{key:"initializePlayer",value:(n=(0,T.Z)(L().mark(function e(t){return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(nA.registerPlayer(t),nA.putPlayerOnWindow(t),this.props.isPopout&&this.props.setPopout(!0),"1"!==e7.Z.parse(location.search).autostart){e.next=8;break}return e.next=7,nA.setActivePlayer(this.playerId);case 7:this.getLicenseAndManifest();case 8:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"getLicenseAndManifest",value:(i=(0,T.Z)(L().mark(function e(){var t,n,i;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(t=this.props).videoId,i=t.context,!(!(0,J.Z)(n)&&!(0,J.Z)(i))){e.next=6;break}return nA.resetActivePlayerMountedAtTime(),e.next=6,nA.createLicense(!0);case 6:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,t=e.collectionId,n=e.videoNumber,i=e.isPopout,o=e.setPopout,r=e.history,s=e.videosLength,a=e.hasActiveSubscription,c=e.hasAccessToVideo,l=e.isViewer,d=e.isLMI,u=e.videoId,p=e.sidebarCollapsed,h=e.setSidebarCollapsed,f=e.selectedVideoCollection,m=e.playlistCollections,g=e.skillTags;return(0,y.jsx)(nE,{playerId:this.playerId,theaterMode:p,setTheaterMode:h,collectionId:t,videoNumber:n,autoStart:!1,isPopout:void 0!==i&&i,setPopout:o,history:r,videosLength:s,hashPosition:0,hasActiveSubscription:a,hasAccessToVideo:c,isViewer:l,isLMI:d,videoId:u,selectedVideoCollection:f,playlistCollections:m,skillTags:g})}}]),r}(a.PureComponent);(0,K.Z)(nz,"defaultProps",{quizQuestions:[],setPopout:function(){},videoNumber:1,videosLength:1,nextVideoTitle:"",isPopout:!1,selectedVideoTitle:"",collectionTitle:"",isLMI:!1});var nF=new ep,nV=function(e){(0,e3.Z)(r,e);var t,n,i,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,e4.Z)(r);if(t){var i=(0,e4.Z)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,e6.Z)(this,e)});function r(e){(0,Y.Z)(this,r),n=o.call(this,e),(0,K.Z)((0,e5.Z)(n),"playerId",(0,ee.Z)()),(0,K.Z)((0,e5.Z)(n),"checkForNewVideo",(t=(0,T.Z)(L().mark(function e(t){var i,o,r,s,a,c,l,d,u,p;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=(i=n.props).videoId,r=i.context,s=t.videoId,a=t.context,c="1"===e7.Z.parse(location.search).autostart,(o!==s||r!==a)&&(d=(l=nF.getPlayer(n.playerId)).pemVideoId,u=l.pemContext,nF.resetActivePlayer(),((0,J.Z)(d)||(0,J.Z)(u))&&(p={videoId:o,context:r},nF.updatePlayer(n.playerId,p)),c&&n.getManifest());case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})),(0,K.Z)((0,e5.Z)(n),"checkForVideoTitles",function(e){if(e.selectedVideoTitle!==n.props.selectedVideoTitle){var t=n.props,i=t.collectionTitle,o=t.selectedVideoTitle,r=t.nextVideoTitle;nF.updatePlayer(n.playerId,{collectionTitle:i,selectedVideoTitle:o,nextVideoTitle:r})}});var t,n,i=nO(e,n.playerId);return n.initializePlayer(i),n}return(0,X.Z)(r,[{key:"componentDidUpdate",value:function(e){this.props.videosLength>1&&this.checkForNewVideo(e),this.checkForVideoTitles(e)}},{key:"initializePlayer",value:(n=(0,T.Z)(L().mark(function e(t){return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(nF.setIsFreePlayer(!0),nF.registerPlayer(t),nF.putPlayerOnWindow(t),this.props.isPopout&&this.props.setPopout(!0),"1"!==e7.Z.parse(location.search).autostart){e.next=9;break}return e.next=8,nF.setActivePlayer(this.playerId);case 8:this.getManifest();case 9:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"getManifest",value:(i=(0,T.Z)(L().mark(function e(){var t,n,i;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(t=this.props).videoId,i=t.context,!(!(0,J.Z)(n)&&!(0,J.Z)(i))){e.next=5;break}return nF.resetActivePlayerMountedAtTime(),e.next=5,nF.getFreeManifest();case 5:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,t=e.collectionId,n=e.videoNumber,i=e.isPopout,o=e.setPopout,r=e.history,s=e.videosLength,a=(e.hasActiveSubscription,e.hasAccessToVideo),c=(e.isViewer,e.isLMI,e.videoId),l=e.sidebarCollapsed,d=e.setSidebarCollapsed,u=e.selectedVideoCollection,p=e.playlistCollections,h=e.skillTags,f=e.courseSlug,m=e.adeptCourseSlug,g=e.isAdeptOnly,v=e.isLoggedIn;return(0,y.jsx)(nE,{playerId:this.playerId,theaterMode:l,setTheaterMode:d,collectionId:t,videoNumber:n,autoStart:!1,isPopout:void 0!==i&&i,setPopout:o,history:r,videosLength:s,hashPosition:0,hasActiveSubscription:!0,hasAccessToVideo:a,isViewer:!0,isLMI:!1,videoId:c,selectedVideoCollection:u,playlistCollections:p,skillTags:h,isFreePlayer:!0,courseSlug:f,adeptCourseSlug:m,isAdeptOnly:g,isLoggedIn:v})}}]),r}(a.PureComponent);(0,K.Z)(nV,"defaultProps",{setPopout:function(){},videoNumber:1,videosLength:1,nextVideoTitle:"",isPopout:!1,selectedVideoTitle:"",collectionTitle:"",hasAccessToVideo:!1,setSidebarCollapsed:function(){}});var nB=N.ZP.div.withConfig({displayName:"VideoPlayerContainer",componentId:"sc-1lcyy1m-0"})([""]);N.ZP.div.withConfig({displayName:"VideoPlayerPlaceholder",componentId:"sc-1lcyy1m-1"})(["min-width:100%;min-height:49.1rem;background-color:#ccc;"]);var nD=N.ZP.p.withConfig({displayName:"VideoPlayerNowPlaying",componentId:"sc-1lcyy1m-2"})([""]),nQ=function(e){var t,n=e.activeVideo,i=e.activeSkill,o=e.courseData,r=e.isLoggedIn,s=(0,a.useState)(n),c=s[0],l=s[1],d=(0,a.useState)(i),u=d[0],p=d[1],h=(0,a.useState)(!1),f=h[0],m=h[1],g=(0,a.useState)(!1),v=g[0],x=g[1],w=(0,a.useState)(!1),b=w[0],k=w[1],S=(0,a.useState)(!1),C=S[0],P=S[1],Z=new ep,j=1;i.videos.forEach(function(e,t){e.id===(null==n?void 0:n.id)&&(j=t+1)}),(0,a.useEffect)(function(){P(!0)},[]),(0,a.useEffect)(function(){var e;Z.setLicenseStatus("CREATE","NOT_STARTED"),Z.resetActivePlayer(),x((null==o||null===(e=o.skills[0])||void 0===e?void 0:e.id)===(null==i?void 0:i.id)),m(1===j),k((null==n?void 0:n.id)!==(null==c?void 0:c.id))},[n]),(0,a.useEffect)(function(){p(i),l(n)},[b]);var T={courseSlug:null==o?void 0:o.slug,videosLength:null==u||null===(t=u.videos)||void 0===t?void 0:t.length,hasAccessToVideo:f&&v,videoTitle:null==c?void 0:c.name,skillTitle:null==c?void 0:c.name,context:null==o?void 0:o.studioId,videoId:null==n?void 0:n.cbtComponentId,adeptCourseSlug:null==o?void 0:o.adeptCourseSlug,isAdeptOnly:null==o?void 0:o.isAdeptOnly,isLoggedIn:void 0!==r&&r,videoNumber:j};return(0,y.jsxs)(nB,{id:"videoPlayer",children:[C?(0,y.jsx)(nV,{collectionId:T.courseSlug,videoNumber:T.videoNumber,videosLength:T.videosLength,history:{},hasActiveSubscription:!0,hasAccessToVideo:T.hasAccessToVideo,selectedVideoTitle:T.videoTitle,collectionTitle:T.skillTitle,context:T.context,videoId:T.videoId,sendClickEvent:function(){},sidebarCollapsed:!1,isViewer:!0,courseSlug:T.courseSlug,adeptCourseSlug:T.adeptCourseSlug,isAdeptOnly:T.isAdeptOnly,isLoggedIn:T.isLoggedIn}):(0,y.jsx)(e2.Z.Rectangle,{height:"375px"}),(0,y.jsxs)(nD,{children:[T.hasAccessToVideo?(0,y.jsx)("strong",{children:"Now playing:"}):""," ",null==n?void 0:n.name]})]})},nH=n(13437),nq=N.ZP.div.withConfig({displayName:"StyledFAQSection",componentId:"sc-1t3ay9m-0"})(["border-top:1px solid ",";margin-top:6rem;h2{text-align:center;font-size:2.6rem;}h3{font-size:2rem;font-weight:500;}.spacer{padding-top:3rem;}div{padding:0.7rem 0;}"],function(e){return e.theme.colors.greyBorder}),n_=function(e){var t=e.questions,n=e.title;return((0,a.useEffect)(function(){var e={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[]};if(t.forEach(function(t){var n={"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}};e.mainEntity.push(n)}),"undefined"!=typeof document){var n=document.querySelector("main");if(n){var i=document.createElement("script");i.setAttribute("type","application/ld+json"),i.textContent=JSON.stringify(e),n.appendChild(i)}}},[]),t)?(0,y.jsxs)(nq,{children:[(0,y.jsxs)("h2",{children:[n," FAQs: Cost, Training, Value"]}),t.map(function(e,t){var n=e.question,i=e.answer;return(0,y.jsx)(nH.y,{borderTop:!0,header:(0,y.jsx)("h3",{children:n}),ariaToggleInfo:"Show or hide FAQ Content",children:(0,y.jsx)("span",{children:i})},t)})]}):null},nU=n(48152),nW=n(52060),nG=N.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;}"]),nY=N.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;}"]),nX=N.ZP.img.withConfig({displayName:"ListItemIcon",componentId:"sc-2kfwrh-1"})(["margin-right:1.9rem;width:24px;height:24px;"]),nK=N.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}),n$=N.ZP.div.withConfig({displayName:"PremiumCtaCopy",componentId:"sc-2kfwrh-3"})(["flex:0 1 32rem;"]),nJ=N.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;}"]),n0=N.ZP.div.withConfig({displayName:"PremiumCtaListItem",componentId:"sc-2kfwrh-5"})(["align-items:center;display:flex;margin-top:1.6rem;&:first-of-type{margin:0;}"]),n1=function(){return(0,y.jsxs)(nY,{children:[(0,y.jsxs)(n$,{children:[(0,y.jsx)(nK,{children:"This video is only available in the new course view."}),(0,y.jsx)("a",{href:"/powered-by-adept",children:"Learn more about the new platform."})]}),(0,y.jsx)(nJ,{children:(0,y.jsxs)(eB.LazyLoadComponent,{children:[(0,y.jsxs)(n0,{children:[(0,y.jsx)(nX,{role:"presentation",src:"/assetshttps://www.cbtnuggets.com/images/icons/quizzes-icon.png",alt:"New tools",width:40,height:40}),"New tools"]}),(0,y.jsxs)(n0,{children:[(0,y.jsx)(nX,{role:"presentation",src:"/assetshttps://www.cbtnuggets.com/images/icons/coaching-icon.png"}),"More features"]}),(0,y.jsxs)(n0,{children:[(0,y.jsx)(nX,{role:"presentation",src:"/assetshttps://www.cbtnuggets.com/images/icons/practice-exams-icon.png"}),"Improved organization"]})]})})]})},n2=function(e){var t=e.recommendedCourses,n=e.courseData,i=e.activeSkill,o=e.activeVideo,r=e.faqs,s=e.faqTitle,a=e.isLoggedIn,c=void 0!==a&&a;return(0,y.jsxs)(nG,{children:[(0,y.jsx)(nQ,{activeVideo:o,activeSkill:i,courseData:n,isLoggedIn:c}),null!=n&&n.isAdeptOnly&&c?(0,y.jsx)(n1,{}):(0,y.jsx)(eD,{}),(0,y.jsx)(eW,{totals:n.totals}),(0,y.jsx)(e1,{trainer:i.trainer}),(0,y.jsx)(nW.Z,{}),r.length?(0,y.jsx)(n_,{questions:r,title:s}):null,t.length>0&&(0,y.jsx)(nU.Z,{recommendedCourses:t})]})},n5=(0,j.D)(),n3=function(e){var t,n=e.recommendedCourses,i=e.courseData,o=e.categorySlug,r=e.courseSlug,s=(e.loading,e.faqs),c=e.faqTitle,l=e.showViewInAdeptButton,f=e.isLoggedIn,m=null!==(t=null==i?void 0:i.pageTitle)&&void 0!==t?t:u.i,g=(null==i?void 0:i.pageTitleMetaData)||u.D,v=(0,h.Qt)(i),x=(0,h.jJ)(o,r),w=(0,a.useState)(i.skills[0]),k=w[0],S=w[1],j=(0,a.useState)(k.videos[0]),T=j[0],I=j[1];return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(b,{children:[(0,y.jsx)(C,{children:(0,y.jsxs)(p.ck,{children:[(0,y.jsxs)(d(),{children:[(0,y.jsx)("title",{children:"".concat(m)},"title"),(0,y.jsx)("meta",{name:"description",content:g},"description"),(0,y.jsx)("link",{rel:"canonical",href:v},"canonical"),(0,y.jsx)("meta",{property:"og:title",content:"".concat(m," articles from CBT Nuggets")},"ogTitle"),(0,y.jsx)("meta",{property:"og:url",content:x},"ogUrl"),(0,y.jsx)("meta",{property:"og:description",content:"".concat(g)},"ogDescription"),(0,y.jsx)("meta",{property:"og:title",content:null!=i&&i.name?null==i?void 0:i.name:""},"ogTitle"),(0,y.jsx)("meta",{property:"og:image",content:"".concat(n5,"/assetshttps://www.cbtnuggets.com/images/og/courses/").concat(r,".png")},"ogImage")]}),(0,y.jsx)(eR,{activeVideo:T,setActiveVideo:I,setActiveSkill:S,activeSkill:k,courseData:i}),(0,y.jsx)(n2,{recommendedCourses:n,activeVideo:T,activeSkill:k,courseData:i,faqs:s,faqTitle:c,showViewInAdeptButton:void 0!==l&&l,isLoggedIn:void 0!==f&&f})]})}),(0,y.jsx)(P.Z,{schemaData:(0,Z.Z)(i)})]})})},n6="".concat("it-training"),n4=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?n6:0===t.length&&e.length>0?"".concat(n6,"/").concat(e):"".concat(n6,"/").concat(e,"/").concat(t)},n7=n(21161),n9=n(62083),n8=n(944),ie=N.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"}),it=N.ZP.article.withConfig({displayName:"MultiExamContentContainer",componentId:"sc-1s4rbgm-0"})(["max-width:",";margin:0 auto;padding:6rem 2rem;"],function(e){return e.theme.desktop990}),ii=N.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}),io=N.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}),ir=N.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"),is=N.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}),ia=N.ZP.div.withConfig({displayName:"WhoShouldTakeOverview",componentId:"sc-1s4rbgm-5"})(["margin-bottom:5rem;"]),ic=N.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}),il=N.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});N.ZP.ul.withConfig({displayName:"ExamCourseList",componentId:"sc-1s4rbgm-8"})(["margin:0;padding:0;"]),N.ZP.li.withConfig({displayName:"ExamCourseListItem",componentId:"sc-1s4rbgm-9"})(["display:flex;flex-direction:row;a{font-size:2.4rem;}"]);var id=N.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;}"]),iu=n(6270),ip=function(e){var t=e.certData,n=t.name,i=t.subheading,o=t.recommendedExperience,r=t.primaryCategory,s=r.name,a=r.slug,c=r.urlPath,l=void 0===c?"/it-training":c,d=[{title:"Home",path:"/"},{title:"IT Training",path:l},{title:s,path:"".concat(l,"/").concat(a)},{title:n,path:""}];return(0,y.jsx)(n9.uO,{children:(0,y.jsxs)(it,{children:[(0,y.jsx)(n8.b,{tree:d}),(0,y.jsxs)(ii,{children:[(0,y.jsx)(ie,{size:"8000px",width:"65px",height:"40px",rightMargin:"10px",toptMargin:"74px",imgSrc:iu.uF,positionX:"-7585px",positionY:"0px"}),(0,y.jsxs)(id,{children:[(0,y.jsx)(n7._Y,{children:"Course"}),(0,y.jsx)("h1",{children:n})]})]}),(0,y.jsx)(is,{children:i}),(0,y.jsxs)(is,{children:[o," experience recommended"]})]})})},ih=n(54031),im=n(40157),ig=n(24859),iv=n(15103),iy=n(4648),ix=N.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}),iw=N.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}),ib=N.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}),ik=N.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}),iS=function(e){var t=e.height,n=e.width,i=e.title,o=e.visible,r=e.onClose,s=e.animationType,a=e.subTitle,c=e.children;return(0,y.jsx)(ix,{children:(0,y.jsx)(iy.Z,{visible:void 0!==o&&o,animationType:void 0===s?"zoom":s,animationDurationInMs:400,onClose:r,className:"cohesion-modal",style:{height:void 0===t?"fit-content":t,width:void 0===n?"80rem":n},children:(0,y.jsxs)(ib,{children:[(0,y.jsx)(iy.Z.CloseButton,{}),(0,y.jsxs)(iy.Z.Title,{id:"cohesion-modal-title",children:[void 0===i?"":i,a&&(0,y.jsx)(iw,{children:a})]}),c]})})})},iC=function(e){var t=e.visible,n=e.onCancel,i=e.onConfirm,o=e.width,r=e.height,s=e.title,a=e.message,c=e.confirmText;return(0,y.jsxs)(iS,{title:s,visible:void 0!==t&&t,onClose:n,width:o,height:r,children:[(0,y.jsx)("p",{children:a}),(0,y.jsx)("br",{}),(0,y.jsxs)(ik,{children:[(0,y.jsx)(ng.Z.SecondaryDarkLarge,{onClick:n,children:"Cancel"}),(0,y.jsx)(ng.Z.PrimaryDarkLarge,{onClick:i,children:c})]})]})},iP=function(e){var t=e.certData,n=e.categorySlug,i=void 0===n?"":n,o=t.description,r=t.additionalDescription,s=t.courses,c=(0,a.useContext)(v.V),l=c.isLoggedIn,d=c.userId,u=(0,a.useState)(!1),p=u[0],h=u[1],f=(0,a.useState)(!1),m=f[0],g=f[1],x=(0,a.useState)(null),w=x[0],b=x[1],k=(0,ih.V)({isLoggedIn:l,userId:d}),S=k.data,C=k.loading,P=k.refetch,Z=(null==S?void 0:S.bookshelfItems)||[];return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(it,{children:[(0,y.jsx)("h2",{className:"underline",children:"Exams Towards this Certification"}),(0,y.jsx)("p",{children:o}),(0,y.jsx)(iv.cQ,{children:null==s?void 0:s.map(function(e){var t=(null==e?void 0:e.studioId)||"";if(e&&e.id)return(0,y.jsxs)(iv.D7,{children:[(0,y.jsx)(ig.R,{loadingBookmarkedCourses:C,bookmarkedCourses:Z,tooltipPlacement:"left",courseName:(null==e?void 0:e.name)||"",isLoggedIn:l,contentNrn:t,userId:d,setShowRemoveModal:h,removeBookshelf:w===t&&m,setRemoveBookshelf:g,setSelectedCourse:b,refetchBookshelf:P}),(0,y.jsxs)("div",{children:[(0,y.jsx)(iv.hx,{ssrLink:!0,renderAs:"/it-training/".concat(i,"/").concat(e.slug),href:"/it-training/[category]/[course]",children:e.name}),(0,y.jsx)(im.pU,{courseType:e.courseType&&(null==e?void 0:e.courseType),totals:null==e?void 0:e.totals})]})]},e.id)})}),(0,y.jsx)("p",{children:r})]}),(0,y.jsx)(iC,{visible:p,onCancel:function(){return h(!1)},onConfirm:function(){g(!0),h(!1)},title:"Remove bookmark",width:"60rem",message:"Do you want to remove this course from bookmarked courses?",confirmText:"Remove bookmark"})]})},iZ=function(e){var t=e.certData,n=t.needToKnowHeader,i=t.needToKnowContent;return(0,y.jsx)(ir,{children:(0,y.jsx)(it,{children:(0,y.jsxs)(io,{children:[(0,y.jsx)("h2",{children:n}),(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:i&&i.html}})]})})})},ij=function(e){var t=e.certData,n=t.additionalInfoHeader,i=t.additionalInfoContent,o=t.additionalInfoBoxes;return(0,y.jsxs)(it,{children:[(0,y.jsxs)(ia,{children:[(0,y.jsx)("h2",{className:"underline",children:n}),(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:i&&i.html}})]}),(0,y.jsx)(ic,{children:o.map(function(e){var t=e.headerImage,n=e.header,i=e.content,o="graph"===(void 0===t?"":t).toLowerCase()?{positionX:"-7528px",positionY:"0px"}:{positionX:"-7475px",positionY:"0px"};return i.html&&i.html.length>0&&(0,y.jsxs)(il,{children:[(0,y.jsx)(ie,{size:"8000px",width:"65px",height:"65px",rightMargin:"0px",toptMargin:"0px",leftMargin:"0px",imgSrc:iu.uF,positionX:o.positionX,positionY:o.positionY}),(0,y.jsx)("h3",{children:n}),(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:i&&i.html}})]})})})]})},iT=function(e){var t=e.certData,n=e.categorySlug,i=t.name,o=t.description,r=t.slug,s=t.primaryCategory;if(!s)return(0,y.jsx)(c.default,{code:404});var a=s.slug,l=s.urlPath,u=n4(n,r),p="".concat(void 0===l?"/it-training":l,"/").concat(a,"/").concat(r);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(d(),{children:[(0,y.jsx)("title",{children:"".concat(i)},"title"),(0,y.jsx)("meta",{name:"description",content:o},"description"),(0,y.jsx)("link",{rel:"canonical",href:p},"canonical"),(0,y.jsx)("meta",{property:"og:title",content:"".concat(i)},"ogTitle"),(0,y.jsx)("meta",{property:"og:url",content:u},"ogUrl"),(0,y.jsx)("meta",{property:"og:description",content:"".concat(o)},"ogDescription"),(0,y.jsx)("meta",{name:"twitter:title",content:"".concat(i)},"twitterTitle"),(0,y.jsx)("meta",{name:"twitter:description",content:o},"twitterDescription")]}),(0,y.jsx)(ip,{certData:t}),(0,y.jsx)(iP,{certData:t,categorySlug:n}),(0,y.jsx)(iZ,{certData:t}),(0,y.jsx)(ij,{certData:t})]})},iI=function(e){var t=e.courseSlug,n=e.categorySlug,i=e.data,o=(0,a.useContext)(v.V).isLoggedIn;if(!i.certification&&!i.course)return(0,y.jsx)(c.default,{code:404});var r=i.certification,s=i.course;if(r)return(0,y.jsx)(iT,{certData:r,categorySlug:n});if(o&&!(null!=s&&s.isAdeptOnly)){var l=localStorage.getItem("utm_params")?"&"+localStorage.getItem("utm_params"):"",d="/learn/it-training/playlist/".concat(null==s?void 0:s.studioId,"/1?autostart=1")+l;return window.location.href=d,(0,y.jsx)(y.Fragment,{})}if(s){var u=s.faqs,p=s.playlistTitle,h=s.recommendedCourses;return(0,y.jsx)(n3,{recommendedCourses:h,courseData:s,courseSlug:t,categorySlug:n,loading:!1,faqs:u,faqTitle:p,showViewInAdeptButton:!0,isLoggedIn:o})}return(0,y.jsx)(c.default,{code:500})},iL=iI},76637:function(e,t,n){"use strict";n.d(t,{k:function(){return s}}),n(67294);var i=n(58870),o=n(71022),r=n(85893),s=function(e){var t=e.paragraphsDisplayed,n=e.rawText,s=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),p=d.slice(l,d.length);return(0,r.jsx)(o.g,{initialIsExpanded:void 0!==a&&a,initialContent:u,expandedContent:p,toggleShow:c,ariaToggleInfo:s&&"Toggle more about ".concat(s)})}return(0,r.jsx)(r.Fragment,{children:d})}},70400:function(e,t,n){"use strict";n.d(t,{F0:function(){return d},G6:function(){return a},Nm:function(){return r},X5:function(){return p},bk:function(){return s},bz:function(){return u},oB:function(){return l},oC:function(){return c}});var i=n(87379),o=n(88611),r=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"}),s=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%;"],o.f),p=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})},13437:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var i=n(67294),o=n(85893),r=n(12549),s=n(70400),a=n(19265),c=n(11163),l=function(e){var t,n=((0,c.useRouter)()||{}).query,l=e.iconUrl,d=e.header,u=e.children,p=e.borderTop,h=e.iconDimensions,f=e.iconMarginRight,m=e.loadingPlaceholder,g=e.actionButton,v=e.dataAt,y=e.ariaToggleInfo,x=e.aboveTheFoldContent,w=e.compact,b=e.expanded,k=(0,i.useState)(void 0!==b&&b||"course"in(void 0===n?{}:n)),S=k[0],C=k[1],P=void 0!==l,Z=(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24",role:"presentation","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"})}),j=(null==h?void 0:h.width)||36,T=(null==h?void 0:h.height)||36,I=l||"",L=I?(0,o.jsx)(r.Z,{width:j,height:T,src:I,alt:"",role:"presentation"}):(t={width:j,height:T},(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,version:"1.1",x:"0px",y:"0px",viewBox:"0 0 36 36",enableBackground:"new 0 0 36 36",role:"presentation",children:(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{fill:"#CCD4E3",d:"M18,0C8.06,0,0,8.06,0,18s8.06,18,18,18s18-8.06,18-18l0,0C36,8.06,27.94,0,18,0z"}),(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{fill:"#FFFFFF",d:"M8.81,20.12l2.83-2.83l2.53-0.5c3.22-4.38,9.38-6.57,11.61-6.57c0,2.23-2.19,8.39-6.57,11.61l-0.5,2.53 l-2.83,2.83l-0.71-3.53c-1.41,0-1.41,0-2.12-0.71c-0.71-0.71-0.71-0.71-0.71-2.12L8.81,20.12 M11.64,22.95l1.41,1.41l-2.66,2.67 H8.97v-1.42L11.64,22.95 M10.22,21.54l1.24,0.17L9,24.16v-1.42L10.22,21.54 M14.29,24.54l0.17,1.24L13.26,27h-1.42L14.29,24.54 M19,15.5c-0.83,0-1.5,0.67-1.5,1.5s0.67,1.5,1.5,1.5s1.5-0.67,1.5-1.5S19.83,15.5,19,15.5z"}),(0,o.jsx)("rect",{x:"6",y:"6",fill:"none",width:"24",height:"24"})]})]})})),N=(f||0)+((null==h?void 0:h.width)||0),M=void 0!==x;return m?(0,o.jsx)(s.Nm,{borderTop:p,children:(0,o.jsxs)(s.G6,{children:[(0,o.jsxs)(s.oB,{children:[(0,o.jsx)(s.oC,{iconMarginRight:f,hasIcon:P,children:(0,o.jsx)(s.bz,{})}),d]}),(0,o.jsx)(a.dK,{width:1.6,height:1.6})]})}):(0,o.jsxs)(s.Nm,{borderTop:p,children:[(0,o.jsxs)(s.G6,{children:[(0,o.jsxs)(s.oB,{onClick:function(){return C(!S)},role:"button","aria-expanded":S,"data-at":v?"HeaderContent-".concat(v):null,compact:w,hasAboveTheFoldContent:M,children:[(0,o.jsx)(s.oC,{iconMarginRight:f,hasIcon:P,children:L}),d]}),g,(0,o.jsx)(s.bk,{isExpanded:S,onClick:function(){return C(!S)},"data-at":v?"ExpanderButton-".concat(v):null,"aria-label":y,type:"button",children:Z})]}),x&&(0,o.jsx)(s.X5,{hasIcon:P,iconMarginRight:f,children:x}),(0,o.jsx)(s.F0,{className:S?"open":"collapsed",contentOffset:N,"aria-hidden":!S,children:u})]})}},62083:function(e,t,n){"use strict";n.d(t,{Ac:function(){return C},uO:function(){return P},QA:function(){return x}});var i=n(67294),o=n(87379),r=n(88611),s=(0,o.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=o.ZP.div.withConfig({displayName:"HeroPlaceholder",componentId:"sc-x48w7n-0"})(["width:100%;height:32.5rem;",";@media (min-width:","){",";}"],r.f,function(e){return e.theme.desktop960},s),c=o.ZP.div.withConfig({displayName:"FullHeroImagePlaceholder",componentId:"sc-x48w7n-1"})(["",";",";"],s,r.f),l=o.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;}"],s,function(e){return e.imagePath},function(e){return e.theme.tablet},function(e){return e.imagePath}),d=o.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=o.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}),p=o.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}),h=o.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}),f=(0,o.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});o.ZP.div.withConfig({displayName:"CourseHeroImage",componentId:"sc-x48w7n-7"})(["",";"],f);var m=o.ZP.div.withConfig({displayName:"CertificationHeroImage",componentId:"sc-x48w7n-8"})(["",";@media (min-width:","){background-position:right -150px top 50%;}"],f,function(e){return e.theme.tablet}),g=o.ZP.div.withConfig({displayName:"CourseHeroImagePlaceholder",componentId:"sc-x48w7n-9"})(["",";height:20rem;@media (min-width:","){background-image:none;}"],f,function(e){return e.theme.tablet}),v=o.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),b=n(12549),k=o.ZP.h1.withConfig({displayName:"StyledH1",componentId:"sc-jqdin4-0"})(["margin:0 0 2rem 0;"]),S=o.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;}"]),C=function(e){var t=e.imagePath,n=e.logoPath,o=e.h1Title,r=e.categoryName,s=e.loading,c=e.pageName,l=n?(0,y.jsx)(S,{role:"presentation",children:(0,y.jsx)(b.Z,{src:n,alt:"",width:33,height:80})}):null,d=(0,i.useMemo)(function(){var e="Online Training";return o||c?o||"".concat(c," ").concat(e):e},[o,c]);return s?(0,y.jsx)(a,{}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(u,{children:(0,y.jsxs)(p,{children:[(0,y.jsx)(w.b,{tree:[{title:"All Training",path:"/it-training"},{title:r,path:""}]}),l,(0,y.jsx)(k,{children:d})]})}),(0,y.jsx)(h,{imagePath:t,role:"presentation","aria-hidden":!0})]})},P=function(e){var t=e.children,n=e.imagePath;return e.loading?(0,y.jsx)(g,{}):(0,y.jsx)(m,{imagePath:n,children:(0,y.jsx)(v,{children:t})})}},71022:function(e,t,n){"use strict";n.d(t,{g:function(){return p}});var i=n(67294),o=n(70400),r=n(87379),s=r.ZP.label.withConfig({displayName:"ShowMoreToggle",componentId:"sc-1yyossx-0"})(["display:flex;align-items:center;"]),a=r.ZP.div.withConfig({displayName:"InitialContent",componentId:"sc-1yyossx-1"})(["& p{margin:1rem 0 0 0;}"]),c=r.ZP.div.withConfig({displayName:"ExpandedContent",componentId:"sc-1yyossx-2"})(["height:",";overflow:hidden;"],function(e){return e.height}),l=r.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"})}),p=function(e){var t=e.initialContent,n=e.expandedContent,r=e.ariaToggleInfo,p=e.hideInitialContent,h=e.initialIsExpanded,f=void 0===h||h,m=e.toggleShow,g=void 0===m?function(){}:m,v=(0,i.useState)(f),y=v[0],x=v[1],w=(0,i.useRef)(null);return(0,i.useEffect)(function(){x(f)},[f]),(0,d.jsxs)(l,{children:[(0,d.jsx)(a,{hidden:void 0!==p&&p&&y,children:t}),(0,d.jsx)(c,{height:y?"auto":"0",ref:w,hidden:!y,children:n}),(0,d.jsx)(s,{children:(0,d.jsx)(o.bk,{"data-at":"ExpanderButton",isExpanded:y,"aria-expanded":y,onClick:function(){x(!y),g()},"aria-label":r||"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),o=n(53160);t.Z=function(e){var t=(0,o.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 o},i:function(){return i}});var i="Online IT Training Videos, IT Certification Training",o="CBT Nuggets is the best way to learn IT, our blog is the best way to learn about CBT Nuggets"},8508:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var i=function(e){var t=e.match(/^.*\.(jpg|jpeg|png|gif|bmp)$/);switch(t&&t.length>=2?t[1]:"jpeg"){case"jpeg":case"jpg":default:return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif"}}},97500:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var i=function(e){e&&e.preventDefault();try{document.getElementsByClassName("helpButtonEnabled uiButton")[0].click()}catch(e){console.warn(e,"Error starting chat, script possibly not loaded yet.")}}},26480:function(e,t,n){"use strict";n.d(t,{A_:function(){return r},uF:function(){return o}});var i=n(33811),o=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,o=e.getBoundingClientRect().top;window.scrollTo({top:o-n-t,behavior:"smooth"})}},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"contact-form";e&&o(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 o(e){var t=i(e),n=t.hours&&t.hours>0?"".concat(t.hours," hr").concat(t.hours>1?"s":""):"",o=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(o)}function r(e){var t=i(e),n=t.hours>0?"".concat(t.hours.toLocaleString("en-US",{minimumIntegerDigits:2}),":"):"",o="".concat(t.minutes.toLocaleString("en-US",{minimumIntegerDigits:t.hours>0?2:1})),r="".concat(t.seconds.toLocaleString("en-US",{minimumIntegerDigits:2}));return"".concat(n).concat(o,":").concat(r)}n.d(t,{CY:function(){return o},qQ:function(){return r},qt:function(){return i}})}}]);