(()=>{var n,t;n=function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{},[t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:n.hideDropdown,expression:"hideDropdown"}],staticClass:"nav-dropdown-group","class":{"is-open":n.isOpen}},[n.isAuthenticated?n._e():t("a",{staticClass:"nav-icon-button",attrs:{href:n.loginUrl,"aria-label":"Login","data-microtip-position":"bottom"}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 24"}},[t("g",{attrs:{transform:"translate(-1479.728 613.786)"}},[t("rect",{attrs:{width:"10",height:"12",rx:"5",transform:"translate(1484.728 -613.786)"}}),t("path",{attrs:{d:"M10,0h0A10,10,0,0,1,20,10v0a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0v0A10,10,0,0,1,10,0Z",transform:"translate(1479.728 -599.786)"}})])])]),n._v(" "),n.isAuthenticated?t("button",{staticClass:"nav-icon-button",attrs:{"aria-label":"My profile","data-microtip-position":"bottom"},on:{click:function(t){return t.preventDefault(),n.toggleDropdown(t)}}},[n.userData.hasUnreadNotifications?t("span",{staticClass:"nav-icon-button__toggle-count"}):n._e(),n._v(" "),n.avatar?n._e():t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 24"}},[t("g",{attrs:{transform:"translate(-1479.728 613.786)"}},[t("rect",{attrs:{width:"10",height:"12",rx:"5",transform:"translate(1484.728 -613.786)"}}),t("path",{attrs:{d:"M10,0h0A10,10,0,0,1,20,10v0a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0v0A10,10,0,0,1,10,0Z",transform:"translate(1479.728 -599.786)"}})])]),n._v(" "),n.avatar?t("img",{staticClass:"nav-icon-button__avatar",attrs:{src:n.avatar+"?width=120&height=120&quality=80",alt:"Your profile picture"}}):n._e()]):n._e(),n._v(" "),n.isAuthenticated?t("div",{directives:[{name:"show",rawName:"v-show",value:n.isOpen,expression:"isOpen"}],staticClass:"nav-dropdown-backdrop",on:{click:n.hideDropdown}}):n._e(),n._v(" "),n.isAuthenticated?t("div",{directives:[{name:"show",rawName:"v-show",value:n.isOpen,expression:"isOpen"}],ref:"notification-scroll-window",staticClass:"dropdown-menu"},[t("div",{staticClass:"dropdown-menu__section"},[t("a",{staticClass:"dropdown-menu__item",attrs:{href:"/my/profile/"}},[t("div",{staticClass:"profile-menu-item"},[t("div",{staticClass:"profile-menu-item__avatar"},[n.userData.avatar?n._e():t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 24"}},[t("g",{attrs:{transform:"translate(-1479.728 613.786)"}},[t("rect",{attrs:{width:"10",height:"12",rx:"5",transform:"translate(1484.728 -613.786)"}}),t("path",{attrs:{d:"M10,0h0A10,10,0,0,1,20,10v0a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0v0A10,10,0,0,1,10,0Z",transform:"translate(1479.728 -599.786)"}})])]),n._v(" "),n.userData.avatar?t("img",{attrs:{src:n.userData.avatar+"?width=120&height=120&quality=80",alt:n.userData.displayName}}):n._e()]),n._v(" "),t("div",{staticClass:"profile-menu-item__body"},[t("div",{staticClass:"profile-menu-item__name"},[n._v(n._s(n.userData.displayName))]),n._v(" "),t("div",{staticClass:"profile-menu-item__text"},[n._v("Manage your profile")])])])])]),n._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.userData.unreadTasks>0||n.userData.totalRecommendations>0,expression:"userData.unreadTasks > 0 || userData.totalRecommendations > 0"}],staticClass:"dropdown-menu__section notifications"},[t("h4",{staticClass:"notifications__heading"},[n._v("Notifications")]),n._v(" "),t("a",{directives:[{name:"show",rawName:"v-show",value:n.userData.unreadTasks>0,expression:"userData.unreadTasks > 0"}],staticClass:"notification notification--unread",attrs:{href:"/my/profile/"}},[t("div",{staticClass:"notification__body"},[t("h4",{staticClass:"notification__heading"},[n._v("You have "+n._s(n.userData.unreadTasks)+" "+n._s(1==n.userData.unreadTasks?"thing":"things")+" to finish")]),n._v(" "),t("p",{staticClass:"notification__text"},[n._v("You may have surveys to respond to or training to complete.")])])]),n._v(" "),t("a",{directives:[{name:"show",rawName:"v-show",value:n.userData.totalRecommendations>0,expression:"userData.totalRecommendations > 0"}],staticClass:"notification","class":{"notification--unread":n.userData.unreadRecommendations>0},attrs:{href:"/my/profile/"}},[t("div",{staticClass:"notification__body"},[n.userData.unreadRecommendations<=0?t("div",[t("h4",{staticClass:"notification__heading"},[n._v("You have "+n._s(n.userData.totalRecommendations)+" "+n._s(1==n.userData.totalRecommendations?"recommendation":"recommendations"))]),n._v(" "),1!=n.userData.totalRecommendations?t("p",{staticClass:"notification__text"},[n._v("We've chosen a few things that could help you with your career.")]):n._e(),n._v(" "),1==n.userData.totalRecommendations?t("p",{staticClass:"notification__text"},[n._v("We've chosen something that could help you with your career.")]):n._e()]):n._e(),n._v(" "),n.userData.unreadRecommendations>0?t("div",[t("h4",{staticClass:"notification__heading"},[n._v("You have "+n._s(n.userData.unreadRecommendations)+" new "+n._s(1==n.userData.unreadRecommendations?"recommendation":"recommendations"))]),n._v(" "),1!=n.userData.unreadRecommendations?t("p",{staticClass:"notification__text"},[n._v("We've chosen a few things that could help you with your career.")]):n._e(),n._v(" "),1==n.userData.unreadRecommendations?t("p",{staticClass:"notification__text"},[n._v("We've chosen something that could help you with your career.")]):n._e()]):n._e()])])]),n._v(" "),t("div",{staticClass:"dropdown-menu__section"},[t("a",{staticClass:"dropdown-menu__item",attrs:{href:"/my/profile/?launchModal=account"}},[t("svg",{staticClass:"icon icon--inline",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[t("path",{attrs:{d:"M452.515 237l31.843-18.382c9.426-5.441 13.996-16.542 11.177-27.054-11.404-42.531-33.842-80.547-64.058-110.797-7.68-7.688-19.575-9.246-28.985-3.811l-31.785 18.358a196.276 196.276 0 0 0-32.899-19.02V39.541a24.016 24.016 0 0 0-17.842-23.206c-41.761-11.107-86.117-11.121-127.93-.001-10.519 2.798-17.844 12.321-17.844 23.206v36.753a196.276 196.276 0 0 0-32.899 19.02l-31.785-18.358c-9.41-5.435-21.305-3.877-28.985 3.811-30.216 30.25-52.654 68.265-64.058 110.797-2.819 10.512 1.751 21.613 11.177 27.054L59.485 237a197.715 197.715 0 0 0 0 37.999l-31.843 18.382c-9.426 5.441-13.996 16.542-11.177 27.054 11.404 42.531 33.842 80.547 64.058 110.797 7.68 7.688 19.575 9.246 28.985 3.811l31.785-18.358a196.202 196.202 0 0 0 32.899 19.019v36.753a24.016 24.016 0 0 0 17.842 23.206c41.761 11.107 86.117 11.122 127.93.001 10.519-2.798 17.844-12.321 17.844-23.206v-36.753a196.34 196.34 0 0 0 32.899-19.019l31.785 18.358c9.41 5.435 21.305 3.877 28.985-3.811 30.216-30.25 52.654-68.266 64.058-110.797 2.819-10.512-1.751-21.613-11.177-27.054L452.515 275c1.22-12.65 1.22-25.35 0-38zm-52.679 63.019l43.819 25.289a200.138 200.138 0 0 1-33.849 58.528l-43.829-25.309c-31.984 27.397-36.659 30.077-76.168 44.029v50.599a200.917 200.917 0 0 1-67.618 0v-50.599c-39.504-13.95-44.196-16.642-76.168-44.029l-43.829 25.309a200.15 200.15 0 0 1-33.849-58.528l43.819-25.289c-7.63-41.299-7.634-46.719 0-88.038l-43.819-25.289c7.85-21.229 19.31-41.049 33.849-58.529l43.829 25.309c31.984-27.397 36.66-30.078 76.168-44.029V58.845a200.917 200.917 0 0 1 67.618 0v50.599c39.504 13.95 44.196 16.642 76.168 44.029l43.829-25.309a200.143 200.143 0 0 1 33.849 58.529l-43.819 25.289c7.631 41.3 7.634 46.718 0 88.037zM256 160c-52.935 0-96 43.065-96 96s43.065 96 96 96 96-43.065 96-96-43.065-96-96-96zm0 144c-26.468 0-48-21.532-48-48 0-26.467 21.532-48 48-48s48 21.533 48 48c0 26.468-21.532 48-48 48z"}})]),n._v("\n                    Account settings\n                ")]),n._v(" "),n._t("menu"),n._v(" "),t("a",{staticClass:"dropdown-menu__item",attrs:{href:"/logout"}},[t("svg",{staticClass:"icon icon--inline",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[t("path",{attrs:{d:"M272 112v51.6h-96c-26.5 0-48 21.5-48 48v88.6c0 26.5 21.5 48 48 48h96v51.6c0 42.6 51.7 64.2 81.9 33.9l144-143.9c18.7-18.7 18.7-49.1 0-67.9l-144-144C323.8 48 272 69.3 272 112zm192 144L320 400v-99.7H176v-88.6h144V112l144 144zM96 64h84c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H96c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h84c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H96c-53 0-96-43-96-96V160c0-53 43-96 96-96z"}})]),n._v("\n                    Sign out\n                ")])],2)]):n._e()])])};n._withStripped=!0;Vue.directive("click-outside",{bind:function(n,t,i){n.event=function(r){n==r.target||n.contains(r.target)||i.context[t.expression](r)};document.body.addEventListener("click",n.event)},unbind:function(n){document.body.removeEventListener("click",n.event)}});t=function(n,t){var r,i="function"==typeof n?n.options:n,f,u;return(t&&(i.render=t,i.staticRenderFns=[],i._compiled=!0),r)&&(i.functional?(i._injectStyles=r,f=i.render,i.render=function(n,t){return r.call(t),f(n,t)}):(u=i.beforeCreate,i.beforeCreate=u?[].concat(u,r):[r])),{exports:n,options:i}}({data:function(){return{userData:[],isOpen:!1,loaded:!1}},props:{isAuthenticated:Boolean,loginUrl:String,avatar:String},methods:{showDropdown:function(){this.isOpen=!0;window.innerWidth<768&&bodyScrollLock.disableBodyScroll(this.$refs["notification-scroll-window"],{reserveScrollBarGap:!0})},hideDropdown:function(){this.isOpen=!1;window.innerWidth<768&&this.$refs["notification-scroll-window"]&&bodyScrollLock.enableBodyScroll(this.$refs["notification-scroll-window"])},toggleDropdown:function(){!1===this.isOpen?this.showDropdown():this.hideDropdown()},loadUserData:function(){var n=this;this.$http.get("/API/ProfileDashboard/GetUserProfileHeaderDropdown").then(function(t){n.loaded=!0;n.userData=t.data;_.each(n.userData.recommendations,function(n){Vue.set(n,"processing",!1)})})},handleRecommendationClick:function(n){if(!n.processing){n.processing=!0;var t={nextBestActionId:n.id};this.$http.post("/api/profileDashboard/handleNextBestActionClickThrough",t).then(function(){window.location.href=n.url})}}},mounted:function(){this.loadUserData()}},n);const i=t.exports;null!==document.getElementById("vue-app-header")&&(Vue.directive("click-outside",{bind:function(n,t,i){n.event=function(r){n==r.target||n.contains(r.target)||i.context[t.expression](r)};document.body.addEventListener("click",n.event)},unbind:function(n){document.body.removeEventListener("click",n.event)}}),new Vue({el:"#vue-app-header",data:{showMobileNav:!1,showGlobalModal:window.ssInit.showGlobalModal,openMobileNavItems:[],openDesktopNavItem:"",playCarousels:!1},components:{HeaderNotificationMenu:i,carousel:VueCarousel.Carousel,slide:VueCarousel.Slide},methods:{toggleMobileNav:function(){this.showMobileNav?(this.showMobileNav=!1,bodyScrollLock.enableBodyScroll(this.$refs["mobile-nav-scroll-window"])):(this.showMobileNav=!0,bodyScrollLock.disableBodyScroll(this.$refs["mobile-nav-scroll-window"],{reserveScrollBarGap:!0}))},hideMobileNav:function(){this.showMobileNav=!1;bodyScrollLock.enableBodyScroll(this.$refs["mobile-nav-scroll-window"])},toggleDesktopNavItem:function(n){this.openDesktopNavItem=this.openDesktopNavItem==n?"":n},hideDesktopNavItems:function(){this.openDesktopNavItem=""},dismissGlobalModal:function(){this.showGlobalModal=!1;this.$http.post("/API/Notifications/DismissGlobalModal").then(function(){})},clickThroughGlobalModal:function(n){this.$http.post("/API/vision/UserCampaignModalClicked").then(function(){this.$http.post("/API/Notifications/DismissGlobalModal").then(function(){window.location.href=n})})},clickThroughAnnouncementBar:function(n){this.$http.post("/API/vision/UserCampaignAnnouncementBarClicked").then(function(){window.location.href=n})},toggleMobileNavItem:function(n){var t=this.openMobileNavItems.indexOf(n);t<0?this.openMobileNavItems.push(n):this.openMobileNavItems.splice(t,1)},setDropdownCssVariables:function(){var n=document.getElementsByClassName("site-nav__dropdown"),t=window.innerWidth;_.each(n,function(n){n.classList.remove("ready");n.style.setProperty("--viewport-overflow-x","0px");var i=n.getBoundingClientRect().left+n.offsetWidth+30-t;i<0&&(i=0);n.style.setProperty("--viewport-overflow-x",i+"px");n.classList.add("ready")})}},mounted:function(){var n,t=this;Vue.nextTick(function(){t.setDropdownCssVariables()});window.onresize=function(){clearTimeout(n);n=setTimeout(t.setDropdownCssVariables,100)}}}))})();null!==document.getElementById("vue-app-footer")&&new Vue({el:"#vue-app-footer",data:{},components:{},methods:{clickThroughFooterBanner:function(n){this.$http.post("/API/Vision/UserCampaignFooterBannerClicked").then(function(){window.location.href=n})}},mounted:function(){}});(()=>{function n(n,t,i,r,u,f,e,o){var h,s="function"==typeof n?n.options:n,l,c;return(t&&(s.render=t,s.staticRenderFns=i,s._compiled=!0),r&&(s.functional=!0),f&&(s._scopeId="data-v-"+f),e?(h=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__);u&&u.call(this,n);n&&n._registeredComponents&&n._registeredComponents.add(e)},s._ssrRegister=h):u&&(h=o?function(){u.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:u),h)&&(s.functional?(s._injectStyles=h,l=s.render,s.render=function(n,t){return h.call(t),l(n,t)}):(c=s.beforeCreate,s.beforeCreate=c?[].concat(c,h):[h])),{exports:n,options:s}}var t,i,r,u;t=function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{staticClass:"articles-section"},[t("div",{directives:[{name:"show",rawName:"v-show",value:n.loading,expression:"loading"}]},[t("div",{staticClass:"recommendation-slider-skeleton"},n._l(3,function(){return t("div",{staticClass:"recommendation-slider-skeleton__item"},[n._m(0,!0)])}),0)]),n._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!n.loading,expression:"!loading"}]},[t("div",{staticClass:"articles-section__header articles-section__header--no-m-bottom","class":{"articles-section__header--no-subheading":!n.subheading}},[t("div",[n.heading?t("h2",{staticClass:"articles-section__heading"},[n._v(n._s(n.heading))]):n._e(),n._v(" "),n.subheading?t("p",{staticClass:"articles-section__subheading"},[n._v(n._s(n.subheading))]):n._e()]),n._v(" "),n.moreButtonUrl&&n.moreButtonText?t("a",{staticClass:"articles-section__more",attrs:{href:n.moreButtonUrl}},[n._v("\n                "+n._s(n.moreButtonText)+"\n                "),t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17.369",height:"11.42",viewBox:"0 0 17.369 11.42"}},[t("g",{attrs:{transform:"translate(-117.778 -5.986)"}},[t("path",{attrs:{d:"M-13394.2-6954.02h16",transform:"translate(13511.979 6965.837)",fill:"none",stroke:"currentColor","stroke-width":"2"}}),n._v(" "),t("path",{attrs:{d:"M0,7.07l7.035-.035L7.07,0",transform:"translate(123.735 11.696) rotate(-45)",fill:"none",stroke:"currentColor","stroke-width":"2"}})])])]):n._e()]),n._v(" "),t("div",{staticClass:"recommendation-slider","class":{"recommendation-slider--no-slide":!n.enableSlider,"recommendation-slider--one-only":n.items.length<2}},[t("div",{staticClass:"recommendation-slider__carousel"},[t("div",{ref:"recommendation-slider",staticClass:"recommendation-slider__inner","class":{active:n.isDown}},n._l(n.items,function(i){return t("div",{ref:"recommendation-slider-item",refInFor:!0,staticClass:"recommendation-slider__item"},[t("Opportunity-Card",{attrs:{url:i.Url,image:n.hideImage?"":i.Image,"image-alt":i.ImageAlt,featured:i.Featured,"is-postponed":i.IsPostponed,"is-sold-out":i.IsSoldOut,"card-type":n.hideType?"":i.CardType,"card-type-slugified":i.CardTypeSlugified,date:i.EntityDateFormatted,synopsis:i.Synopsis,"apply-by-date":i.ApplicationDeadlineDateFormatted,source:i.OwnerName,company:i.CompanyName,"has-video":i.HasVideo,"video-iframe":i.VideoIframe,"no-crop":n.noCrop,"is-screenskills-funded--":i.IsScreenSkillsFunded,"is-external":i.IsExternal,"domain-friendly-name":i.DomainFriendlyName,"is-recommended":n.allCardsAreRecommended||void 0!==n.recommendedIdsForCurrentUser&&n.recommendedIdsForCurrentUser.includes(i.objectID),"button-text":n.cardButtonText,"disable-click":n.isDragged,price:"e-learning"!=i.CardType?i.PriceAsString:"",location:"e-learning"!=i.CardType?i.LocationName:"",industries:"e-learning"!=i.CardType?i.IndustriesFormatted:"","is-free":"e-learning"!=i.CardType?i.IsFree:null},scopedSlots:n._u([{key:"title",fn:function(){return[n._v("\n                                "+n._s(i.Title)+"\n                            ")]},proxy:!0}],null,!0)})],1)}),0)]),n._v(" "),n.enableSlider?t("div",{staticClass:"recommendation-slider__nav"},[t("button",{staticClass:"recommendation-slider__prev","class":{enabled:n.showPrevButton},attrs:{"aria-label":"Previous",title:"Previous",disabled:!n.showPrevButton},on:{click:function(t){return t.preventDefault(),n.previousItem(t)}}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"58.01",height:"34.99",viewBox:"0 0 58.01 34.99"}},[t("g",{attrs:{transform:"translate(3.01 1.495)"}},[t("line",{attrs:{x1:"55",transform:"translate(0 16)",fill:"none",stroke:"currentColor","stroke-width":"4"}}),n._v(" "),t("path",{attrs:{d:"M20.828,45.414l-18,16,18,16",transform:"translate(-2.828 -45.414)",fill:"none",stroke:"currentColor","stroke-width":"4"}})])])]),n._v(" "),t("button",{staticClass:"recommendation-slider__next","class":{enabled:n.showNextButton},attrs:{"aria-label":"Next",title:"Next",disabled:!n.showNextButton},on:{click:function(t){return t.preventDefault(),n.nextItem(t)}}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"58.01",height:"34.99",viewBox:"0 0 58.01 34.99"}},[t("g",{attrs:{transform:"translate(0 1.495)"}},[t("line",{attrs:{x2:"55",transform:"translate(0 16)",fill:"none",stroke:"currentColor","stroke-width":"4"}}),n._v(" "),t("path",{attrs:{d:"M2.828,45.414l18,16-18,16",transform:"translate(34.172 -45.414)",fill:"none",stroke:"currentColor","stroke-width":"4"}})])])])]):n._e()]),n._v(" "),n.moreButtonUrl&&n.moreButtonText?t("a",{staticClass:"articles-section__more-mobile",attrs:{href:n.moreButtonUrl}},[n._v("\n            "+n._s(n.moreButtonText)+"\n            "),t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17.369",height:"11.42",viewBox:"0 0 17.369 11.42"}},[t("g",{attrs:{transform:"translate(-117.778 -5.986)"}},[t("path",{attrs:{d:"M-13394.2-6954.02h16",transform:"translate(13511.979 6965.837)",fill:"none",stroke:"currentColor","stroke-width":"2"}}),n._v(" "),t("path",{attrs:{d:"M0,7.07l7.035-.035L7.07,0",transform:"translate(123.735 11.696) rotate(-45)",fill:"none",stroke:"currentColor","stroke-width":"2"}})])])]):n._e()])])};t._withStripped=!0;i=function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{staticClass:"opportunity-card","class":[{"opportunity-card--loading":n.loading,"opportunity-card--no-crop":n.noCrop,"opportunity-card--has-synopsis":n.synopsis,"opportunity-card--has-video":n.hasVideo,"opportunity-card--has-img":n.image,"opportunity-card--featured":n.featured,"opportunity-card--has-badge":n.isPostponed||n.isSoldOut||n.isFree},"opportunity-card--"+n.cardTypeSlugified]},[t("a",{staticClass:"opportunity-card__link",attrs:{href:n.url,"aria-label":n.ariaLabel},on:{click:function(t){return t.preventDefault(),n.handleClick(t)}}}),n._v(" "),n.image&&!n.hasVideo?t("div",{staticClass:"opportunity-card__img"},[!n.isRecommended||n.isValid||n.isExpired?n._e():t("div",{staticClass:"opportunity-card__recommended"},[t("div",{staticClass:"badge"},[n._v("Relevant to you")])]),n._v(" "),n.isValid&&!n.isExpired?t("div",{staticClass:"opportunity-card__certificate-status"},[t("div",{staticClass:"badge badge--success",attrs:{title:"Completed"}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[t("path",{attrs:{d:"M413.505 91.951L133.49 371.966l-98.995-98.995c-4.686-4.686-12.284-4.686-16.971 0L6.211 284.284c-4.686 4.686-4.686 12.284 0 16.971l118.794 118.794c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.686-4.686-12.284-4.686-16.97 0z"}})]),n._v("\n                Completed\n            ")])]):n._e(),n._v(" "),n.isExpired?t("div",{staticClass:"opportunity-card__certificate-status"},[t("div",{staticClass:"badge badge--danger",attrs:{title:"Your certificate has expired"}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},[t("path",{attrs:{d:"M270.2 160h35.5c3.4 0 6.1 2.8 6 6.2l-7.5 196c-.1 3.2-2.8 5.8-6 5.8h-20.5c-3.2 0-5.9-2.5-6-5.8l-7.5-196c-.1-3.4 2.6-6.2 6-6.2zM288 388c-15.5 0-28 12.5-28 28s12.5 28 28 28 28-12.5 28-28-12.5-28-28-28zm281.5 52L329.6 24c-18.4-32-64.7-32-83.2 0L6.5 440c-18.4 31.9 4.6 72 41.6 72H528c36.8 0 60-40 41.5-72zM528 480H48c-12.3 0-20-13.3-13.9-24l240-416c6.1-10.6 21.6-10.7 27.7 0l240 416c6.2 10.6-1.5 24-13.8 24z"}})]),n._v("\n                Expired\n            ")])]):n._e(),n._v(" "),t("img",{attrs:{src:n.image,alt:n.imageAlt}})]):n._e(),n._v(" "),n.image&&n.hasVideo?t("a",{staticClass:"opportunity-card__img",attrs:{href:n.url},on:{click:function(t){t.preventDefault();n.showVideoModal=!0}}},[n.isRecommended?t("div",{staticClass:"opportunity-card__recommended"},[t("div",{staticClass:"badge"},[n._v("Relevant to you")])]):n._e(),n._v(" "),t("svg",{staticClass:"opportunity-card__play-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 565.648 565.648"}},[t("path",{attrs:{d:"m282.824 0c-155.947 0-282.824 126.877-282.824 282.824s126.877 282.824 282.824 282.824 282.824-126.877 282.824-282.824-126.877-282.824-282.824-282.824zm-70.706 424.233v-282.822l212.118 141.41z"}})]),n._v(" "),t("img",{attrs:{src:n.image,alt:n.imageAlt}})]):n._e(),n._v(" "),t("div",{staticClass:"opportunity-card__body"},[n.isRecommended&&!n.image?t("div",{staticClass:"opportunity-card__recommended"},[t("div",{staticClass:"badge"},[n._v("Relevant to you")])]):n._e(),n._v(" "),n.cardType?t("div",{staticClass:"opportunity-card__type"},[n._v(n._s(n.cardType))]):n._e(),n._v(" "),t("h3",{staticClass:"opportunity-card__heading"},[n._t("title")],2),n._v(" "),n.date?t("p",{staticClass:"opportunity-card__date"},[n._v(n._s(n.date))]):n._e(),n._v(" "),n.synopsis?t("p",{staticClass:"opportunity-card__synopsis"},[n._v(n._s(n.synopsis))]):n._e(),n._v(" "),t("p",{staticClass:"opportunity-card__meta"},[n.company?t("span",{staticClass:"opportunity-card__company"},[n._v(n._s(n.company))]):n._e(),n._v(" "),n.industries?t("span",{staticClass:"opportunity-card__industries"},[n._v(n._s(n.industries))]):n._e(),n._v(" "),n.location?t("span",{staticClass:"opportunity-card__location"},[n._v(n._s(n.location))]):n._e(),n._v(" "),n.price?t("span",{staticClass:"opportunity-card__price"},[n._v(n._s(n.price))]):n._e(),n._v(" "),n.isScreenskillsFunded?t("span",{staticClass:"opportunity-card__funder"},[n._v("ScreenSkills funded")]):n._e(),n._v(" "),n.isBursaryApplicable?t("span",{staticClass:"opportunity-card__bursary"},[n._v("Bursary applicable")]):n._e(),n._v(" "),n.applyByDate?t("span",{staticClass:"opportunity-card__deadline"},[n._v("Apply by "+n._s(n.applyByDate))]):n._e()]),n._v(" "),n.source?t("p",{staticClass:"opportunity-card__meta"},[t("span",{staticClass:"opportunity-card__source"},[n._v("Source: "+n._s(n.source))])]):n._e(),n._v(" "),t("div",{staticClass:"opportunity-card__buttons"},[t("div",{staticClass:"button button--xs button--primary button--outline"},[n._v(n._s(n.buttonText?n.buttonText:"Find out more"))])])]),n._v(" "),n.showExternalModal?t("Profile-Dashboard-Modal-Window",{staticClass:"modal--confirm",attrs:{"cancel-button-text":"Cancel"},on:{close:function(){n.showExternalModal=!1},click:function(t){t.preventDefault();n.showExternalModal=!0}},scopedSlots:n._u([{key:"heading",fn:function(){return[n._v("\n            You are now leaving screenskills.com\n        ")]},proxy:!0},{key:"body",fn:function(){return[t("p",{staticClass:"modal__text"},[n._v("This page content is hosted on "),t("strong",[n._v(n._s(n.domainFriendlyName))]),n._v(".")]),n._v(" "),t("p",{staticClass:"modal__text"},[n._v("You can click 'back' in your browser when you're ready to return to this page.")])]},proxy:!0},{key:"footer",fn:function(){return[t("a",{staticClass:"modal__accept button button--primary",attrs:{href:n.url}},[n._v("Continue")]),n._v(" "),t("button",{staticClass:"modal__cancel button button--link",on:{click:function(t){t.preventDefault();n.showExternalModal=!1}}},[n._v("Cancel")])]},proxy:!0}],null,!1,4251072342)}):n._e(),n._v(" "),n.showVideoModal?t("Profile-Dashboard-Modal-Window",{staticClass:"modal--video",attrs:{"cancel-button-text":"Cancel"},on:{close:function(){n.showVideoModal=!1},click:function(t){t.preventDefault();n.showVideoModal=!0}},scopedSlots:n._u([{key:"heading",fn:function(){},proxy:!0},{key:"body",fn:function(){return[t("div",{staticClass:"video-wrapper",domProps:{innerHTML:n._s(n.videoIframe)}})]},proxy:!0},{key:"footer",fn:function(){},proxy:!0}],null,!1,1048626190)}):n._e()],1)};i._withStripped=!0;r=function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("transition",{attrs:{name:"modal"}},[t("div",{staticClass:"modal","class":n.modalClass,attrs:{"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"}},[t("div",{staticClass:"modal__overlay",attrs:{tabindex:"-1"},on:{click:function(){return n.$emit("close")}}}),n._v(" "),t("div",{staticClass:"modal__window"},[t("div",{staticClass:"modal__header"},[t("h3",{staticClass:"modal__heading"},[n._t("heading")],2),n._v(" "),t("button",{staticClass:"modal__close icon-button",attrs:{"aria-label":"Close",title:"Close"},on:{click:function(t){return t.preventDefault(),n.$emit("close")}}},[t("svg",{staticClass:"icon icon--md",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},[t("path",{attrs:{d:"M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"}})])])]),n._v(" "),t("div",{ref:"modal-scroll-window",staticClass:"modal__body"},[n._t("body")],2),n._v(" "),n.hasFooterSlot()?t("div",{staticClass:"modal__footer"},[n._t("footer")],2):n._e()])])])};r._withStripped=!0;const f=n({props:{modalClass:String},methods:{hasFooterSlot:function(){return!!this.$slots.footer}},mounted:function(){document.body.classList.add("modal-open");bodyScrollLock.disableBodyScroll(this.$refs["modal-scroll-window"],{reserveScrollBarGap:!0});this.$emit("open")},beforeDestroy:function(){document.body.classList.remove("modal-open");bodyScrollLock.enableBodyScroll(this.$refs["modal-scroll-window"])}},r,[],!1,null,null,null).exports,e=n({components:{ProfileDashboardModalWindow:f},data:function(){return{showExternalModal:!1,showVideoModal:!1}},props:{url:String,image:String,imageAlt:String,featured:Boolean,isPostponed:Boolean,isSoldOut:Boolean,isFree:Boolean,cardType:String,cardTypeSlugified:String,date:String,applyByDate:String,company:String,industries:String,source:String,location:String,price:String,videoIframe:String,isScreenskillsFunded:Boolean,isBursaryApplicable:Boolean,isExternal:Boolean,hasVideo:Boolean,domainFriendlyName:String,noCrop:Boolean,buttonText:String,isRecommended:Boolean,isValid:Boolean,isExpired:Boolean,synopsis:String,loading:Boolean,disableClick:Boolean},computed:{titleSlotAsString:function(){return this.$slots.title?this.$slots.title[0].text.trim():""},ariaLabel:function(){return this.titleSlotAsString?"Read "+this.titleSlotAsString:this.buttonText?this.buttonText:"Find out more"}},methods:{handleClick:function(){if(this.disableClick)return!1;this.isExternal?this.showExternalModal=!0:window.location=this.url}}},i,[],!1,null,null,null).exports,o=n({components:{OpportunityCard:e},data:function(){return{showModal:!1,itemCount:0,hasItems:!1,enableSlider:!1,isDragged:!1,isDown:!1,showNextButton:!0,showPrevButton:!1}},props:{items:Array,heading:String,subheading:String,hideType:Boolean,hideImage:Boolean,moreButtonText:String,moreButtonUrl:String,noCrop:Boolean,cardButtonText:String,loading:Boolean,allCardsAreRecommended:Boolean,recommendedIdsForCurrentUser:Array},watch:{items:function(){this.setEnableSlider()}},methods:{setEnableSlider:function(){this.itemCount=this.items.length;this.hasItems=this.itemCount>0;this.enableSlider=this.itemCount>=4;this.enableSlider&&this.bindSlider()},bindSlider:function(){var i,r,u,t=this,n=this.$refs["recommendation-slider"];n.addEventListener("mousedown",function(u){t.isDown=!0;i=u.pageX-n.offsetLeft;r=n.scrollLeft});n.addEventListener("mouseleave",function(){t.isDown=!1});n.addEventListener("mouseup",function(){t.isDown=!1});n.addEventListener("mousemove",function(f){var e,o;t.isDown&&(f.preventDefault(),e=t,clearTimeout(u),setTimeout(function(){e.isDragged=!0},100),u=setTimeout(function(){e.isDragged=!1},300),o=f.pageX-n.offsetLeft-i,n.scrollLeft=r-o)});n.addEventListener("scroll",function(){var i=n.scrollLeft,r=n.scrollWidth-n.clientWidth;t.showPrevButton=i>0;t.showNextButton=i<r})},nextItem:function(){var i=this.$refs["recommendation-slider"],n=this.$refs["recommendation-slider-item"][1],r=window.getComputedStyle?getComputedStyle(n,null):n.currentStyle,u=parseInt(r.marginRight)||0,t=n.offsetWidth+u,f=i.scrollLeft,e=Math.round(f/t)*t;i.scrollLeft=e+t},previousItem:function(){var i=this.$refs["recommendation-slider"],n=this.$refs["recommendation-slider-item"][1],r=window.getComputedStyle?getComputedStyle(n,null):n.currentStyle,u=parseInt(r.marginRight)||0,t=n.offsetWidth+u,f=i.scrollLeft,e=Math.ceil(f/t)*t;i.scrollLeft=e-t}},mounted:function(){this.itemCount=this.items.length;this.hasItems=this.itemCount>0;this.enableSlider=this.itemCount>=4;this.enableSlider&&this.bindSlider()}},t,[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"opportunity-card-skeleton"},[n("div",{staticClass:"opportunity-card-skeleton__image"}),t._v(" "),n("div",{staticClass:"opportunity-card-skeleton__body"},[n("div",{staticClass:"opportunity-card-skeleton__heading"}),t._v(" "),n("div",{staticClass:"opportunity-card-skeleton__text"}),t._v(" "),n("div",{staticClass:"opportunity-card-skeleton__button skeleton-button skeleton-button--xs"})])])}],!1,null,null,null).exports;u=function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{},[t("div",{directives:[{name:"show",rawName:"v-show",value:n.loading,expression:"loading"}]},[t("div",{staticClass:"row row--wrap"},n._l(4,function(){return t("div",{staticClass:"col col--sm-3-12 col--m-bottom"},[n._m(0,!0)])}),0)]),n._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!n.loading,expression:"!loading"}],staticClass:"articles-section"},[t("div",{staticClass:"articles-section__header"},[t("div",[n.heading?t("h2",{staticClass:"articles-section__heading"},[n._v(n._s(n.heading))]):n._e(),n._v(" "),n.subheading?t("p",{staticClass:"articles-section__subheading"},[n._v(n._s(n.subheading))]):n._e()]),n._v(" "),n.moreButtonUrl&&n.moreButtonText?t("a",{staticClass:"articles-section__more",attrs:{href:n.moreButtonUrl}},[n._v("\n                "+n._s(n.moreButtonText)+"\n                "),t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17.369",height:"11.42",viewBox:"0 0 17.369 11.42"}},[t("g",{attrs:{transform:"translate(-117.778 -5.986)"}},[t("path",{attrs:{d:"M-13394.2-6954.02h16",transform:"translate(13511.979 6965.837)",fill:"none",stroke:"#ff0198","stroke-width":"2"}}),n._v(" "),t("path",{attrs:{d:"M0,7.07l7.035-.035L7.07,0",transform:"translate(123.735 11.696) rotate(-45)",fill:"none",stroke:"#ff0198","stroke-width":"2"}})])])]):n._e()]),n._v(" "),t("div",{staticClass:"row row--wrap"},n._l(n.items,function(i){return t("div",{staticClass:"col col--sm-3-12 col--m-bottom"},[t("Opportunity-Card",{staticClass:"opportunity-card--no-panel",attrs:{url:i.Url,image:i.Image,"image-alt":i.ImageAlt,featured:i.Featured,"is-postponed":i.IsPostponed,"is-sold-out":i.IsSoldOut,"is-free":i.IsFree,"card-type":i.EntityDateFormatted,"card-type-slugified":i.CardTypeSlugified,"apply-by-date":i.ApplicationDeadlineDateFormatted,source:i.OwnerName,location:i.LocationName,company:i.CompanyName,industries:i.IndustriesFormatted,price:i.PriceAsString,"has-video":i.HasVideo,"video-iframe":i.VideoIframe,"no-crop":n.noCrop,"is-screenskills-funded":i.IsScreenSkillsFunded,"is-external":i.IsExternal,"domain-friendly-name":i.DomainFriendlyName,"is-recommended":n.allCardsAreRecommended,"button-text":n.cardButtonText},scopedSlots:n._u([{key:"title",fn:function(){return[n._v("\n                        "+n._s(i.Title)+"\n                    ")]},proxy:!0}],null,!0)})],1)}),0),n._v(" "),n.moreButtonUrl&&n.moreButtonText?t("a",{staticClass:"articles-section__more-mobile",attrs:{href:n.moreButtonUrl}},[n._v("\n            "+n._s(n.moreButtonText)+"\n            "),t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17.369",height:"11.42",viewBox:"0 0 17.369 11.42"}},[t("g",{attrs:{transform:"translate(-117.778 -5.986)"}},[t("path",{attrs:{d:"M-13394.2-6954.02h16",transform:"translate(13511.979 6965.837)",fill:"none",stroke:"#ff0198","stroke-width":"2"}}),n._v(" "),t("path",{attrs:{d:"M0,7.07l7.035-.035L7.07,0",transform:"translate(123.735 11.696) rotate(-45)",fill:"none",stroke:"#ff0198","stroke-width":"2"}})])])]):n._e()])])};u._withStripped=!0;const s=n({components:{OpportunityCard:e},data:function(){return{showModal:!1,itemCount:0,hasItems:!1}},props:{items:Array,heading:String,subheading:String,hideType:Boolean,moreButtonText:String,moreButtonUrl:String,noCrop:Boolean,cardButtonText:String,loading:Boolean,allCardsAreRecommended:Boolean},methods:{},mounted:function(){}},u,[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"opportunity-card-skeleton"},[n("div",{staticClass:"opportunity-card-skeleton__image"}),t._v(" "),n("div",{staticClass:"opportunity-card-skeleton__body"},[n("div",{staticClass:"opportunity-card-skeleton__heading"}),t._v(" "),n("div",{staticClass:"opportunity-card-skeleton__text"}),t._v(" "),n("div",{staticClass:"opportunity-card-skeleton__button skeleton-button skeleton-button--xs"})])])}],!1,null,null,null).exports;null!==document.getElementById("vue-app-home-page")&&new Vue({el:"#vue-app-home-page",components:{RecommendationCarousel:o,ArticleGrid:s,ProfileDashboardModalWindow:f},data:{isCurrentUserLoggedIn:window.ssInit.isCurrentUserLoggedIn,loadingLatestOpportunities:!0,latestOpportunityItems:[],loadingRecommendedOpportunities:!0,recommendedOpportunityItems:[],loadingLatestElearning:!0,latestElearningItems:[],loadingRecommendedElearning:!0,recommendedElearningItems:[],loadingLatestJobs:!0,latestJobsBoardItems:[],loadingRecommendedJobs:!0,recommendedJobsBoardItems:[],loadingLatestCaseStudies:!0,latestCaseStudies:[],loadingRecommendedCaseStudies:!0,recommendedCaseStudies:[]},methods:{clickThroughSpotlightOverride:function(n){this.$http.post("/API/vision/UserCampaignSpotlightOverrideClicked").then(function(){window.location.href=n})},loadOpportunities:function(){var n=this;this.$http.get("/api/Search/Opportunities?pageSize=12&fundingOptions=ScreenSkills%20funded%20only").then(function(t){n.latestOpportunityItems=t.data.Hits;n.loadingLatestOpportunities=!1});this.isCurrentUserLoggedIn?this.$http.get("/api/Recommended/TrainingOpportunitiesForUser?take=12").then(function(t){n.recommendedOpportunityItems=t.data;n.loadingRecommendedOpportunities=!1}):this.loadingRecommendedOpportunities=!1},loadElearning:function(){var n=this;this.$http.get("/api/Search/ELearning?pageSize=12").then(function(t){n.latestElearningItems=t.data.Hits;n.loadingLatestElearning=!1});this.isCurrentUserLoggedIn?this.$http.get("/api/Recommended/ElearningForUser?take=12").then(function(t){n.recommendedElearningItems=t.data;n.loadingRecommendedElearning=!1}):this.loadingRecommendedElearning=!1},loadCaseStudies:function(){var n=this;this.$http.get("/api/Search/CaseStudies?pageSize=12").then(function(t){n.latestCaseStudies=t.data.Hits;n.loadingLatestCaseStudies=!1});this.isCurrentUserLoggedIn?this.$http.get("/api/Recommended/CaseStudiesForUser?take=12").then(function(t){n.recommendedCaseStudies=t.data;n.loadingRecommendedCaseStudies=!1}):this.loadingRecommendedCaseStudies=!1}},mounted:function(){this.loadOpportunities();this.loadElearning();this.loadCaseStudies()}})})()