1"use strict";(self.webpackChunklearn_my_way=self.webpackChunklearn_my_way||[]).push([[653],{4154:(O,D,l)=>{l.d(D,{D:()=>r});const r={editMyDetailsStatePath:"edit-my-details",editMyDetailsTitle:"Edit my details | Learn My Way"}},2653:(O,D,l)=>{l.r(D),l.d(D,{LmwBaseModule:()=>aa});var r=l(316),c=l(2728),M=l(4912),H=l(8824),p=l(4456),u=l(5946),t=l(8559),h=l(6016),L=l(4041),X=l(3261),f=l(3889);const rt=[[["","main",""]],[["","switcher",""]],[["","linkList",""]]],lt=["[main]","[switcher]","[linkList]"];let ut=(()=>{var a;class i{constructor(){this.dateObject=Date.now()}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-footer"]],ngContentSelectors:lt,decls:18,vars:4,consts:[["id","footer",1,"footer"],[1,"footer__top"],[1,"grid-container"],[1,"grid-x"],[1,"cell","small-12","medium-6"],[1,"cell","small-12","medium-7"],[1,"no-bullet","flex-container"],["data-test","mono-common-footer-copyright",1,"cell","small-12","medium-5","text-center","medium-text-right","footer__copyright"],["href","https://goodthingsfoundation.org","target","_blank"]],template:function(o,e){1&o&&(t.NAR(rt),t.j41(0,"footer",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.SdG(5),t.k0s(),t.j41(6,"div",4),t.SdG(7,1),t.k0s()()()(),t.j41(8,"div",2)(9,"div",3)(10,"div",5)(11,"ul",6),t.SdG(12,2),t.k0s()(),t.j41(13,"div",7),t.EFF(14),t.nI1(15,"date"),t.j41(16,"a",8),t.EFF(17,"Good Things Foundation"),t.k0s()()()()()),2&o&&(t.R
17$(14),t.SpI(" \xa9 ",t.i5U(15,1,e.dateObject,"yyyy")," "))},dependencies:[r.vh],encapsulation:2}),i})();const B=()=>({exact:!0}),$=a=>["/",a];function mt(a,i){1&a&&(t.j41(0,"a",14),t.qSk(),t.j41(1,"svg",15),t.nrm(2,"use",16),t.k0s(),t.EFF(3," Newidiwch i'r fersiwn Gymraeg "),t.k0s())}function ct(a,i){1&a&&(t.j41(0,"a",17),t.EFF(1," Switch to the English site "),t.qSk(),t.j41(2,"svg",18),t.nrm(3,"use",19),t.k0s()())}function dt(a,i){if(1&a&&(t.j41(0,"li")(1,"a",12),t.EFF(2),t.nI1(3,"async"),t.k0s()()),2&a){let n;const o=t.XpG();t.R7$(),t.Y8G("routerLinkActiveOptions",t.lJ4(5,B))("routerLink",t.eq3(6,$,o.cookiesPageLink)),t.R7$(),t.JRh(null==(n=t.bMT(3,3,o.footerCms))||null==n.data||null==n.data.attributes?null:n.data.attributes.cookiesLink)}}let pt=(()=>{var a;class i{constructor(o,e){this.strapiService=o,this.locale=e,this.privacyPageLink=u.c.privacyStatePath,this.cookiesPageLink=u.c.cookiesStatePath,this.termsAndConditionsPageLink=u.c.termsAndConditionsStatePath,this.accessibilityPageLink=u.c.accessibilityStatePath,this.reportAnIssuePageLink=u.c.reportAnIssueStatePath,this.loadCookies=f.c.loadCookies}ngOnInit(){this.footerCms=this.strapiService.get("footer").pipe((0,L.H)(1),(0,X.B)())}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(h.dr),t.rXU(t.xe9))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-footer-base"]],decls:34,vars:41,consts:[["main",""],[1,"flex-container","align-middle","align-left","margin-bottom-1"],["src","assets/images/learn-my-way-logo.png","alt","Learn My Way logo","width","100%","height","100%",1,"footer__learn-my-way-logo"],[1,"small"],["href","https://goodthingsfoundation.org","rel","noopener","target","_blank"],["src","assets/images/good-things-logo.svg","alt","Good Things Foundation logo","width","100%","height","100%",1,"footer__good-things-logo"],[1,"margin-bottom-1-5"],["switcher",""],[1,"flex-container","align-right","align-bottom","height-100","padding-bottom-1-5"],["class","button clear button--icon-on-left height-auto font-large","href","https://www.wales.learnmyway.com/","rel","noferrer",4,"ngIf"],["class","button clear button--icon-on-right height-auto font-large padding-right-0","href","https://learnmyway.com","rel","noferrer",4,"ngIf"],["linkList",""],["routerLinkActive","active no-underline",3,"routerLinkActiveOptions","routerLink"],[4,"ngIf"],["href","https://www.wales.learnmyway.com/","rel","noferrer",1,"button","clear","button--icon-on-left","height-auto","font-large"],[1,"icon","icon--welsh-dragon","icon--primary","margin-right-0-5"],[0,"xlink","href","#icon-welsh-dragon","href","#icon-welsh-dragon"],["href","https://learnmyway.com","rel","noferrer",1,"button","clear","button--icon-on-right","height-auto","font-large","padding-right-0"],[1,"icon","icon--swap","icon--material","margin-left-0-5"],[0,"xlink","href","#icon-swap","href","#icon-swap"]],template:function(o,e){if(1&o&&(t.j41(0,"mono-common-footer"),t.qex(1,0),t.j41(2,"div",1),t.nrm(3,"img",2),t.j41(4,"strong",3),t.EFF(5),t.nI1(6,"async"),t.k0s(),t.j41(7,"a",4),t.nrm(8,"img",5),t.k0s()(),t.j41(9,"p",6),t.EFF(10),t.nI1(11,"async"),t.k0s(),t.bVm(),t.qex(12,7),t.j41(13,"div",8),t.DNE(14,mt,4,0,"a",9)(15,ct,4,0,"a",10),t.k0s(),t.bVm(),t.qex(16,11),t.j41(17,"li")(18,"a",12),t.EFF(19),t.nI1(20,"async"),t.k0s()(),t.DNE(21,dt,4,8,"li",13),t.j41(22,"li")(23,"a",12),t.EFF(24),t.nI1(25,"async"),t.k0s()(),t.j41(26,"li")(27,"a",12),t.EFF(28),t.nI1(29,"async"),t.k0s()(),t.j41(30,"li")(31,"a",12),t.EFF(32),t.nI1(33,"async"),t.k0s()(),t.bVm(),t.k0s()),2&o){let s,m,d,g,S,_;t.R7$(5),t.JRh(null==(s=t.bMT(6,17,e.footerCms))||null==s.data||null==s.data.attributes?null:s.data.attributes.from),t.R7$(5),t.SpI(" ",null==(m=t.bMT(11,19,e.footerCms))||null==m.data||null==m.data.attributes?null:m.data.attributes.description," "),t.R7$(4),t.Y8G("ngIf","en-gb"==e.locale),t.R7$(),t.Y8G("ngIf","cy-gb"==e.locale),t.R7$(3),t.Y8G("routerLinkActiveOptions",t.lJ4(29,B))("routerLink",t.eq3(30,$,e.privacyPageLink)),t.R7$(),t.JRh(null==(d=t.bMT(20,21,e.footerCms))||null==d.data||null==d.data.attributes?null:d.data.attributes.privacyLink),t.R7$(2),t.Y8G("ngIf",e.loadCookies),t.R7$(2),t.Y8G("routerLinkActiveOptions",t.lJ4(32,B))("routerLink",t.eq3(33,$,e.termsAndConditionsPageLink)),t.R7$(),t.JRh(null==(g=t.bMT(25,23,e.footerCms))||null==g.data||null==g.data.attributes?null:g.data.attributes.termsAndConditionsLink),t.R7$(3),t.Y8G("routerLinkActiveOptions",t.lJ4(35,B))("routerLink",t.eq3(36,$,e.accessibilityPageLink)),t.R7$(),t.JRh(null==(S=t.bMT(29,25,e.footerCms))||null==S.data||null==S.data.attributes?null:S.data.attributes.accessibilityLink),t.R7$(3),t.Y8G("routerLinkActiveOptions",t.lJ4(38,B))("routerLink",t.eq3(39,$,e.reportAnIssuePageLink)),t.R7$(),t.JRh(null==(_=t.bMT(33,27,e.footerCms))||null==_.data||null==_.data.attributes?null:_.data.attributes.reportAnIssueLink)}},dependencies:[r.bT,ut,c.Wk,c.wQ,r.Jj],encapsulation:2}),i})();var R,V=l(4154),b=l(1501),T=l(6421),F=l(7655),J=l(4398),j=l(1434),gt=l(2526),z=l(7143),W=l(165),K=l(2577);const x=a=>[a];function ht(a,i){if(1&a&&(t.j41(0,"ul",4)(1,"li")(2,"a",5),t.qSk(),t.j41(3,"svg",6),t.nrm(4,"use",7),t.k0s(),t.joV(),t.j41(5,"strong"),t.EFF(6),t.nI1(7,"async"),t.k0s()()(),t.j41(8,"li")(9,"a",8)(10,"strong"),t.EFF(11),t.nI1(12,"async"),t.k0s()()()()),2&a){const n=t.XpG();t.R7$(2),t.Y8G("routerLink",t.eq3(8,x,n.registrationLinkPath)),t.R7$(4),t.JRh(t.bMT(7,4,n.translate("Register"))),t.R7$(3),t.Y8G("routerLink",t.eq3(10,x,n.signInLinkPath)),t.R7$(2),t.JRh(t.bMT(12,6,n.translate("Sign in")))}}function bt(a,i){if(1&a&&(t.j41(0,"a",12),t.qSk(),t.j41(1,"svg",13),t.nrm(2,"use",14),t.k0s(),t.EFF(3),t.k0s()),2&a){const n=t.XpG(2);t.Y8G("routerLink",t.eq3(2,x,n.editMyDetailsLinkPath)),t.R7$(3),t.SpI(" ",n.userFullName,"")}}function ft(a,i){if(1&a&&(t.j41(0,"div",15),t.qSk(),t.j41(1,"svg",16),t.nrm(2,"use",14),t.k0s(),t.EFF(3),t.k0s()),2&a){const n=t.XpG(2);t.R7$(3),t.SpI(" ",n.userFullName,"")}}function Ct(a,i){if(1&a){const n=t.RV6();t.j41(0,"ul",4)(1,"li",9),t.DNE(2,bt,4,4,"a",10)(3,ft,4,1,"ng-template",null,0,t.C5r),t.k0s(),t.j41(5,"li")(6,"button",11),t.bIt("click",function(){t.eBV(n);const e=t.XpG();return t.Njj(e.logout())}),t.j41(7,"strong"),t.EFF(8),t.nI1(9,"async"),t.k0s()()()()}if(2&a){const n=t.sdS(4),o=t.XpG();t.R7$(2),t.Y8G("ngIf",o.currentRoute!=="/"+o.editMyDetailsLinkPath)("ngIfElse",n),t.R7$(6),t.JRh(t.bMT(9,3,o.translate("Sign out")))}}let E=((R=class{constructor(i,n,o,e,s){this.awsAuthService=i,this.router=n,this.location=o,this.sessionUpdatedService=e,this.translateService=s,this.userLoggedIn=!1,this.defaultLanguage="en",this.language=this.defaultLanguage}ngOnInit(){this.checkIfUserIsLoggedIn()}logout(){this.awsAuthService.logout().then(()=>{sessionStorage.removeItem(gt.I),this.router.navigateByUrl("/").then(()=>{window.location.reload()})})}translate(i){return this.translateService.translate(i,this.language)}getCurrentRoute(){this.currentRoute=this.location.path(),this.router.events.subscribe(()=>{this.currentRoute=this.location.path()})}checkIfUserIsLoggedIn(){this.awsAuthService.isUserLoggedIn().then(i=>{i&&this.getUserDetails(),this.userLoggedIn=i,this.getCurrentRoute()})}getUserDetails(){this.awsAuthService.getCurrentUserClaims().then(i=>{i&&(this.userFullName=i.user.apps.lmw.fullName)}),this.sessionUpdatedService.getSessionUpdatedAnnouncer().pipe((0,z.s)(this)).subscribe(i=>{i?.user?.apps?.lmw?.fullName&&(this.userFullName=i.user.apps.lmw.fullName)})}}).\u0275fac=function(i){return new(i||R)(t.rXU(j.$u),t.rXU(c.Ix),t.rXU(r.aZ),t.rXU(W.p),t.rXU(K.c))},R.\u0275cmp=t.VBU({type:R,selectors:[["mono-common-header-user-links"]],inputs:{language:"language",signInLinkPath:"signInLinkPath",registrationLinkPath:"registrationLinkPath",editMyDetailsLinkPath:"editMyDetailsLinkPath"},decls:4,vars:2,consts:[["editDetailsActive",""],[1,"grid-container"],[1,"grid-x","align-middle","align-right"],["class","no-bullet flex-container",4,"ngIf"],[1,"no-bullet","flex-container"],[1,"button","button--icon-on-left","clear","small-link",3,"routerLink"],["viewBox","0 0 24 24",1,"icon","icon--register","icon--material",2,"width","24px","height","24px"],[0,"xlink","href","#icon-register","href","#icon-register"],[1,"button","clear","small-link",3,"routerLink"],[1,"icon-on-left","flex-container","align-middle"],["class","button clear user-name",3,"routerLink",4,"ngIf","ngIfElse"],[1,"button","clear","small-link","underline",3,"click"],[1,"button","clear","user-name",3,"routerLink"],["viewBox","0 0 24 24",1,"icon","icon--user"],[0,"xlink","href","#icon-user","href","#icon-user"],[1,"active","user-name"],["viewBox","0 0 24 24",1,"icon","icon--user","icon--primary-dark"]],template:function(i,n){1&i&&(t.j41(0,"div",1)(1,"nav",2),t.DNE(2,ht,13,12,"ul",3)(3,Ct,10,5,"ul",3),t.k0s()()),2&i&&(t.R7$(2),t.Y8G("ngIf",!n.userLoggedIn),t.R7$(),t.Y8G("ngIf",n.userLoggedIn))},dependencies:[r.bT,c.Wk,r.Jj]}),R);E=(0,J.Cg)([(0,z.d)(),(0,J.Sn)("design:paramtypes",[j.$u,c.Ix,r.aZ,W.p,K.c])],E);const St=["burgerButton"],It=[[["","headerLogo",""]],[["","mainNavigation",""]],[["","extraNavigation",""]]],kt=["[headerLogo]","[mainNavigation]","[extraNavigation]"];function _t(a,i){if(1&a&&t.nrm(0,"mono-common-header-user-links",16),2&a){const n=t.XpG();t.Y8G("language",n.language)("signInLinkPath",n.signInLinkPath)("registrationLinkPath",n.registrationLinkPath)("editMyDetailsLinkPath",n.editMyDetailsLinkPath)("previousUrl",n.previousUrl)}}function vt(a,i){1&a&&(t.qSk(),t.j41(0,"svg",17),t.nrm(1,"use",18),t.k0s())}function Tt(a,i){1&a&&(t.qSk(),t.j41(0,"svg",19),t.nrm(1,"use",20),t.k0s())}function yt(a,i){if(1&a&&(t.j41(0,"div",21),t.EFF(1),t.k0s()),2&a){const n=t.XpG();t.R7$(),t.SpI(" ",n.burgerMenuText," ")}}let Dt=(()=>{var a;class i{onResize(o){o.target.innerWidth>this.nonMobileSize?(this.isMobile=!1,this.showMobileMenu=!1):this.isMobile=!0}constructor(o){this.router=o,this.defaultLanguage="en",this.defaultBurgerMenuText="menu",this.hideUserLinks=!1,this.burgerMenuText=this.defaultBurgerMenuText,this.language=this.defaultLanguage,this.showMobileMenu=!1,this.isMobile=!0,this.nonMobileSize=768,window.innerWidth>this.nonMobileSize&&(this.isMobile=!1),this.router.events.subscribe(e=>{e instanceof c.wF&&(this.previousUrl=e.url),this.isMobile&&e instanceof c.Z&&(this.showMobileMenu=!1)})}ngOnInit(){}toggleMenu(){this.showMobileMenu=!this.showMobileMenu,this.burgerButton.nativeElement.blur()}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.Ix))}
1,a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-header"]],viewQuery:function(o,e){if(1&o&&t.GBs(St,5),2&o){let s;t.mGM(s=t.lsd())&&(e.burgerButton=s.first)}},hostBindings:function(o,e){1&o&&t.bIt("resize",function(m){return e.onResize(m)},!1,t.tSv)},inputs:{signInLinkPath:"signInLinkPath",registrationLinkPath:"registrationLinkPath",editMyDetailsLinkPath:"editMyDetailsLinkPath",ariaLabelMainNav:"ariaLabelMainNav",ariaLabelMobileNav:"ariaLabelMobileNav",ariaLabelBurgerButtonShow:"ariaLabelBurgerButtonShow",ariaLabelBurgerButtonHide:"ariaLabelBurgerButtonHide",hideUserLinks:"hideUserLinks",burgerMenuText:"burgerMenuText",language:"language"},ngContentSelectors:kt,decls:20,vars:12,consts:[["burgerButton",""],["id","header",1,"header"],[1,"header__top"],["data-test","mono-common-header-user-links",3,"language","signInLinkPath","registrationLinkPath","editMyDetailsLinkPath","previousUrl",4,"ngIf"],[1,"grid-container","header__bottom"],[1,"grid-x","align-middle","align-justify"],[1,"header__logo"],["aria-hidden","true",1,"reveal-overlay","reveal-overlay--mobile-menu",3,"click","ngClass"],[1,"header__menu-links","show-for-tablet-portrait",3,"ngClass"],[1,"no-bullet","margin-bottom-0","flex-container",3,"ngClass"],[1,"no-bullet","align-middle","margin-0","flex-container"],[1,"hide-for-tablet-portrait","position-static"],["type","button",1,"button","square","hollow","button--mobile-menu",3,"click","ngClass"],["aria-hidden","true","class","icon icon--hamburger icon--primary icon--material","viewBox","0 0 24 24",4,"ngIf"],["aria-hidden","true","class","icon icon--exit icon--primary icon--material","viewBox","0 0 24 24",4,"ngIf"],["aria-hidden","true","class","icon-text",4,"ngIf"],["data-test","mono-common-header-user-links",3,"language","signInLinkPath","registrationLinkPath","editMyDetailsLinkPath","previousUrl"],["aria-hidden","true","viewBox","0 0 24 24",1,"icon","icon--hamburger","icon--primary","icon--material"],[0,"xlink","href","#icon-hamburger","href","#icon-hamburger"],["aria-hidden","true","viewBox","0 0 24 24",1,"icon","icon--exit","icon--primary","icon--material"],[0,"xlink","href","#icon-exit","href","#icon-exit"],["aria-hidden","true",1,"icon-text"]],template:function(o,e){if(1&o){const s=t.RV6();t.NAR(It),t.j41(0,"header",1)(1,"div",2),t.DNE(2,_t,1,5,"mono-common-header-user-links",3),t.k0s(),t.j41(3,"div",4)(4,"div",5)(5,"div",6),t.SdG(6),t.k0s(),t.j41(7,"div",7),t.bIt("click",function(){return t.eBV(s),t.Njj(e.toggleMenu())}),t.k0s(),t.j41(8,"nav",8)(9,"ul",9),t.SdG(10,1),t.k0s()(),t.j41(11,"nav")(12,"ul",10),t.SdG(13,2),t.j41(14,"li",11)(15,"button",12,0),t.bIt("click",function(){return t.eBV(s),t.Njj(e.toggleMenu())}),t.DNE(17,vt,2,0,"svg",13)(18,Tt,2,0,"svg",14)(19,yt,2,1,"div",15),t.k0s()()()()()()()}2&o&&(t.R7$(2),t.Y8G("ngIf",e.signInLinkPath&&e.registrationLinkPath&&!e.hideUserLinks),t.R7$(5),t.Y8G("ngClass",e.showMobileMenu?"show":""),t.R7$(),t.Y8G("ngClass",e.showMobileMenu?"show header__menu-links--mobile":""),t.BMQ("aria-label",e.ariaLabelMainNav?e.ariaLabelMainNav:"Main navigation"),t.R7$(),t.Y8G("ngClass",e.showMobileMenu?"flex-dir-column":"align-middle"),t.BMQ("aria-live",e.isMobile?"polite":"off"),t.R7$(2),t.BMQ("aria-label",e.ariaLabelMobileNav?e.ariaLabelMobileNav:"Help and mobile menu opener"),t.R7$(4),t.Y8G("ngClass",e.showMobileMenu?"border-transparent":"flex-dir-column button--icon-on-top"),t.BMQ("aria-label",e.showMobileMenu?e.ariaLabelBurgerButtonHide?e.ariaLabelBurgerButtonHide:"Exit the menu":e.ariaLabelBurgerButtonShow?e.ariaLabelBurgerButtonShow:"Show the menu"),t.R7$(2),t.Y8G("ngIf",!e.showMobileMenu),t.R7$(),t.Y8G("ngIf",e.showMobileMenu),t.R7$(),t.Y8G("ngIf",!e.showMobileMenu))},dependencies:[r.YU,r.bT,E],encapsulation:2}),i})();function Lt(a,i){if(1&a&&(t.j41(0,"a",2),t.nrm(1,"img",3),t.k0s()),2&a){const n=t.XpG();t.R7$(),t.Y8G("src",n.logoSrc,t.B4B)("alt",n.nonHomePageAltText)}}function Ft(a,i){if(1&a&&t.nrm(0,"img",3),2&a){const n=t.XpG();t.Y8G("src",n.logoSrc,t.B4B)("alt",n.homePageAltText)}}let jt=(()=>{var a;class i{constructor(o,e){this.location=o,this.router=e}ngOnInit(){this.currentRoute=this.location.path(),this.router.events.subscribe(()=>{this.currentRoute=this.location.path()})}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(r.aZ),t.rXU(c.Ix))}
1,a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-header-logo"]],inputs:{logoSrc:"logoSrc",homePageAltText:"homePageAltText",nonHomePageAltText:"nonHomePageAltText"},decls:3,vars:2,consts:[["elseBlock",""],["rel","home","routerLink","/",4,"ngIf","ngIfElse"],["rel","home","routerLink","/"],[3,"src","alt"]],template:function(o,e){if(1&o&&t.DNE(0,Lt,2,2,"a",1)(1,Ft,1,2,"ng-template",null,0,t.C5r),2&o){const s=t.sdS(2);t.Y8G("ngIf",""!==e.currentRoute)("ngIfElse",s)}},dependencies:[r.bT,c.Wk],encapsulation:2}),i})();const Rt=a=>["/",a];function wt(a,i){if(1&a&&(t.j41(0,"a",3),t.qSk(),t.j41(1,"svg",4),t.nrm(2,"use",5),t.k0s(),t.joV(),t.j41(3,"div",6),t.EFF(4),t.k0s()()),2&a){const n=t.XpG();t.Y8G("routerLink",t.eq3(2,Rt,n.helpLink)),t.R7$(4),t.SpI(" ",n.helpText?n.helpText:"help"," ")}}function At(a,i){if(1&a&&(t.j41(0,"span",7),t.qSk(),t.j41(1,"svg",8),t.nrm(2,"use",5),t.k0s(),t.joV(),t.j41(3,"span",9),t.EFF(4),t.k0s()()),2&a){const n=t.XpG();t.R7$(4),t.JRh(n.helpText?n.helpText:"help")}}let Bt=(()=>{var a;class i{constructor(){}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-header-help"]],inputs:{helpLink:"helpLink",currentRoute:"currentRoute",helpText:"helpText"},decls:4,vars:2,consts:[["helpActive",""],["role","menuitem",1,"padding-bottom-0","first-item"],["class","button square border-transparent flex-dir-column button--icon-on-top margin-left-0-5",3,"routerLink",4,"ngIf","ngIfElse"],[1,"button","square","border-transparent","flex-dir-column","button--icon-on-top","margin-left-0-5",3,"routerLink"],["viewBox","0 0 24 24",1,"icon","icon--help","icon--primary","icon--material"],[0,"xlink","href","#icon-help","href","#icon-help"],[1,"icon-text"],[1,"button","square","border-transparent","flex-dir-column","button--icon-on-top","margin-left-0-5","active"],["viewBox","0 0 24 24",1,"icon","icon--help","icon--primary-dark","icon--material"],[1,"icon-text","active"]],template:function(o,e){if(1&o&&(t.j41(0,"li",1),t.DNE(1,wt,5,4,"a",2)(2,At,5,1,"ng-template",null,0,t.C5r),t.k0s()),2&o){const s=t.sdS(3);t.R7$(),t.Y8G("ngIf",e.currentRoute!=="/"+e.helpLink)("ngIfElse",s)}},dependencies:[r.bT,c.Wk],encapsulation:2}),i})(),$t=(()=>{var a;class i{constructor(){}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-header-search"]],decls:6,vars:0,consts:[["role","menuitem",1,"padding-bottom-0","hide"],["disabled","",1,"button","square","hollow","position-relative","flex-dir-column","button--icon-on-top"],["viewBox","0 0 24 24",1,"icon","icon--search","icon--primary","icon--material"],[0,"xlink","href","#icon-search","href","#icon-search"],[1,"icon-text"]],template:function(o,e){1&o&&(t.j41(0,"li",0)(1,"span",1),t.qSk(),t.j41(2,"svg",2),t.nrm(3,"use",3),t.k0s(),t.joV(),t.j41(4,"div",4),t.EFF(5,"search"),t.k0s()()())},encapsulation:2}),i})();const Q=a=>["/",a];function Gt(a,i){if(1&a&&(t.j41(0,"a",11),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){let n;const o=t.XpG();t.R7$(),t.SpI("",null==(n=t.bMT(2,1,o.headerCms))||null==n.data||null==n.data.attributes?null:n.data.attributes.home," ")}}function Mt(a,i){if(1&a&&(t.j41(0,"span",12),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){let n;const o=t.XpG();t.R7$(),t.JRh(null==(n=t.bMT(2,1,o.headerCms))||null==n.data||null==n.data.attributes?null:n.data.attributes.home)}}function Ht(a,i){if(1&a&&(t.j41(0,"a",13),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){let n;const o=t.XpG();t.Y8G("routerLink",t.eq3(4,Q,o.browseAllSubjectsLink)),t.R7$(),t.JRh(null==(n=t.bMT(2,2,o.headerCms))||null==n.data||null==n.data.attributes?null:n.data.attributes.subjects)}}function xt(a,i){if(1&a&&(t.j41(0,"span",12),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){let n;const o=t.XpG();t.R7$(),t.JRh(null==(n=t.bMT(2,1,o.headerCms))||null==n.data||null==n.data.attributes?null:n.data.attributes.subjects)}}function Et(a,i){if(1&a&&(t.j41(0,"a",13),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){let n;const o=t.XpG();t.Y8G("routerLink",t.eq3(4,Q,o.myLearningLink)),t.R7$(),t.JRh(null==(n=t.bMT(2,2,o.headerCms))||null==n.data||null==n.data.attributes?null:n.data.attributes.myLearning)}}function Yt(a,i){if(1&a&&(t.j41(0,"span",12),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){let n;const o=t.XpG();
1t.R7$(),t.JRh(null==(n=t.bMT(2,1,o.headerCms))||null==n.data||null==n.data.attributes?null:n.data.attributes.myLearning)}}let Pt=(()=>{var a;class i{constructor(o,e,s){this.location=o,this.router=e,this.strapiService=s,this.browseAllSubjectsLink=u.c.browseSubjectsStatePath,this.helpLink=u.c.helpStatePath,this.myLearningLink=u.c.myLearningHomeStatePath,this.editMyDetailsLinkPath=V.D.editMyDetailsStatePath,this.hideUserLinks=!f.c.loadAuth,this.signInLinkPath=`/${b.D.path}/${T.Ci.path}`,this.registrationLinkPath=`/${b.D.path}/${F.j.path}`,this.userLoggedIn=!1,this.isAreaNeedingSignIn=!1,this.language=f.c.language}ngOnInit(){this.currentRoute=this.location.path(),this.router.events.subscribe(()=>{this.currentRoute=this.location.path()}),this.headerCms=this.strapiService.get("header?populate=*").pipe((0,L.H)(1),(0,X.B)())}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(r.aZ),t.rXU(c.Ix),t.rXU(h.dr))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-header-base"]],decls:25,vars:31,consts:[["homeActive",""],["subjectsActive",""],["myLearningActive",""],[3,"language","signInLinkPath","registrationLinkPath","editMyDetailsLinkPath","burgerMenuText","ariaLabelMainNav","ariaLabelMobileNav","ariaLabelBurgerButtonShow","ariaLabelBurgerButtonHide","hideUserLinks"],["headerLogo",""],["logoSrc","assets/images/learn-my-way-logo.png","homePageAltText","Learn My Way logo","nonHomePageAltText","Link to the Learn My Way homepage"],["mainNavigation",""],["rel","home","routerLink","/",4,"ngIf","ngIfElse"],[3,"routerLink",4,"ngIf","ngIfElse"],["extraNavigation",""],[3,"helpText","helpLink","currentRoute"],["rel","home","routerLink","/"],["aria-selected","true",1,"active"],[3,"routerLink"]],template:function(o,e){if(1&o&&(t.j41(0,"mono-common-header",3),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.nI1(5,"async"),t.qex(6,4),t.nrm(7,"mono-common-header-logo",5),t.bVm(),t.qex(8,6),t.j41(9,"li"),t.DNE(10,Gt,3,3,"a",7)(11,Mt,3,3,"ng-template",null,0,t.C5r),t.k0s(),t.j41(13,"li"),t.DNE(14,Ht,3,6,"a",8)(15,xt,3,3,"ng-template",null,1,t.C5r),t.k0s(),t.j41(17,"li"),t.DNE(18,Et,3,6,"a",8)(19,Yt,3,3,"ng-template",null,2,t.C5r),t.k0s(),t.bVm(),t.qex(21,9),t.nrm(22,"mono-common-header-help",10),t.nI1(23,"async"),t.nrm(24,"mono-common-header-search"),t.bVm(),t.k0s()),2&o){let s,m,d,g,S,_;const oa=t.sdS(12),ia=t.sdS(16),sa=t.sdS(20);t.Y8G("language",e.language)("signInLinkPath",e.signInLinkPath)("registrationLinkPath",e.registrationLinkPath)("editMyDetailsLinkPath",e.editMyDetailsLinkPath)("burgerMenuText",null==(s=t.bMT(1,19,e.headerCms))||null==s.data||null==s.data.attributes?null:s.data.attributes.menu)("ariaLabelMainNav",null==(m=t.bMT(2,21,e.headerCms
1))||null==m.data||null==m.data.attributes?null:m.data.attributes.ariaLabels.ariaLabelMainNav)("ariaLabelMobileNav",null==(d=t.bMT(3,23,e.headerCms))||null==d.data||null==d.data.attributes?null:d.data.attributes.ariaLabels.ariaLabelMobileNav)("ariaLabelBurgerButtonShow",null==(g=t.bMT(4,25,e.headerCms))||null==g.data||null==g.data.attributes?null:g.data.attributes.ariaLabels.ariaLabelBurgerButtonShow)("ariaLabelBurgerButtonHide",null==(S=t.bMT(5,27,e.headerCms))||null==S.data||null==S.data.attributes?null:S.data.attributes.ariaLabels.ariaLabelBurgerButtonHide)("hideUserLinks",e.hideUserLinks),t.R7$(10),t.Y8G("ngIf",""!==e.currentRoute)("ngIfElse",oa),t.R7$(4),t.Y8G("ngIf",e.currentRoute!=="/"+e.browseAllSubjectsLink)("ngIfElse",ia),t.R7$(4),t.Y8G("ngIf",e.currentRoute!=="/"+e.myLearningLink)("ngIfElse",sa),t.R7$(4),t.Y8G("helpText",null==(_=t.bMT(23,29,e.headerCms))||null==_.data||null==_.data.attributes?null:_.data.attributes.help)("helpLink",e.helpLink)("currentRoute",e.currentRoute)}},dependencies:[r.bT,Dt,jt,Bt,$t,c.Wk,r.Jj],encapsulation:2}),i})(),Nt=(()=>{var a;class i{constructor(){}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-root"]],decls:3,vars:0,template:function(o,e){1&o&&t.nrm(0,"lmw-base-header-base")(1,"router-outlet")(2,"lmw-base-footer-base")},dependencies:[c.n3,pt,Pt]}),i})();var G=l(4240);const Z=a=>[a];function qt(a,i){if(1&a&&(t.qSk(),t.j41(0,"svg",6),t.nrm(1,"use",7),t.k0s()),2&a){const n=t.XpG(3);t.Y8G("ngClass","icon--"+n.iconColour)}}function Ut(a,i){1&a&&(t.qSk(),t.j41(0,"svg",8),t.nrm(1,"use",9),t.k0s())}function Ot(a,i){if(1&a&&(t.j41(0,"a",3)(1,"span"),t.EFF(2),t.k0s(),t.DNE(3,qt,2,1,"svg",4)(4,Ut,2,0,"svg",5),t.k0s()),2&a){const n=t.XpG(2);t.Y8G("ngClass",n.type?"browse--"+n.type:"")("routerLink",t.eq3(5,Z,n.slug)),t.R7$(2),t.JRh(n.text),t.R7$(),t.Y8G("ngIf",!n.completed),t.R7$(),t.Y8G("ngIf",n.completed)}}function Xt(a,i){if(1&a&&(t.j41(0,"span",10)(1,"span"),t.EFF(2),t.k0s(),t.qSk(),t.j41(3,"svg",11),t.nrm(4,"use",12),t.k0s()()),2&a){const n=t.XpG(2);t.R7$(2),t.JRh(n.text)}}function Vt(a,i){if(1&a&&(t.qex(0),t.DNE(1,Ot,5,7,"a",1)(2,Xt,5,1,"span",2),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("ngIf",!n.requiresSignIn||"subject"===n.type),t.R7$(),t.Y8G("ngIf",n.requiresSignIn&&"subject"!==n.type)}}function Jt(a,i){if(1&a&&(t.qSk(),t.j41(0,"svg",6),t.nrm(1,"use",7),t.k0s()),2&a){const n=t.XpG(2);t.Y8G("ngClass","icon--"+n.iconColour)}}function zt(a,i){1&a&&(t.qSk(),t.j41(0,"svg",8),t.nrm(1,"use",9),t.k0s())}function Wt(a,i){if(1&a&&(t.j41(0,"a",3)(1,"span"),t.EFF(2),t.k0s(),t.DNE(3,Jt,2,1,"svg",4)(4,zt,2,0,"svg",5),t.k0s()),2&a){const n=t.XpG();t.Y8G("ngClass",n.type?"browse--"+n.type:"")("routerLink",t.eq3(5,Z,n.slug)),t.R7$(2),t.JRh(n.text),t.R7$(),t.Y8G("ngIf",!n.completed),t.R7$(),t.Y8G("ngIf",n.completed)}}let Y=(()=>{var a;class i{constructor(){this.completed=!1}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-common-subject-topic-link-button"]],inputs:{text:"text",slug:"slug",type:"type",completed:"completed",iconColour:"iconColour",requiresSignIn:"requiresSignIn",userSignedIn:"userSignedIn"},decls:2,vars:2,consts:[[4,"ngIf"],["class","button hollow browse no-underline","data-test","lmw-common-subject-topic-link-button",3,"ngClass","routerLink",4,"ngIf"],["class","button hollow browse browse--topic browse--topic-locked no-underline","data-test","lmw-common-subject-topic-link-button-locked",4,"ngIf"],["data-test","lmw-common-subject-topic-link-button",1,"button","hollow","browse","no-underline",3,"ngClass","routerLink"],["class","icon icon--chevron-right icon--material","viewBox","0 0 36 36",3,"ngClass",4,"ngIf"],["class","icon icon--checkmark icon--success","viewBox","0 0 36 36",4,"ngIf"],["viewBox","0 0 36 36",1,"icon","icon--chevron-right","icon--material",3,"ngClass"],[0,"xlink","href","#icon-chevron-right","href","#icon-chevron-right"],["viewBox","0 0 36 36",1,"icon","icon--checkmark","icon--success"],[0,"xlink","href","#icon-checkmark","href","#icon-checkmark"],["data-test","lmw-common-subject-topic-link-button-locked",1,"button","hollow","browse","browse--topic","browse--topic-locked","no-underline"],["aria-label","a lock symbol","viewBox","0 0 36 36",1,"icon","icon--lock"],[0,"xlink","href","#icon-lock","href","#icon-lock"]],template:function(o,e){1&o&&t.DNE(0,Vt,3,2,"ng-container",0)(1,Wt,5,7,"a",1),2&o&&(t.Y8G("ngIf",!e.userSignedIn),t.R7$(),t.Y8G("ngIf",e.userSignedIn))},dependencies:[r.YU,r.bT,c.Wk]}),i})();
1var C=l(2330),y=l(6212);let Kt=(()=>{var a;class i{constructor(o,e){this.router=o,this.translateService=e}ngOnInit(){}signInButtonClicked(){this.router.navigate([`${this.signInLinkPath}`])}registerButtonClicked(){this.router.navigate([`${this.registrationLinkPath}`])}translate(o){return this.translateService.translate(o,this.language)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.Ix),t.rXU(y.c$))},a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-mobile-register-sign-in-bar"]],inputs:{signInLinkPath:"signInLinkPath",registrationLinkPath:"registrationLinkPath",language:"language"},decls:16,vars:6,consts:[[1,"mobile-register-sign-in","position-fixed-bottom","hide-for-large"],[1,"no-bullet","flex-container","align-center","align-middle"],[1,"align-center"],["type","button",1,"button","button--icon-on-left","clear","underline","width-100",3,"click"],["viewBox","0 0 24 24",1,"icon","icon--register","icon--material",2,"width","24px","height","24px"],[0,"xlink","href","#icon-register","href","#icon-register"],["viewBox","0 0 24 24",1,"icon","icon--sign-in","icon--material",2,"width","24px","height","24px"],[0,"xlink","href","#icon-sign-in","href","#icon-sign-in"]],template:function(o,e){1&o&&(t.j41(0,"div",0)(1,"ul",1)(2,"li",2)(3,"button",3),t.bIt("click",function(){return e.registerButtonClicked()}),t.qSk(),t.j41(4,"svg",4),t.nrm(5,"use",5),t.k0s(),t.joV(),t.j41(6,"span"),t.EFF(7),t.nI1(8,"async"),t.k0s()()(),t.j41(9,"li",2)(10,"button",3),t.bIt("click",function(){return e.signInButtonClicked()}),t.qSk(),t.j41(11,"svg",6),t.nrm(12,"use",7),t.k0s(),t.joV(),t.j41(13,"span"),t.EFF(14),t.nI1(15,"async"),t.k0s()()()()()),2&o&&(t.R
17$(7),t.JRh(t.bMT(8,2,e.translate("Register"))),t.R7$(7),t.JRh(t.bMT(15,4,e.translate("Sign in"))))},dependencies:[r.Jj],encapsulation:2}),i})(),tt=(()=>{var a;class i{constructor(o){this.router=o,this.language="en",this.signInLinkPath=`/${b.D.path}/${T.Ci.path}`,this.registrationLinkPath=`/${b.D.path}/${F.j.path}`}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.Ix))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-mobile-register-sign-in-bar"]],inputs:{language:"language"},decls:1,vars:3,consts:[[3,"signInLinkPath","registrationLinkPath","language"]],template:function(o,e){1&o&&t.nrm(0,"mono-common-mobile-register-sign-in-bar",0),2&o&&t.Y8G("signInLinkPath",e.signInLinkPath)("registrationLinkPath",e.registrationLinkPath)("language",e.language)},dependencies:[Kt],encapsulation:2}),i})();var I=l(8568);function Qt(a,i){if(1&a&&(t.nrm(0,"p",13),t.nI1(1,"dontSanitizeHtml")),2&a){const n=t.XpG();t.Y8G("innerHTML",t.bMT(1,1,null==n.browseSubjectsCms||null==n.browseSubjectsCms.data||null==n.browseSubjectsCms.data.attributes?null:n.browseSubjectsCms.data.attributes.registerNag),t.npT)}}function Zt(a,i){if(1&a&&(t.j41(0,"li",14),t.nrm(1,"lmw-common-subject-topic-link-button",15),t.k0s()),2&a){const n=i.$implicit;t.R7$(),t.Y8G("text",n.title)("slug",n.sk)}}function te(a,i){if(1&a&&(t.qex(0),t.nrm(1,"lmw-base-mobile-register-sign-in-bar",16),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("language",n.language)}}function ee(a,i){if(1&a&&(t.qex(0),t.nrm(1,"mono-common-back-to-navigation-bar",17),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("linkText",n.mobileBackButtonText)}}let ne=(()=>{var a;class i{constructor(o){this.route=o,this.userSignedIn=!1,this.mobileBackButtonText=u.c.homeLinkText,this.language=f.c.language,this.registrationLink=`/${b.D.path}/${F.j.path}`,this.signInUsernamePath=`/${b.D.path}/${T.Ci.path}/${G.mu.path}`}ngOnInit(){this.userSignedIn=this.route.snapshot.data.userSignedIn,this.subjects=this.route.snapshot.data.subjects,this.browseSubjectsCms=this.route.snapshot.data.cmsData}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-browse-subjects"]],decls:16,vars:7,consts:[["content",""],["data-test","lmw-base-browse-subjects-back-to-home-bar","linkTo","/","position","back-to-navigation__top",3,"linkText"],["id","content","aria-describedby","ariaMainHeaderId",1,"browse","browse--subjects"],[1,"grid-container"],[1,"grid-x"],[1,"cell"],["id","ariaMainHeaderId"],["class","lead",3,"innerHTML",4,"ngIf"],[1,"lead"],[1,"grid-container","browse__list-container"],[1,"no-bullet","grid-x"],["class","cell small-12 medium-6",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"lead",3,"innerHTML"],[1,"cell","small-12","medium-6"],["type","subject","iconColour","primary-dark","data-test","lmw-base-browse-subjects-subject-topic-link-button",3,"text","slug"],["data-test","lmw-base-browse-subjects-sign-in-bar",3,"language"],["data-test","lmw-base-browse-subjects-back-to-home-bar-bottom","linkTo","/","position","back-to-navigation__bottom",3,"linkText"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",1),t.j41(1,"main",2,0)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h1",6),t.EFF(7),t.k0s(),t.DNE(8,Qt,2,3,"p",7),t.j41(9,"p",8),t.EFF(10),t.k0s()()()(),t.j41(11,"div",9)(12,"ul",10),t.DNE(13,Zt,2,2,"li",11),t.k0s()()(),t.DNE(14,te,2,1,"ng-container",12)(15,ee,2,1,"ng-container",12)),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(7),t.JRh(null==e.browseSubjectsCms||null==e.browseSubjectsCms.data||null==e.browseSubjectsCms.data.attributes?null:e.browseSubjectsCms.data.attributes.title),t.R7$(),t.Y8G("ngIf",!e.userSignedIn),t.R7$(2),t.JRh(null==e.browseSubjectsCms||null==e.browseSubjectsCms.data||null==e.browseSubjectsCms.data.attributes?null:e.browseSubjectsCms.data.attributes.description),t.R7$(3),t.Y8G("ngForOf",e.subjects),t.R7$(),t.Y8G("ngIf",!e.userSignedIn),t.R7$(),t.Y8G("ngIf",e.userSignedIn))},dependencies:[r.Sq,r.bT,Y,C.n,tt,I.Y]}),i})();const et=a=>({"background-image":a});let nt=(()=>{var a;class i{constructor(){this.defaultLanguage="en",this.language=this.defaultLanguage,this.secondary=!1}ngOnInit(){this.quoteSvg=this.svgByLanguage(this.language)}svgByLanguage(o){return o===this.defaultLanguage?"icon-quotes-left":`icon-quotes-left-${o}`}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-blockquote-image"]],inputs:{imageSrc:"imageSrc",image2xSrc:"image2xSrc",quote:"quote",language:"language",secondary:"secondary"},decls:8,vars:14,consts:[[3,"ngClass"],["aria-hidden","true","data-test","mono-common-blockquote-image-image","data-test","mono-common-blockquote-image-image",3,"ngClass","ngStyle"],["aria-hidden","true","data-test","mono-common-blockquote-image-image2x",3,"ngClass","ngStyle"],["data-test","mono-common-blockquote-quote-svg","aria-hidden","true","viewBox","0 0 36 36",3,"ngClass"],[1,"margin-0","padding-0"]],template:function(o,e){1&o&&(t.j41(0,"div",0),t.nrm(1,"div",1)(2,"div",2),t.j41(3,"blockquote",0),t.qSk(),t.j41(4,"svg",3),t.nrm(5,"use"),t.k0s(),t.joV(),t.j41(6,"p",4),t.EFF(7),t.k0s()()()),2&o&&(t.Y8G("ngClass","image-with-blockquote flex-container flex-dir-column align-justify "+(e.secondary?"image-with-blockquote--secondary":"")),t.R7$(),t.Y8G("ngClass","image-with-blockquote__image banner-image--pixel-depth_1x "+(e.secondary?"image-with-blockquote__image--secondary":""))("ngStyle",t.eq3(10,et,"url("+e.imageSrc+")")),t.R7$(),t.Y8G("ngClass","image-with-blockquote__image banner-image--pixel-depth_2x "+(e.secondary?"image-with-blockquote__image--secondary":""))("ngStyle",t.eq3(12,et,"url("+(e.image2xSrc?e.image2xSrc:e.imageSrc)+")")),t.R7$(),t.Y8G("ngClass","flex-container image-with-blockquote__blockquote "+(e.secondary?"image-with-blockquote__blockquote--secondary":"")),t.R7$(),t.Y8G("ngClass","icon "+e.quoteSvg),t.R7$(),t.BMQ("href","#"+e.quoteSvg,null,"xlink")("href","#"+e.quoteSvg),t.R7$(2),t.SpI(" ",e.quote," "))},dependencies:[r.YU,r.B3],encapsulation:2}),i})();function ae(a,i){if(1&a&&(t.qex(0),t.nrm(1,"hr",7),t.j41(2,"a",8),t.EFF(3),t.k0s(),t.bVm()),2&a){const n=t.XpG();t.R7$(2),t.Mz_("routerLink","/",n.secondLink,""),t.R7$(),t.JRh(n.secondLinkText)}}let at=(()=>{var a;class i{constructor(){}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-common-secondary-page-cta-panel"]],inputs:{headingText:"headingText",paragraphText1:"paragraphText1",paragraphText2:"paragraphText2",firstLink:"firstLink",secondLink:"secondLink",firstLinkText:"firstLinkText",secondLinkText:"secondLinkText"},decls:13,vars:7,consts:[[1,"site-container__footer"],["aria-hidden","true",1,"flex-container"],[1,"separator","top"],[1,"margin-bottom-1-5"],[1,"site-container__footer--buttons"],[1,"button","primary","medium-down-expanded","large","no-underline",3,"routerLink"],[4,"ngIf"],[1,"separator","bottom"],[1,"button","primary","hollow","medium-down-expanded","no-underline",3,"routerLink"]],template:function(o,e){1&o&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"hr",2),t.k0s(),t.j41(3,"h2"),t.EFF(4),t.k0s(),t.j41(5,"p"),t.EFF(6),t.k0s(),t.j41(7,"p",3),t.EFF(8),t.k0s(),t.j41(9,"div",4)(10,"a",5),t.EFF(11),t.k0s(),t.DNE(12,ae,4,3,"ng-container",6),t.k0s()()),2&o&&(t.R
17$(4),t.JRh(e.headingText),t.R7$(2),t.JRh(e.paragraphText1),t.R7$(2),t.SpI(" ",e.paragraphText2," "),t.R7$(2),t.Mz_("routerLink","/",e.firstLink,""),t.R7$(),t.JRh(e.firstLinkText),t.R7$(),t.Y8G("ngIf",e.secondLink))},dependencies:[r.bT,c.Wk],encapsulation:2}),i})(),oe=(()=>{var a;class i{constructor(o){this.route=o,this.browseAllSubjectsLink=u.c.browseSubjectsStatePath,this.reportAnIssueLink=u.c.reportAnIssueStatePath,this.language=f.c.language,this.mobileBackButtonText=u.c.homeLinkText}ngOnInit(){this.caseStudyCms=this.route.snapshot.data.cmsData}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-case-study"]],decls:18,vars:17,consts:[["content",""],["data-test","lmw-base-case-study-back-to-home-bar","linkTo","/","position","back-to-navigation__top",3,"linkText"],["id","content",1,"site-container","site-container--case-study"],["aria-describedby","ariaMainHeaderId",1,"border-bottom-light"],[1,"grid-container"],[1,"grid-x","grid-margin-x"],[1,"cell","tablet-portrait-7"],["id","ariaMainHeaderId"],[1,"show-for-tablet-portrait",3,"innerHTML"],[1,"cell","tablet-portrait-5"],[3,"imageSrc","image2xSrc","quote","language","secondary"],[1,"hide-for-tablet-portrait",3,"innerHTML"],[1,"cell"],["data-test","lmw-common-case-study-secondary-cta-panel",3,"headingText","paragraphText1","firstLink","firstLinkText"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",1),t.j41(1,"main",2,0)(3,"section",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h1",7),t.EFF(8),t.k0s(),t.nrm(9,"div",8),t.nI1(10,"dontSanitizeHtml"),t.k0s(),t.j41(11,"div",9),t.nrm(12,"mono-common-blockquote-image",10)(13,"div",11),t.nI1(14,"dontSanitizeHtml"),t.k0s()(),t.j41(15,"div",5)(16,"div",12),t.nrm(17,"lmw-common-secondary-page-cta-panel",13),t.k0s()()()()()),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(8),t.SpI(" ",null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudyFirstSection?null:e.caseStudyCms.data.attributes.caseStudyFirstSection.title," "),t.R7$(),t.Y8G("innerHTML",t.bMT(10,13,null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudyFirstSection?null:e.caseStudyCms.data.attributes.caseStudyFirstSection.copy),t.npT),t.R7$(3),t.Y8G("imageSrc",null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudyFirstSection||null==e.caseStudyCms.data.attributes.caseStudyFirstSection.image1x||null==e.caseStudyCms.data.attributes.caseStudyFirstSection.image1x.data||null==e.caseStudyCms.data.attributes.caseStudyFirstSection.image1x.data.attributes?null:e.caseStudyCms.data.attributes.caseStudyFirstSection.image1x.data.attributes.url)("image2xSrc",null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudyFirstSection||null==e.caseStudyCms.data.attributes.caseStudyFirstSection.image2x||null==e.caseStudyCms.data.attributes.caseStudyFirstSection.image2x.data||null==e.caseStudyCms.data.attributes.caseStudyFirstSection.image2x.data.attributes?null:e.caseStudyCms.data.attributes.caseStudyFirstSection.image2x.data.attributes.url)("quote",null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudyFirstSection?null:e.caseStudyCms.data.attributes.caseStudyFirstSection.imageQuote)("language",e.language)("secondary",!0),t.R7$(),t.Y8G("innerHTML",t.bMT(14,15,null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudyFirstSection?null:e.caseStudyCms.data.attributes.caseStudyFirstSection.copy),t.npT),t.R7$(4),t.Y8G("headingText",null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudySecondSection?null:e.caseStudyCms.data.attributes.caseStudySecondSection.title)("paragraphText1",null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudySecondSection?null:e.caseStudyCms.data.attributes.caseStudySecondSection.descriptionFirst)("firstLink",e.browseAllSubjectsLink)("firstLinkText",null==e.caseStudyCms||null==e.caseStudyCms.data||null==e.caseStudyCms.data.attributes||null==e.caseStudyCms.data.attributes.caseStudySecondSection?null:e.caseStudyCms.data.attributes.caseStudySecondSection.browseSubjectsButton))},dependencies:[C.n,nt,at,I.Y],encapsulation:2}),i})();var k=l(5220);function ie(a,i){if(1&a){const n=t.RV6();t.j41(0,"button",15),t.bIt("click",function(){t.eBV(n);const e=t.XpG();return t.Njj(e.printSummary())}),t.nrm(1,"span",16),t.nI1(2,"dontSanitizeHtml"),t.qSk(),t.j41(3,"svg",17),t.nrm(4,"use",18),t.k0s()()}if(2&a){const n=t.XpG();t.R7$(),t.Y8G("innerHTML",t.bMT(2,1,null==n.browseTopicsCms||null==n.browseTopicsCms.data||null==n.browseTopicsCms.data.attributes?null:n.browseTopicsCms.data.attributes.print),t.npT)}}function se(a,i){if(1&a&&(t.j41(0,"p",19),t.EFF(1),t.k0s()),2&a){const n=t.XpG();t.R7$(),t.JRh(null==n.browseTopicsCms||null==n.browseTopicsCms.data||null==n.browseTopicsCms.data.attributes?null:n.browseTopicsCms.data.attributes.description)}}function re(a,i){if(1&a&&(t.nrm(0,"p",20),t.nI1(1,"dontSanitizeHtml")),2&a){const n=t.XpG();t.Y8G("innerHTML",t.bMT(1,1,null==n.browseTopicsCms||null==n.browseTopicsCms.data||null==n.browseTopicsCms.data.attributes?null:n.browseTopicsCms.data.attributes.notSignedInDescription),t.npT)}}function le(a,i){if(1&a&&(t.j41(0,"p",26),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){const n=t.XpG(2).$implicit,o=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,1,o.translate("Last completed: "+n.completedDate))," ")}}function ue(a,i){if(1&a&&(t.j41(0,"p",27),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){const n=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,1,n.translate("Not completed yet"))," ")}}
1function me(a,i){if(1&a&&(t.qex(0),t.DNE(1,le,3,3,"p",24)(2,ue,3,3,"p",25),t.bVm()),2&a){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",n.completed),t.R7$(),t.Y8G("ngIf",!n.completed)}}function ce(a,i){if(1&a&&(t.j41(0,"li",21),t.nrm(1,"lmw-common-subject-topic-link-button",22),t.DNE(2,me,3,2,"ng-container",23),t.k0s()),2&a){const n=i.$implicit,o=t.XpG();t.R7$(),t.Y8G("text",n.title)("slug",n.sk)("completed",n.completed)("userSignedIn",o.userSignedIn)("requiresSignIn",n.requiresSignIn),t.R7$(),t.Y8G("ngIf",o.userSignedIn)}}let de=(()=>{var a;class i{constructor(o,e,s){this.topicService=o,this.route=e,this.translateService=s,this.browseSubjectsPageTitle=u.c.browseSubjectsPageTitle,this.signInUsernamePath=`/${b.D.path}/${T.Ci.path}/${G.mu.path}`,this.registrationPath=`/${b.D.path}/${F.j.path}`,this.completedTopicSlugs=[]}ngOnInit(){this.localeId=this.route.snapshot.data.localeId,this.topics=this.route.snapshot.data.topics,this.userSignedIn=this.route.snapshot.data.userSignedIn,this.subject=this.route.snapshot.data.subject,this.browseTopicsCms=this.route.snapshot.data.cmsData,this.userSignedIn&&(this.topics.forEach(o=>{o.completed&&this.completedTopicSlugs.push(o.sk)}),this.getAllCompletedTopics())}printSummary(){window.print()}translate(o){return this.translateService.translate(o,f.c.language)}getAllCompletedTopics(){this.topicService.getTopicsAttemptsByCompleted(!0).subscribe(o=>{o&&this.filterAllCompletedTopicsByCompletedTopicsSlugs(o)})}filterAllCompletedTopicsByCompletedTopicsSlugs(o){const e=o.filter(s=>this.completedTopicSlugs.includes(s.SK.split(":")[1]));this.reduceFilteredTopicsByLatestDate(e)}reduceFilteredTopicsByLatestDate(o){const e=Object.values(o.reduce((s,{SK:m,dateUpdated:d})=>{const g=m.split(":")[1];return s[g]?s[g].dateUpdated<d&&(s[g]={topicSlugFromSK:g,dateUpdated:d}):s[g]={topicSlugFromSK:g,dateUpdated:d},s},{}));this.setTopicLastCompletedDates(e)}setTopicLastCompletedDates(o){this.topics.forEach((e,s)=>{const m=o.find(d=>d.topicSlugFromSK===e.sk);m&&(this.topics[s].completedDate=this.formatDateForLocale(m.dateUpdated))})}formatDateForLocale(o){return new Date(o).toLocaleString(this.localeId).split(",")[0]}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(k.h),t.rXU(c.nX),t.rXU(y.c$))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-browse-topics"]],decls:16,vars:7,consts:[["content",""],["data-test","lmw-base-browse-topics-back-to-home-bar","linkTo","../","position","back-to-navigation__top",3,"linkText"],["id","content","aria-describedby","ariaMainHeaderId",1,"browse","browse--topics"],[1,"grid-container"],[1,"grid-x"],[1,"cell"],[1,"flex-container","align-justify","browse--topics__header-wrapper"],["id","ariaMainHeaderId",1,"margin-top-0","margin-bottom-0-5"],["type","button","class","button clear button--icon-on-right underline padding-right-0 browse__print",3,"click",4,"ngIf"],["class","lead",4,"ngIf"],["class","lead",3,"innerHTML",4,"ngIf"],[1,"grid-container","browse__list-container"],[1,"no-bullet","grid-x"],["class","cell small-12 medium-6 padding-bottom-1",4,"ngFor","ngForOf"],["data-test","lmw-base-browse-topics-back-to-home-bar","linkTo","../","position","back-to-navigation__bottom",3,"linkText"],["type","button",1,"button","clear","button--icon-on-right","underline","padding-right-0","browse__print",3,"click"],[1,"bold-text",3,"innerHTML"],["viewBox","0 0 24 24",1,"icon","icon--print","icon--material","icon--primary"],[0,"xlink","href","#icon-print","href","#icon-print"],[1,"lead"],[1,"lead",3,"innerHTML"],[1,"cell","small-12","medium-6","padding-bottom-1"],["type","topic","iconColour","primary","data-test","lmw-base-browse-topic-subject-topic-link-button",3,"text","slug","completed","userSignedIn","requiresSignIn"],[4,"ngIf"],["data-test","lmw-base-browse-topic-topic-completed","class","topic-completed flex-container align-right margin-bottom-0 smallest-text",4,"ngIf"],["data-test","lmw-base-browse-topic-topic-not-completed","class","topic-not-completed flex-container align-right margin-bottom-0 smallest-text",4,"ngIf"],["data-test","lmw-base-browse-topic-topic-completed",1,"topic-completed","flex-container","align-right","margin-bottom-0","smallest-text"],["data-test","lmw-base-browse-topic-topic-not-completed",1,"topic-not-completed","flex-container","align-right","margin-bottom-0","smallest-text"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",1),t.j41(1,"main",2,0)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h1",7),t.EFF(8),t.k0s(),t.DNE(9,ie,5,3,"button",8),t.k0s(),t.DNE(10,se,2,1,"p",9)(11,re,2,3,"p",10),t.k0s()()(),t.j41(12,"div",11)(13,"ul",12),t.DNE(14,ce,3,6,"li",13),t.k0s()()(),t.nrm(15,"mono-common-back-to-navigation-bar",14)),2&o&&(t.Y8G("linkText",e.browseSubjectsPageTitle),t.R7$(8),t.JRh(e.subject.title),t.R7$(),t.Y8G("ngIf",e.userSignedIn),t.R7$(),t.Y8G("ngIf",e.userSignedIn),t.R7$(),t.Y8G("ngIf",!e.userSignedIn),t.R7$(3),t.Y8G("ngForOf",e.topics),t.R7$(),t.Y8G("linkText",null==e.browseTopicsCms||null==e.browseTopicsCms.data||null==e.browseTopicsCms.data.attributes?null:e.browseTopicsCms.data.attributes.backToSubjects))},dependencies:[r.Sq,r.bT,Y,C.n,r.Jj,I.Y]}),i})();var pe=l(6551);let ge=(()=>{var a;class i{constructor(o){this.amplifyApiService=o}sendEnquiryEmail(o){return this.amplifyApiService.publicPost("/core-new/send-enquiry-email",o)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(pe.Un))}
1,a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})();var he=l(9640),be=l(1712),fe=l(1713),ot=l(5732),P=l(6428),Ce=l(1836);const Se=["form"],Ie=["helpPopupRef"],ke=["response"],_e=a=>({"height.px":a});function ve(a,i){if(1&a&&(t.qex(0),t.nrm(1,"div",15),t.nI1(2,"dontSanitizeHtml"),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("innerHTML",t.bMT(2,1,null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes?null:n.reportAnIssueCmsData.data.attributes.signedOutDescription),t.npT)}}function Te(a,i){if(1&a&&(t.qex(0),t.nrm(1,"div",15),t.nI1(2,"dontSanitizeHtml"),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("innerHTML",t.bMT(2,1,null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes?null:n.reportAnIssueCmsData.data.attributes.signedInDescription),t.npT)}}function ye(a,i){1&a&&t.nrm(0,"div",35)}function De(a,i){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const n=t.XpG(2);t.R7$(),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.sendEnquiryButton.text)}}function Le(a,i){if(1&a&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"mono-common-loading-animation"),t.bVm()),2&a){const n=t.XpG(2);t.R7$(2),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm||null==n.reportAnIssueCmsData.data.attributes.signedOutForm.sendEnquiryButton?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.sendEnquiryButton.loader)}}function Fe(a,i){if(1&a){const n=t.RV6();t.j41(0,"form",16,1),t.bIt("ngSubmit",function(){t.eBV(n);const e=t.XpG();return t.Njj(e.sendEnquiry())}),t.j41(2,"mono-common-help-popup",17),t.bIt("removeHelpMessage",function(e){t.eBV(n);const s=t.XpG();return t.Njj(s.onCloseHelpPopup(e))}),t.k0s(),t.j41(3,"div",18)(4,"button",19,2),t.bIt("click",function(){t.eBV(n);const e=t.XpG();return t.Njj(e.onOpenHelpPopup())}),t.EFF(6),t.qSk(),t.j41(7,"svg",20),t.nrm(8,"use",21),t.k0s()()(),t.joV(),t.j41(9,"fieldset",22)(10,"legend",23),t.EFF(11,"Contact us form"),t.k0s(),t.j41(12,"div",24)(13,"label",25),t.EFF(14),t.k0s(),t.nrm(15,"input",26),t.k0s(),t.j41(16,"div",24)(17,"label",27),t.EFF(18),t.k0s(),t.nrm(19,"input",28)(20,"mono-common-callout",29),t.k0s(),t.j41(21,"div",24)(22,"label",30),t.EFF(23),t.k0s(),t.nrm(24,"textarea",31)(25,"mono-common-callout",32),t.k0s(),t.DNE(26,ye,1,0,"div",33),t.j41(27,"button",34),t.DNE(28,De,2,1,"span",9)(29,Le,4,1,"ng-container",9),t.k0s()()()}if(2&a){const n=t.XpG();t.Y8G("formGroup",n.enquiryForm),t.R7$(2),t.Y8G("title",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm||null==n.reportAnIssueCmsData.data.attributes.signedOutForm.helpPopup?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.helpPopup.title)("message",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm||null==n.reportAnIssueCmsData.data.attributes.signedOutForm.helpPopup?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.helpPopup.description)("open",n.helpPopupOpen)("shadow",!0),t.R7$(4),t.SpI(" ",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.helpPopupButtonText," "),t.R7$(3),t.Y8G("disabled",n.showLoader),t.R7$(5),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.fullNameLabel),t.R7$(4),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.emailLabel),t.R7$(2),t.Y8G("calloutText",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.emailInputInformation.text)("ariaLabel",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.emailInputInformation.ariaLabel),t.R7$(3),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.enquiryForm.label),t.R7$(2),t.Y8G("calloutText",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm||null==n.reportAnIssueCmsData.data.attributes.signedOutForm.enquiryForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.enquiryForm.informationText)("ariaLabel",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedOutForm||null==n.reportAnIssueCmsData.data.attributes.signedOutForm.enquiryForm?null:n.reportAnIssueCmsData.data.attributes.signedOutForm.enquiryForm.informationAriaLabel),t.R7$(),t.Y8G("ngIf",n.showLoader),t.R7$(),t.Y8G("disabled",!n.enquiryForm.valid||n.showLoader),t.R7$(),t.Y8G("ngIf",!n.showLoader),t.R7$(),t.Y8G("ngIf",n.showLoader)}}function je(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const n=t.XpG(2);t.R7$(),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.emailLabel)}}function Re(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const n=t.XpG(2);t.R7$(),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.mobileLabel)}}function we(a,i){if(1&a&&(t.j41(0,"div",24)(1,"label",51),t.EFF(2),t.k0s(),t.nrm(3,"input",52)(4,"mono-common-callout",53),t.k0s()),2&a){const n=t.XpG(2);t.R7$(2),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.centreNumberLabel),t.R7$(2),t.Y8G("calloutText",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.centreNumberInformation)}}function Ae(a,i){1&a&&t.nrm(0,"div",35)}function Be(a,i){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const n=t.XpG(2);t.R7$(),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm||null==n.reportAnIssueCmsData.data.attributes.signedInForm.sendEnquiryButton?null:n.reportAnIssueCmsData.data.attributes.signedInForm.sendEnquiryButton.text)}}function $e(a,i){if(1&a&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"mono-common-loading-animation"),t.bVm()),2&a){const n=t.XpG(2);t.R7$(2),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm||null==n.reportAnIssueCmsData.data.attributes.signedInForm.sendEnquiryButton?null:n.reportAnIssueCmsData.data.attributes.signedInForm.sendEnquiryButton.loader)}}function Ge(a,i){if(1&a){const n=t.RV6();t.j41(0,"form",16,1),t.bIt("ngSubmit",function(){t.eBV(n);const e=t.XpG();return t.Njj(e.sendEnquiry())}),t.j41(2,"fieldset",36)(3,"legend",23),t.EFF(4,"Contact us form"),t.k0s(),t.j41(5,"h2",37),t.EFF(6),t.k0s(),t.j41(7,"div",38)(8,"label",39),t.EFF(9),t.k0s(),t.nrm(10,"input",40),t.k0s(),t.j41(11,"div",41)(12,"label",42),t.DNE(13,je,2,1,"ng-container",9)(14,Re,2,1,"ng-container",9),t.k0s(),t.nrm(15,"input",43),t.k0s(),t.j41(16,"p",44),t.EFF(17),t.j41(18,"span",45),t.EFF(19),t.k0s()(),t.j41(20,"a",46),t.qSk(),t.j41(21,"svg",47),t.nrm(22,"use",48),t.k0s(),t.EFF(23),t.k0s(),t.joV(),t.nrm(24,"hr",49),t.DNE(25,we,5,2,"div",50),t.j41(26,"div",24)(27,"label",30),t.EFF(28),t.k0s(),t.nrm(29,"textarea",31)(30,"mono-common-callout",32),t.k0s(),t.DNE(31,Ae,1,0,"div",33),t.j41(32,"button",34),t.DNE(33,Be,2,1,"span",9)(34,$e,4,1,"ng-container",9),t.k0s()()()}if(2&a){const n=t.XpG();t.Y8G("formGroup",n.enquiryForm),t.R7$(2),t.Y8G("disabled",n.showLoader),t.R7$(4),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.title),t.R7$(3),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.fullNameLabel),t.R7$(4),t.Y8G("ngIf",n.userUsesEmail),t.R7$(),t.Y8G("ngIf",!n.userUsesEmail),t.R7$(3),t.SpI("",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.areDetailsCorrectTitle," "),t.R7$(2),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.areDetailsCorrectInformation),t.R7$(4),t.SpI(" ",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.editDetailsLink,""),t.R7$(2),t.Y8G("ngIf","supportLearnersAtCentre"===n.userRole),t.R7$(3),t.JRh(null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.enquiryForm.label),t.R7$(2),t.Y8G("calloutText",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm||null==n.reportAnIssueCmsData.data.attributes.signedInForm.enquiryForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.enquiryForm.informationText)("ariaLabel",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.signedInForm||null==n.reportAnIssueCmsData.data.attributes.signedInForm.enquiryForm?null:n.reportAnIssueCmsData.data.attributes.signedInForm.enquiryForm.informationAriaLabel),t.R7$(),t.Y8G("ngIf",n.showLoader),t.R7$(),t.Y8G("disabled",!n.enquiryForm.valid||n.showLoader),t.R7$(),t.Y8G("ngIf",!n.showLoader),t.R7$(),t.Y8G("ngIf",n.showLoader)}}function Me(a,i){if(1&a&&(t.j41(0,"div",54)(1,"h3"),t.EFF(2),t.qSk(),t.j41(3,"svg",55),t.nrm(4,"use",56),t.k0s()(),t.joV(),t.j41(5,"p"),t.EFF(6),t.k0s(),t.j41(7,"h4"),t.EFF(8),t.k0s(),t.nrm(9,"div",15),t.nI1(10,"dontSanitizeHtml"),t.k0s()),2&a){const n=t.XpG();t.R7$(2),t.SpI(" ",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.enquiryFormResponse?null:n.reportAnIssueCmsData.data.attributes.enquiryFormResponse.successTitle," "),t.R7$(4),t.SpI(" ",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.enquiryFormResponse?null:n.reportAnIssueCmsData.data.attributes.enquiryFormResponse.successDescription," "),t.R7$(2),t.SpI(" ",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.enquiryFormResponse?null:n.reportAnIssueCmsData.data.attributes.enquiryFormResponse.nextActionsTitle," "),t.R7$(),t.Y8G("innerHTML",t.bMT(10,4,null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.enquiryFormResponse?null:n.reportAnIssueCmsData.data.attributes.enquiryFormResponse.nextActionsDescription),t.npT)}}function He(a,i){if(1&a&&(t.j41(0,"div",54),t.nrm(1,"div",12),t.j41(2,"h3"),t.EFF(3),t.k0s(),t.nrm(4,"div",15),t.nI1(5,"dontSanitizeHtml"),t.k0s()),2&a){const n=t.XpG();t.R7$(3),t.SpI(" ",null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.enquiryFormResponse?null:n.reportAnIssueCmsData.data.attributes.enquiryFormResponse.errorTitle," "),t.R7$(),t.Y8G("innerHTML",t.bMT(5,2,null==n.reportAnIssueCmsData||null==n.reportAnIssueCmsData.data||null==n.reportAnIssueCmsData.data.attributes||null==n.reportAnIssueCmsData.data.attributes.enquiryFormResponse?null:n.reportAnIssueCmsData.data.attributes.enquiryFormResponse.errorDescription),t.npT)}}let xe=(()=>{var a;class i{constructor(o,e,s,m,d,g){this.countryCodeISO=o,this.router=e,this.route=s,this.formBuilder=m,this.enquiryService=d,this.cdRef=g,this.mobileBackButtonText=u.c.homeLinkText,this.showLoader=!1,this.enquirySent=!1,this.successfulResponse=!1,this.browseAllSubjectsLink="/"+u.c.browseSubjectsStatePath,this.helpPopupOpen=!1,this.signInUsernamePath=`/${b.D.path}/${T.Ci.path}/${G.mu.path}`,this.responseFragment="submissionResponse"}
1ngOnInit(){this.reportAnIssueCmsData=this.route.snapshot.data.cmsData,this.userSignedIn=this.route.snapshot.data.userSignedIn,this.getUserClaims(),this.createForm()}ngAfterViewInit(){this.formHeight=this.currentForm.nativeElement.offsetHeight,this.cdRef.detectChanges()}getUserClaims(){this.userSignedIn&&(this.userClaims=this.route.snapshot.data.userClaims,this.userUsesEmail=!!this.userClaims.user.attributes.email,this.userRole=this.userClaims.user.apps.lmw.whyUsing)}createForm(){this.enquiryForm=this.formBuilder.group({fullName:["",[p.k0.required,y.dL,p.k0.minLength(2),p.k0.maxLength(200)]],emailOrMobile:["",[p.k0.required,he.O(this.countryCodeISO)]],organisationId:["",[]],enquiry:["",[p.k0.required,p.k0.minLength(2),y.g0]]}),this.userSignedIn&&this.addFullNameAndContactMethodValuesAndDisableInputs(),"supportLearnersAtCentre"===this.userRole&&this.addValidatorsToOrganisationIdField()}addValidatorsToOrganisationIdField(){this.enquiryForm.controls.organisationId.addValidators([p.k0.min(100),p.k0.max(8009999)])}addFullNameAndContactMethodValuesAndDisableInputs(){this.enquiryForm.patchValue({fullName:this.userClaims.user.apps.lmw.fullName,emailOrMobile:this.userUsesEmail?this.userClaims.user.attributes.email:this.removeCountryCodeFromNumber(this.userClaims.user.attributes.phone_number)}),this.enquiryForm.controls.fullName.disable(),this.enquiryForm.controls.emailOrMobile.disable()}onCloseHelpPopup(){this.helpPopupOpen=!1}onOpenHelpPopup(){this.helpPopupOpen=!0}sendEnquiry(){if(this.enquiryForm.valid){this.showLoader=!0;const o={...this.enquiryForm.getRawValue()};o.isVerified=this.userSignedIn,this.enquiryService.sendEnquiryEmail(o).subscribe(e=>{this.showLoader=!1,this.enquirySent=!0,this.successfulResponse=!0,this.scrollResponseIntoView()},e=>{this.successfulResponse=!1,this.scrollResponseIntoView()})}}scrollResponseIntoView(){setTimeout(()=>{this.router.navigate([],{fragment:this.responseFragment})},0)}removeCountryCodeFromNumber(o){return(0,be.L)(o,this.countryCodeISO).formatNational()}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(fe.T),t.rXU(c.Ix),t.rXU(c.nX),t.rXU(p.ok),t.rXU(ge),t.rXU(t.gRc))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-report-an-issue"]],viewQuery:function(o,e){if(1&o&&(t.GBs(Se,5),t.GBs(Ie,5),t.GBs(ke,5)),2&o){let s;t.mGM(s=t.lsd())&&(e.currentForm=s.first),t.mGM(s=t.lsd())&&(e.helpPopupRef=s.first),t.mGM(s=t.lsd())&&(e.submissionResponse=s.first)}},decls:17,vars:13,consts:[["response",""],["form",""],["helpPopupRef",""],["data-test","lmw-base-contact-us-back-to-home-bar-top","linkTo","/","position","back-to-navigation__top",3,"linkText"],["aria-describedby","ariaMainHeaderId",1,"site-container"],[1,"grid-container"],[1,"grid-x","grid-margin-x"],[1,"cell"],["id","ariaMainHeaderId"],[4,"ngIf"],["class","form form--full-page",3,"formGroup","ngSubmit",4,"ngIf"],["id","submissionResponse",1,"form","form--full-page","hide",3,"ngClass","ngStyle"],["aria-hidden","true",1,"form--full-page__help-button-wrapper"],["class","form--full-page__response",4,"ngIf"],["data-test","lmw-base-contact-us-back-to-home-bar-bottom","linkTo","/","position","back-to-navigation__bottom",3,"linkText"],[3,"innerHTML"],[1,"form","form--full-page",3,"ngSubmit","formGroup"],["helpPopupCalledFrom","local-support",3,"removeHelpMessage","title","message","open","shadow"],[1,"help-popup-button-strip","flex-container","align-right"],["data-test","lmw-base-contact-us-open-help-popup-button","type","button",1,"button","clear","underline",3,"click"],[1,"icon","icon--help-circle","icon--secondary"],[0,"xlink","href","#icon-help","href","#icon-help"],["aria-required","true",1,"flex-container","flex-dir-column",3,"disabled"],[1,"show-for-sr"],[1,"form-item"],["for","fullName","id","fullNameAriaId",1,"large-text-medium"],["type","text","id","fullName","formControlName","fullName","autocomplete","off","aria-labelledby","fullNameAriaId","aria-required","true"],["for","emailOrMobile","
1id","emailOrMobileAriaId",1,"large-text-medium"],["type","text","id","emailOrMobile","formControlName","emailOrMobile","aria-labelledby","emailOrMobileAriaId","aria-required","true"],["data-test","lmw-base-contact-us-email-callout-info","animation","no-animation","base","info","type","info-text",3,"calloutText","ariaLabel"],["for","enquiry","id","enquiryAriaId",1,"large-text-medium"],["formControlName","enquiry","name","enquiry","id","enquiry","rows","7"],["data-test","lmw-base-contact-us-enquiry-callout-info","animation","no-animation","base","info","type","info-text","paddingOrMarginAlteration","margin-top-0",3,"calloutText","ariaLabel"],["class","form-overlay",4,"ngIf"],["type","submit","data-test","lmw-base-contact-us-submit-button",1,"button","primary","medium-down-expanded",3,"disabled"],[1,"form-overlay"],["aria-required","true",1,"flex-container","flex-dir-column","padding-top-0","margin-top-1-5",3,"disabled"],[1,"margin-bottom-1-5"],[1,"form-item","margin-bottom-1-5"],["for","fullName","id","fullNameAriaId",1,"large-text-medium","padding-left-0","margin-bottom-1"],["type","text","id","fullName","formControlName","fullName","autocomplete","off","aria-labelledby","fullNameAriaId","aria-required","true",1,"transparent-disabled","padding-left-0","height-auto"],[1,"form-item","margin-bottom-1"],["for","emailOrMobile","
1id","emailOrMobileAriaId",1,"large-text-medium","padding-left-0","margin-bottom-1"],["type","text","id","emailOrMobile","formControlName","emailOrMobile","aria-labelledby","emailOrMobileAriaId","aria-required","true",1,"transparent-disabled","padding-left-0","height-auto","margin-bottom-1"],[1,"bold-text","lead"],[1,"block","smallest-text","normal-text-weight"],["routerLink","/edit-my-details",1,"button","clear","button--icon-on-left","margin-bottom-2","justify-content-start"],["aria-hidden","true","viewBox","0 0 24 24",1,"icon","icon--edit"],[0,"xlink","href","#icon-edit","href","#icon-edit"],[1,"section","section--divider","section--full-page-form","margin-bottom-2"],["class","form-item",4,"ngIf"],["for","organisationId","id","organisationIdAriaId",1,"large-text-medium"],["type","number","id","organisationId","formControlName","organisationId","aria-labelledby","organisationIdAriaId","inputmode","numeric",1,"centre-id"],["data-test","lmw-base-contact-us-centre number-callout-info","animation","no-animation","base","info","type","info-text",3,"calloutText"],[1,"form--full-page__response"],["viewBox","0 0 48 48",1,"icon","icon--checkmark","icon--success"],[0,"xlink","href","#icon-checkmark","href","#icon-checkmark"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",3),t.j41(1,"main",4)(2,"div",5)(3,"div",6)(4,"div",7)(5,"h1",8),t.EFF(6),t.k0s(),t.DNE(7,ve,3,3,"ng-container",9)(8,Te,3,3,"ng-container",9)(9,Fe,30,18,"form",10)(10,Ge,35,17,"form",10),t.j41(11,"div",11,0),t.nrm(13,"div",12),t.DNE(14,Me,11,6,"div",13)(15,He,6,4,"div",13),t.k0s()()()()(),t.nrm(16,"mono-common-back-to-navigation-bar",14)),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(6),t.SpI(" ",null==e.reportAnIssueCmsData||null==e.reportAnIssueCmsData.data||null==e.reportAnIssueCmsData.data.attributes?null:e.reportAnIssueCmsData.data.attributes.title," "),t.R7$(),t.Y8G("ngIf",!e.userSignedIn),t.R7$(),t.Y8G("ngIf",e.userSignedIn),t.R7$(),t.Y8G("ngIf",!e.enquirySent&&!e.userSignedIn),t.R7$(),t.Y8G("ngIf",!e.enquirySent&&e.userSignedIn),t.R7$(),t.Y8G("ngClass",e.enquirySent?"show":"hide")("ngStyle",t.eq3(11,_e,e.formHeight)),t.R7$(3),t.Y8G("ngIf",e.successfulResponse),t.R7$(),t.Y8G("ngIf",!e.successfulResponse),t.R7$(),t.Y8G("linkText",e.mobileBackButtonText))},dependencies:[r.YU,r.bT,r.B3,ot.m,C.n,P.G,Ce.T,p.qT,p.me,p.Q0,p.BC,p.cb,p.j4,p.JD,c.Wk,I.Y],encapsulation:2}),i})(),Ee=(()=>{var a;class i{constructor(o){this.route=o,this.mobileBackButtonText=u.c.homeLinkText}ngOnInit(){this.cookieCmsData=this.route.snapshot.data.cmsData}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-cookies"]],decls:6,vars:5,consts:[["data-test","lmw-base-cookies-back-to-home-bar-top","linkTo","/","position","back-to-navigation__top",3,"linkText"],["aria-describedby","ariaMainHeaderId",1,"grid-container","site-container"],[1,"grid-x","grid-margin-x"],[1,"cell",3,"innerHTML"],["data-test","lmw-base-cookies-back-to-home-bar-bottom","linkTo","/","position","back-to-navigation__bottom",3,"linkText"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",0),t.j41(1,"main",1)(2,"div",2),t.nrm(3,"div",3),t.nI1(4,"dontSanitizeHtml"),t.k0s()(),t.nrm(5,"mono-common-back-to-navigation-bar",4)),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(3),t.Y8G("innerHTML",t.bMT(4,3,null==e.cookieCmsData||null==e.cookieCmsData.data||null==e.cookieCmsData.data.attributes?null:e.cookieCmsData.data.attributes.copy),t.npT),t.R7$(2),t.Y8G("linkText",e.mobileBackButtonText))},dependencies:[C.n,I.Y],encapsulation:2}),i})();function Ye(a,i){if(1&a&&(t.nrm(0,"p",14),t.nI1(1,"dontSanitizeHtml")),2&a){const n=t.XpG();t.Y8G("innerHTML",t.bMT(1,1,n.helpCms.data.attributes.registerNag),t.npT)}}function Pe(a,i){if(1&a&&t.nrm(0,"mono-common-callout",15),2&a){const n=t.XpG();t.Y8G("calloutText",n.helpCms.data.attributes.accordionHelpCallout.text)("ariaLabel",n.helpCms.data.attributes.accordionHelpCallout.ariaLabel)}}function Ne(a,i){if(1&a&&(t.j41(0,"a",24),t.qSk(),t.j41(1,"svg",25),t.nrm(2,"use",26),t.k0s(),t.joV(),t.j41(3,"span",27),t.EFF(4),t.k0s()()),2&a){const n=t.XpG(3);t.Y8G("href",n.helpLink+"#content",t.B4B),t.R7$(4),t.JRh(n.helpCms.data.attributes.backToTopLink)}}function qe(a,i){1&a&&t.nrm(0,"hr",31)}function Ue(a,i){if(1&a&&(t.j41(0,"h3"),t.EFF(1),t.k0s()),2&a){const n=t.XpG().$implicit;t.R7$(),t.JRh(n.title)}}function Oe(a,i){if(1&a&&(t.qex(0),t.DNE(1,qe,1,0,"hr",28)(2,Ue,2,1,"h3",11),t.nrm(3,"div",29),t.nI1(4,"dontSanitizeHtml"),t.nrm(5,"img",30),t.bVm()),2&a){const n=i.$implicit,o=i.first;t.R7$(),t.Y8G("ngIf",!o&&n.title),t.R7$(),t.Y8G("ngIf",n.title),t.R7$(),t.Y8G("innerHTML",t.bMT(4,4,n.description),t.npT),t.R7$(2),t.Y8G("src",null==n.image||null==n.image.data||null==n.image.data.attributes?null:n.image.data.attributes.url,t.B4B)}}function Xe(a,i){1&a&&t.nrm(0,"hr",32)}function Ve(a,i){if(1&a&&(t.j41(0,"section",17)(1,"div",18)(2,"h2",19),t.EFF(3),t.k0s(),t.DNE(4,Ne,5,2,"a",20),t.k0s(),t.j41(5,"div",21),t.DNE(6,Oe,6,6,"ng-container",22),t.k0s(),t.DNE(7,Xe,1,0,"hr",23),t.k0s()),2&a){const n=i.$implicit,o=i.first,e=i.last;t.R7$(3),t.JRh(n.title),t.R7$(),t.Y8G("ngIf",!o),t.R7$(2),t.Y8G("ngForOf",n.helpInstructions),t.R7$(),t.Y8G("ngIf",!e)}}
1function Je(a,i){if(1&a&&(t.qex(0),t.DNE(1,Ve,8,4,"section",16),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.helpCms.data.attributes.helpDesktop)}}function ze(a,i){1&a&&t.nrm(0,"hr",31)}function We(a,i){if(1&a&&(t.j41(0,"h3"),t.EFF(1),t.k0s()),2&a){const n=t.XpG().$implicit;t.R7$(),t.JRh(n.title)}}function Ke(a,i){if(1&a&&(t.qex(0),t.DNE(1,ze,1,0,"hr",28)(2,We,2,1,"h3",11),t.nrm(3,"div",29),t.nI1(4,"dontSanitizeHtml"),t.nrm(5,"img",40),t.bVm()),2&a){const n=i.$implicit,o=i.first;t.R7$(),t.Y8G("ngIf",!o&&n.title),t.R7$(),t.Y8G("ngIf",n.title),t.R7$(),t.Y8G("innerHTML",t.bMT(4,4,n.description),t.npT),t.R7$(2),t.Y8G("src",null==n.image||null==n.image.data||null==n.image.data.attributes?null:n.image.data.attributes.url,t.B4B)}}function Qe(a,i){if(1&a){const n=t.RV6();t.j41(0,"section",34)(1,"button",35,1),t.bIt("click",function(){t.eBV(n);const e=t.sdS(2),s=t.XpG(2);return t.Njj(s.clickAccordionButton(e))}),t.j41(3,"h2",36),t.EFF(4),t.k0s(),t.qSk(),t.j41(5,"svg",37),t.nrm(6,"use",38),t.k0s()(),t.joV(),t.j41(7,"div",39)(8,"h2",19),t.EFF(9),t.k0s(),t.DNE(10,Ke,6,6,"ng-container",22),t.k0s()()}if(2&a){const n=i.$implicit,o=i.index;t.R7$(),t.FS9("id","ariaLabelledBy"+o),t.Y8G("ngClass","margin-bottom-0"),t.BMQ("aria-controls","ariaControls"+o),t.R7$(3),t.JRh(n.title),t.R7$(3),t.FS9("id","ariaControls"+o),t.FS9("aria-labelledby","ariaLabelledBy"+o),t.R7$(2),t.JRh(n.title),t.R7$(),t.Y8G("ngForOf",n.helpInstructions)}}function Ze(a,i){if(1&a&&(t.qex(0),t.DNE(1,Qe,11,8,"section",33),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.helpCms.data.attributes.helpMobile)}}let tn=(()=>{var a;class i{constructor(o,e){this.renderer=o,this.route=e,this.browseAllSubjectsLink=u.c.browseSubjectsStatePath,this.reportAnIssueLink=u.c.reportAnIssueStatePath,this.helpLink=u.c.helpStatePath,this.isMobile=!0,this.mobileBackButtonText=u.c.homeLinkText,this.registrationLink=`/${b.D.path}/${F.j.path}`,this.signInUsernamePath=`/${b.D.path}/${T.Ci.path}/${G.mu.path}`,this.userSignedIn=!1,this.nonMobileSize=640,window.innerWidth>this.nonMobileSize&&(this.isMobile=!1)}onResize(o){this.isMobile=!(o.target.innerWidth>this.nonMobileSize)}ngOnInit(){this.helpCms=this.route.snapshot.data.cmsData,this.userSignedIn=this.route.snapshot.data.userSignedIn}clickAccordionButton(o){const e=this.renderer.nextSibling(o);e.style.maxHeight?(this.closePanel(e),this.manageButtonState(o,"inactive")):(this.openPanel(e),this.manageButtonState(o,"active"))}openPanel(o){this.renderer.setStyle(o,"display","block"),this.renderer.setStyle(o,"maxHeight",o.scrollHeight+"px")}closePanel(o){this.renderer.removeStyle(o,"maxHeight")}manageButtonState(o,e){"active"===e?this.renderer.addClass(o,"active"):this.renderer.removeClass(o,"active")}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(t.sFG),t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-help"]],hostBindings:function(o,e){1&o&&t.bIt("resize",function(m){return e.onResize(m)},!1,t.tSv)},decls:16,vars:15,consts:[["content",""],["accordionButton",""],["data-test","lmw-base-help-back-to-home-bar","linkTo","/","position","back-to-navigation__top",3,"linkText"],["id","content","aria-describedby","ariaMainHeaderId",1,"site-container","site-container--help"],[1,"grid-container"],[1,"grid-x","grid-margin-x"],[1,"cell"],["id","ariaMainHeaderId"],["class","lead",3,"innerHTML",4,"ngIf"],[1,"lead"],["data-test","lmw-help-callout--info","base","info","type","info-text","animation","no-animation",3,"calloutText","ariaLabel",4,"ngIf"],[4,"ngIf"],["data-test","lmw-common-help-secondary-cta-panel",3,"headingText","paragraphText1","paragraphText2","firstLink","firstLinkText","secondLink","secondLinkText"],["data-test","lmw-base-help-back-to-home-bar","linkTo","/","position","back-to-navigation__bottom",3,"linkText"],[1,"lead",3,"innerHTML"],["data-test","lmw-help-callout--info","base","info","type","info-text","animation","no-animation",3,"calloutText","ariaLabel"],["role","contentinfo",4,"ngFor","ngForOf"],["role","contentinfo"],[1,"flex-container","align-justify","align-top"],[1,"show-for-medium"],["class","button clear underline button--icon-on-left show-for-medium",3,"href",4,"ngIf"],[1,"content"],[4,"ngFor","ngForOf"],["class","section",4,"ngIf"],[1,"button","clear","underline","button--icon-on-left","show-for-medium",3,"href"],[1,"icon","icon--arrow-up","icon--secondary"],[0,"xlink","href","#icon-arrow-up","href","#icon-arrow-up"],[1,"n
1ormal-text"],["class","section--divider",4,"ngIf"],[3,"innerHTML"],["alt","",3,"src"],[1,"section--divider"],[1,"section"],["class","accordion","role","contentinfo",4,"ngFor","ngForOf"],["role","contentinfo",1,"accordion"],["type","button",1,"button","button--accordion","hide-for-medium",3,"click","ngClass","id"],[1,"margin-0"],["aria-hidden","true",1,"icon","icon--chevron-down","icon--primary","icon--material"],[0,"xlink","href","#icon-chevron-down","href","#icon-chevron-down"],["role","region","aria-live","polite",1,"content","accordion__content",3,"id","aria-labelledby"],["alt","",1,"margin-bottom-1-5",3,"src"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",2),t.j41(1,"main",3,0)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h1",7),t.EFF(7),t.k0s(),t.DNE(8,Ye,2,3,"p",8),t.j41(9,"p",9),t.EFF(10),t.k0s(),t.DNE(11,Pe,1,2,"mono-common-callout",10)(12,Je,2,1,"ng-container",11)(13,Ze,2,1,"ng-container",11),t.nrm(14,"lmw-common-secondary-page-cta-panel",12),t.k0s()()()(),t.nrm(15,"mono-common-back-to-navigation-bar",13)),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(7),t.SpI(" ",e.helpCms.data.attributes.title," "),t.R7$(),t.Y8G("ngIf",!e.userSignedIn),t.R7$(2),t.JRh(e.helpCms.data.attributes.description),t.R7$(),t.Y8G("ngIf",e.isMobile),t.R7$(),t.Y8G("ngIf",!e.isMobile),t.R7$(),t.Y8G("ngIf",e.isMobile),t.R7$(),t.Y8G("headingText",e.helpCms.data.attributes.helpSecondSection.title)("paragraphText1",e.helpCms.data.attributes.helpSecondSection.descriptionFirst)("paragraphText2",e.helpCms.data.attributes.helpSecondSection.descriptionSecond)("firstLink",e.browseAllSubjectsLink)("firstLinkText",e.helpCms.data.attributes.helpSecondSection.browseSubjectsButton)("secondLink",e.reportAnIssueLink)("secondLinkText",e.helpCms.data.attributes.helpSecondSection.localSupportButton),t.R7$(),t.Y8G("linkText",e.mobileBackButtonText))},dependencies:[r.YU,r.Sq,r.bT,C.n,at,P.G,I.Y],encapsulation:2}),i})();var en=l(9328);function nn(a,i){if(1&a&&(t.j41(0,"div",17)(1,"div",18)(2,"div",19),t.nrm(3,"mono-common-loading-animation"),t.k0s(),t.j41(4,"div",20),t.EFF(5),t.k0s()()()),2&a){const n=t.XpG();t.R7$(5),t.SpI(" ",null==n.myLearningCms||null==n.myLearningCms.data||null==n.myLearningCms.data.attributes?null:n.myLearningCms.data.attributes.loadingLearning," ")}}function an(a,i){if(1&a&&(t.j41(0,"p",28),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){const n=t.XpG().index,o=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,1,o.translate("Latest topic completed on "+o.allSubjectsAndTopicInfo[n].latestTopicUpdatedDate))," ")}}function on(a,i){if(1&a&&(t.j41(0,"p",28),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){const n=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,1,n.translate("No topics completed"))," ")}}function sn(a,i){if(1&a&&(t.j41(0,"li",23),t.nrm(1,"lmw-common-subject-topic-link-button",24)(2,"mono-common-progress-bar",25),t.j41(3,"div",26),t.DNE(4,an,3,3,"p",27)(5,on,3,3,"p",27),t.k0s()()),2&a){const n=i.$implicit,o=i.index,e=t.XpG(2);t.R7$(),t.Y8G("text",n.title)("slug","../"+e.browseAllSubjectsBasePath+"/"+n.sk)("completed",e.allSubjectsAndTopicInfo[o].subjectCompleted),t.R7$(),t.Y8G("showProgressBar",!0)("totalSteps",e.allSubjectsAndTopicInfo[o].totalTopicsInSubject)("currentStep",e.allSubjectsAndTopicInfo[o].topicsCompletedInSubject)("showProgressPercentage",!0)("language",e.language),t.R7$(2),t.Y8G("ngIf",e.allSubjectsAndTopicInfo[o].latestTopicUpdatedDate),t.R7$(),t.Y8G("ngIf",!e.allSubjectsAndTopicInfo[o].latestTopicUpdatedDate)}}function rn(a,i){if(1&a&&(t.j41(0,"ul",21),t.DNE(1,sn,6,10,"li",22),t.k0s()),2&a){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.subjects)}}let ln=(()=>{var a;class i{constructor(o,e,s,m){this.route=o,this.topicService=e,this.translateService=s,this.localeId=m,this.browseAllSubjectsBasePath=u.c.browseSubjectsStatePath,this.allSubjectsAndTopicInfo=[],this.showSubjectsList=!1,this.language=f.c.language,this.mobileBackButtonText=u.c.homeLinkText,this.latestTopicAttempts=[]}ngOnInit(){this.myLearningCms=this.route.snapshot.data.cmsData,this.subjects=this.route.snapshot.data.subjects,this.userFullName=this.route.snapshot.data.userClaims.user.apps.lmw.fullName,this.getAllTopicAttempts()}translate(o){return this.translateService.translate(o,this.language)}printSummary(){window.print()}getAllTopicAttempts(){this.topicService.getTopicsAttemptsByCompleted(!0).subscribe(o=>{o.length>0&&(this.latestTopicAttempts=this.removeDuplicateTopicSlugsByLatestDateUpdated(o)),this.populateSubjectsAndTopicsObject()})}removeDuplicateTopicSlugsByLatestDateUpdated(o){return Object.values(o.reduce((e,{SK:s,dateUpdated:m})=>{const d=s.split(":")[1];return e[d]?e[d].dateUpdated<m&&(e[d]={topicSlugFromSK:d,dateUpdated:m}):e[d]={topicSlugFromSK:d,dateUpdated:m},e},{}))}
1populateSubjectsAndTopicsObject(){this.subjects.forEach((o,e)=>{this.allSubjectsAndTopicInfo.push({subjectSlug:o.sk,totalTopicsInSubject:0,topicsCompletedInSubject:0,latestTopicUpdatedDate:"",subjectCompleted:!1}),this.getTotalTopicsInSubject(o.sk,e)})}getTotalTopicsInSubject(o,e){this.topicService.getTopicsBySubjectAndLocale(o,this.localeId).subscribe(s=>{this.allSubjectsAndTopicInfo[e].totalTopicsInSubject=s.length,this.latestTopicAttempts.length>0?this.traverseLatestTopicAttemptsToCheckForSubject(o,e):this.checkIfAllSubjectInfoHasBeenPopulated()})}traverseLatestTopicAttemptsToCheckForSubject(o,e){this.latestTopicAttempts.forEach(s=>{this.getSubjectCompletedTopicsBelongTo(o,s.topicSlugFromSK,e)})}getSubjectCompletedTopicsBelongTo(o,e,s){this.topicService.doesTopicBelongToSubject(o,e,this.localeId).subscribe(m=>{if(m){const d=this.filterDateFromTopicAttempt(e);this.allSubjectsAndTopicInfo[s].topicsCompletedInSubject+=1,this.allSubjectsAndTopicInfo[s].latestTopicUpdatedDate<d&&(this.allSubjectsAndTopicInfo[s].latestTopicUpdatedDate=this.formatDateForLocale(d))}this.checkIfAllSubjectInfoHasBeenPopulated()})}checkIfAllSubjectInfoHasBeenPopulated(){this.allSubjectsAndTopicInfo.length===this.subjects.length&&this.checkForCompleteSubjects()}checkForCompleteSubjects(){for(let o=0;o<this.allSubjectsAndTopicInfo.length;o++)this.allSubjectsAndTopicInfo[o].subjectCompleted=this.allSubjectsAndTopicInfo[o].topicsCompletedInSubject===this.allSubjectsAndTopicInfo[o].totalTopicsInSubject;this.showSubjectsList=!0}filterDateFromTopicAttempt(o){return this.latestTopicAttempts.filter(e=>e.topicSlugFromSK===o).map(e=>e.dateUpdated).toString()}formatDateForLocale(o){return new Date(o).toLocaleString(this.localeId).split(",")[0]}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX),t.rXU(k.h),t.rXU(y.c$),t.rXU(t.xe9))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-my-learning-home"]],decls:23,vars:10,consts:[["content",""],["data-test","lmw-base-my-learning-home-back-to-home-bar-top","linkTo","/","position","back-to-navigation__top",3,"linkText"],["id","content","aria-describedby","ariaMainHeaderId",1,"browse","browse--my-learning"],[1,"grid-container"],[1,"grid-x"],[1,"cell"],[1,"flex-container","align-justify","browse--my-learning__header-wrapper"],["id","ariaMainHeaderId",1,"margin-0"],["type","button",1,"button","clear","button--icon-on-right","underline","bold-text","padding-right-0","browse__print",3,"click"],["viewBox","0 0 24 24",1,"icon","icon--print","icon--primary","icon--material"],[0,"xlink","href","#icon-print","href","#icon-print"],[1,"normal-text-weight"],[1,"lead"],[1,"grid-container","browse__list-container","browse__list-container--my-learning"],["class","loader-background","role","alert","data-test","lmw-base-my-learning-home-loader",4,"ngIf"],["class","no-bullet grid-x","data-test","lmw-base-my-learning-home-list",4,"ngIf"],["data-test","lmw-base-my-learning-home-back-to-home-bar-bottom","linkTo","/","position","back-to-navigation__bottom",3,"linkText"],["role","alert","data-test","lmw-base-my-learning-home-loader",1,"loader-background"],[1,"loader"],["aria-hidden","true",1,"loader__graphic"],[1,"loader__text"],["data-test","lmw-base-my-learning-home-list",1,"no-bullet","grid-x"],["class","cell small-12 medium-6 padding-bottom-1",4,"ngFor","ngForOf"],[1,"cell","small-12","medium-6","padding-bottom-1"],["type","my-learning","iconColour","secondary-dark",3,"text","slug","completed"],[3,"showProgressBar","totalSteps","currentStep","showProgressPercentage","language"],[1,"browse--my-learning__metadata","flex-container","align-middle"],["class","margin-bottom-0",4,"ngIf"],[1,"margin-bottom-0"]],template:function(o,e){if(1&o){const s=t.RV6();t.nrm(0,"mono-common-back-to-navigation-bar",1),t.j41(1,"main",2,0)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h1",7),t.EFF(8),t.k0s(),t.j41(9,"button",8),t.bIt("click",function(){return t.eBV(s),t.Njj(e.printSummary())}),t.j41(10,"span"),t.EFF(11),t.k0s(),t.qSk(),t.j41(12,"svg",9),t.nrm(13,"use",10),t.k0s()()(),t.joV(),t.j41(14,"h2",11),t.EFF(15),t.nI1(16,"async"),t.k0s(),t.j41(17,"p",12),t.EFF(18),t.k0s()()()(),t.j41(19,"div",13),t.DNE(20,nn,6,1,"div",14)(21,rn,2,1,"ul",15),t.k0s()(),t.nrm(22,"mono-common-back-to-navigation-bar",16)}2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(8),t.SpI(" ",null==e.myLearningCms||null==e.myLearningCms.data||null==e.myLearningCms.data.attributes?null:e.myLearningCms.data.attributes.title," "),t.R7$(3),t.JRh(null==e.myLearningCms||null==e.myLearningCms.data||null==e.myLearningCms.data.attributes?null:e.myLearningCms.data.attributes.printSummary),t.R7$(4),t.SpI(" ",t.bMT(16,8,e.translate("Progress summary for "+e.userFullName))," "),t.R7$(3),t.SpI(" ",null==e.myLearningCms||null==e.myLearningCms.data||null==e.myLearningCms.data.attributes?null:e.myLearningCms.data.attributes.description," "),t.R7$(2),t.Y8G("ngIf",!e.showSubjectsList),t.R7$(),t.Y8G("ngIf",e.showSubjectsList),t.R7$(),t.Y8G("linkText",e.mobileBackButtonText))},dependencies:[r.Sq,r.bT,Y,ot.m,C.n,en.a,r.Jj],encapsulation:2}),i})();const w=a=>({"background-image":a}),A=a=>[a];function un(a,i){if(1&a&&(t.j41(0,"a",12),t.EFF(1),t.k0s()),2&a){const n=t.XpG();t.Y8G("routerLink",t.eq3(2,A,n.registrationLink)),t.R7$(),t.JRh(null==n.homeCmsData||null==n.homeCmsData.data||null==n.homeCmsData.data.attributes||null==n.homeCmsData.data.attributes.homeFirstSection?null:n.homeCmsData.data.attributes.homeFirstSection.registerButtonText)}}function mn(a,i){if(1&a&&(t.j41(0,"a",12),t.EFF(1),t.k0s()),2&a){const n=t.XpG();t.Y8G("routerLink",t.eq3(2,A,n.myLearningLink)),t.R7$(),t.JRh(null==n.homeCmsData||null==n.homeCmsData.data||null==n.homeCmsData.data.attributes||null==n.homeCmsData.data.attributes.homeFirstSection?null:n.homeCmsData.data.attributes.homeFirstSection.myLearningButtonText)}}function cn(a,i){if(1&a&&(t.qex(0),t.nrm(1,"lmw-base-mobile-register-sign-in-bar",34),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("language",n.language)}}let dn=(()=>{var a;class i{constructor(o){this.route=o,this.userSignedIn=!1,this.browseAllSubjectsLink=u.c.browseSubjectsStatePath,this.reportAnIssueLink=u.c.reportAnIssueStatePath,this.helpLink=u.c.helpStatePath,this.caseStudyLink=u.c.caseStudyStatePath,this.myLearningLink=u.c.myLearningHomeStatePath,this.language=f.c.language,this.registrationLink=`/${b.D.path}/${F.j.path}`}
1ngOnInit(){this.homeCmsData=this.route.snapshot.data.cmsData,this.userSignedIn=this.route.snapshot.data.userSignedIn}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-home"]],decls:57,vars:50,consts:[["content",""],["id","content",1,"home-container"],["aria-describedby","ariaMainHeaderId",1,"border-bottom-light"],[1,"grid-container"],[1,"grid-x","grid-margin-x"],[1,"cell","medium-6"],["id","ariaMainHeaderId"],[1,"lead"],["aria-hidden","true",1,"banner-image","hide-for-medium","banner-image--pixel-depth_1x",3,"ngStyle"],["aria-hidden","true",1,"banner-image","hide-for-medium","banner-image--pixel-depth_2x",3,"ngStyle"],[1,"no-bullet","link-button-list"],["class","button primary medium-down-expanded large no-underline",3,"routerLink",4,"ngIf"],[1,"button","primary","medium-down-expanded","large","no-underline",3,"routerLink"],["aria-hidden","true",1,"separator"],[1,"button","primary","hollow","medium-down-expanded","no-underline",3,"routerLink"],[1,"cell","medium-6","show-for-medium","position-relative"],["aria-hidden","true",1,"banner-image","banner-image--medium","banner-image--pixel-depth_1x",3,"ngStyle"],["aria-hidden","true",1,"banner-image","banner-image--medium","banner-image--pixel-depth_2x",3,"ngStyle"],["aria-describedby","ariaWhyLearnMyWayHeadingLarge",1,"border-bottom-light"],[1,"cell","small-12","medium-5"],["id","ariaWhyLearnMyWayHeadingSmall",1,"hide-for-medium","text-center"],[3,"imageSrc","image2xSrc","quote","language"],[1,"cell","medium-7","padding-medium-left-1","padding-tablet-portrait-left-2"],["id","ariaWhyLearnMyWayHeadingLarge",1,"show-for-medium"],[1,"button","primary","hollow","medium-down-expanded","no-underline","margin-bottom-1",3,"routerLink"],["aria-describedby","ariaLearningThatFitsHeadingLarge"],[1,"cell","small-order-2","medium-order-1","medium-7"],["id","ariaLearningThatFitsHeadingLarge",1,"show-for-medium"],[3,"innerHTML"],[1,"cell","small-12","small-order-1","medium-order-2","medium-5"],["id","ariaLearningThatFitsHeadingSmall",1,"text-center","hide-for-medium"],["aria-hidden","true",1,"banner-image","banner-image--tertiary","banner-image--pixel-depth_1x",3,"ngStyle"],["aria-hidden","true",1,"banner-image","banner-image--tertiary","banner-image--pixel-depth_2x",3,"ngStyle"],[4,"ngIf"],["data-test","lmw-base-home-mobile-register-sign-in-bar",3,"language"]],template:function(o,e){1&o&&(t.j41(0,"main",1,0)(2,"section",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h1",6),t.EFF(7),t.k0s(),t.j41(8,"p",7),t.EFF(9),t.k0s(),t.nrm(10,"div",8)(11,"div",9),t.j41(12,"ul",10)(13,"li"),t.DNE(14,un,2,4,"a",11)(15,mn,2,4,"a",11),t.k0s(),t.j41(16,"li")(17,"a",12),t.EFF(18),t.k0s()(),t.nrm(19,"li",13),t.j41(20,"li")(21,"a",14),t.EFF(22),t.k0s()()()(),t.j41(23,"div",15),t.nrm(24,"div",16)(25,"div",17),t.k0s()()()(),t.j41(26,"section",18)(27,"div",3)(28,"div",4)(29,"div",19)(30,"h2",20),t.EFF(31),t.k0s(),t.nrm(32,"mono-common-blockquote-image",21),t.k0s(),t.j41(33,"div",22)(34,"h2",23),t.EFF(35),t.k0s(),t.j41(36,"p"),t.EFF(37),t.k0s(),t.j41(38,"p"),t.EFF(39),t.k0s(),t.j41(40,"a",24),t.EFF(41),t.k0s()()()()(),t.j41(42,"section",25)(43,"div",3)(44,"div",4)(45,"div",26)(46,"h2",27),t.EFF(47),t.k0s(),t.nrm(48,"div",28),t.j41(49,"a",24),t.EFF(50),t.k0s()(),t.j41(51,"div",29)(52,"h2",30),t.EFF(53),t.k0s(),t.nrm(54,"div",31)(55,"div",32),t.k0s()()()()(),t.DNE(56,cn,2,1,"ng-container",33)),2&o&&(t.R7$(7),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection?null:e.homeCmsData.data.attributes.homeFirstSection.header," "),t.R7$(2),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection?null:e.homeCmsData.data.attributes.homeFirstSection.description," "),t.R7$(),t.Y8G("ngStyle",t.eq3(30,w,"url("+(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection||null==e.homeCmsData.data.attributes.homeFirstSection.image1x||null==e.homeCmsData.data.attributes.homeFirstSection.image1x.data||null==e.homeCmsData.data.attributes.homeFirstSection.image1x.data.attributes?null:e.homeCmsData.data.attributes.homeFirstSection.image1x.data.attributes.url)+")")),t.R7$(),t.Y8G("ngStyle",t.eq3(32,w,"url("+(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection||null==e.homeCmsData.data.attributes.homeFirstSection.image2x||null==e.homeCmsData.data.attributes.homeFirstSection.image2x.data||null==e.homeCmsData.data.attributes.homeFirstSection.image2x.data.attributes?null:e.homeCmsData.data.attributes.homeFirstSection.image2x.data.attributes.url)+")")),t.R7$(3),t.Y8G("ngIf",!e.userSignedIn),t.R7$(),t.Y8G("ngIf",e.userSignedIn),t.R7$(2),t.Y8G("routerLink",t.eq3(34,A,e.browseAllSubjectsLink)),t.R7$(),t.JRh(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection?null:e.homeCmsData.data.attributes.homeFirstSection.subjectButtonText),t.R7$(3),t.Y8G("routerLink",t.eq3(36,A,e.helpLink)),t.R7$(),t.JRh(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection?null:e.homeCmsData.data.attributes.homeFirstSection.helpButtonText),t.R7$(2),t.Y8G("ngStyle",t.eq3(38,w,"url("+(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection||null==e.homeCmsData.data.attributes.homeFirstSection.image1x||null==e.homeCmsData.data.attributes.homeFirstSection.image1x.data||null==e.homeCmsData.data.attributes.homeFirstSection.image1x.data.attributes?null:e.homeCmsData.data.attributes.homeFirstSection.image1x.data.attributes.url)+")")),t.R7$(),t.Y8G("ngStyle",t.eq3(40,w,"url("+(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeFirstSection||null==e.homeCmsData.data.attributes.homeFirstSection.image2x||null==e.homeCmsData.data.attributes.homeFirstSection.image2x.data||null==e.homeCmsData.data.attributes.homeFirstSection.image2x.data.attributes?null:e.homeCmsData.data.attributes.homeFirstSection.image2x.data.attributes.url)+")")),t.R7$(6),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection?null:e.homeCmsData.data.attributes.homeSecondSection.header," "),t.R7$(),t.Y8G("imageSrc",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection||null==e.homeCmsData.data.attributes.homeSecondSection.image1x||null==e.homeCmsData.data.attributes.homeSecondSection.image1x.data||null==e.homeCmsData.data.attributes.homeSecondSection.image1x.data.attributes?null:e.homeCmsData.data.attributes.homeSecondSection.image1x.data.attributes.url)("image2xSrc",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection||null==e.homeCmsData.data.attributes.homeSecondSection.image2x||null==e.homeCmsData.data.attributes.homeSecondSection.image2x.data||null==e.homeCmsData.data.attributes.homeSecondSection.image2x.data.attributes?null:e.homeCmsData.data.attributes.homeSecondSection.image2x.data.attributes.url)("quote",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection?null:e.homeCmsData.data.attributes.homeSecondSection.imageQuote)("language",e.language),t.R7$(3),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection?null:e.homeCmsData.data.attributes.homeSecondSection.header," "),t.R7$(2),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection?null:e.homeCmsData.data.attributes.homeSecondSection.descriptionTop," "),t.R7$(2),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection?null:e.homeCmsData.data.attributes.homeSecondSection.descriptionBottom," "),t.R7$(),t.Y8G("routerLink",t.eq3(42,A,null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection?null:e.homeCmsData.data.attributes.homeSecondSection.link)),t.R7$(),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeSecondSection?null:e.homeCmsData.data.attributes.homeSecondSection.readStoryText,""),t.R7$(6),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeThirdSection?null:e.homeCmsData.data.attributes.homeThirdSection.header," "),t.R7$(),t.Y8G("innerHTML",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeThirdSection?null:e.homeCmsData.data.attributes.homeThirdSection.description,t.npT),t.R7$(),t.Y8G("routerLink",t.eq3(44,A,e.browseAllSubjectsLink)),t.R7$(),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeThirdSection?null:e.homeCmsData.data.attributes.homeThirdSection.tryTopicButtonText," "),t.R7$(3),t.SpI(" ",null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeThirdSection?null:e.homeCmsData.data.attributes.homeThirdSection.header," "),t.R7$(),t.Y8G("ngStyle",t.eq3(46,w,"url("+(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeThirdSection||null==e.homeCmsData.data.attributes.homeThirdSection.image1x||null==e.homeCmsData.data.attributes.homeThirdSection.image1x.data||null==e.homeCmsData.data.attributes.homeThirdSection.image1x.data.attributes?null:e.homeCmsData.data.attributes.homeThirdSection.image1x.data.attributes.url)+")")),t.R7$(),t.Y8G("ngStyle",t.eq3(48,w,"url("+(null==e.homeCmsData||null==e.homeCmsData.data||null==e.homeCmsData.data.attributes||null==e.homeCmsData.data.attributes.homeThirdSection||null==e.homeCmsData.data.attributes.homeThirdSection.image2x||null==e.homeCmsData.data.attributes.homeThirdSection.image2x.data||null==e.homeCmsData.data.attributes.homeThirdSection.image2x.data.attributes?null:e.homeCmsData.data.attributes.homeThirdSection.image2x.data.attributes.url)+")")),t.R7$(),t.Y8G("ngIf",!e.userSignedIn))},dependencies:[r.bT,r.B3,nt,c.Wk,tt]}),i})(),pn=(()=>{var a;class i{constructor(o){this.route=o,this.mobileBackButtonText=u.c.homeLinkText}
1ngOnInit(){this.privacyCmsData=this.route.snapshot.data.cmsData}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-privacy"]],decls:7,vars:5,consts:[["content",""],["data-test","lmw-base-privacy-back-to-home-bar-top","linkTo","/","position","back-to-navigation__top",3,"linkText"],["id","content","aria-describedby","ariaMainHeaderId",1,"grid-container","site-container"],[1,"grid-x","grid-margin-x"],[1,"cell",3,"innerHTML"],["data-test","lmw-base-privacy-back-to-home-bar-bottom","linkTo","/","position","back-to-navigation__bottom",3,"linkText"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",1),t.j41(1,"main",2,0)(3,"div",3),t.nrm(4,"div",4),t.nI1(5,"dontSanitizeHtml"),t.k0s()(),t.nrm(6,"mono-common-back-to-navigation-bar",5)),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(4),t.Y8G("innerHTML",t.bMT(5,3,null==e.privacyCmsData||null==e.privacyCmsData.data||null==e.privacyCmsData.data.attributes?null:e.privacyCmsData.data.attributes.copy),t.npT),t.R7$(2),t.Y8G("linkText",e.mobileBackButtonText))},dependencies:[C.n,I.Y],encapsulation:2}),i})(),gn=(()=>{var a;class i{constructor(o){this.route=o,this.mobileBackButtonText=u.c.homeLinkText}ngOnInit(){this.termsAndConditionsCmsData=this.route.snapshot.data.cmsData}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-terms-and-conditions"]],decls:6,vars:5,consts:[["data-test","lmw-base-terms-back-to-home-bar-top","linkTo","/","position","back-to-navigation__top",3,"linkText"],["aria-describedby","ariaMainHeaderId",1,"grid-container","site-container"],[1,"grid-x","grid-margin-x"],[1,"cell",3,"innerHTML"],["data-test","lmw-base-terms-back-to-home-bar-bottom","linkTo","/","position","back-to-navigation__bottom",3,"linkText"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",0),t.j41(1,"main",1)(2,"div",2),t.nrm(3,"div",3),t.nI1(4,"dontSanitizeHtml"),t.k0s()(),t.nrm(5,"mono-common-back-to-navigation-bar",4)),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(3),t.Y8G("innerHTML",t.bMT(4,3,null==e.termsAndConditionsCmsData||null==e.termsAndConditionsCmsData.data||null==e.termsAndConditionsCmsData.data.attributes?null:e.termsAndConditionsCmsData.data.attributes.copy),t.npT),t.R7$(2),t.Y8G("linkText",e.mobileBackButtonText))},dependencies:[C.n,I.Y],encapsulation:2}),i})(),hn=(()=>{var a;class i{constructor(o){this.route=o,this.mobileBackButtonText=u.c.homeLinkText}ngOnInit(){this.accessibilityCmsData=this.route.snapshot.data.cmsData}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-accessibility"]],decls:6,vars:5,consts:[["data-test","lmw-base-accessibility-back-to-home-bar-top","linkTo","/","position","back-to-navigation__top",3,"linkText"],["aria-describedby","ariaMainHeaderId",1,"grid-container","site-container"],[1,"grid-x","grid-margin-x"],[1,"cell",3,"innerHTML"],["data-test","lmw-base-accessibility-back-to-home-bar-bottom","linkTo","/","position","back-to-navigation__bottom",3,"linkText"]],template:function(o,e){1&o&&(t.nrm(0,"mono-common-back-to-navigation-bar",0),t.j41(1,"main",1)(2,"div",2),t.nrm(3,"div",3),t.nI1(4,"dontSanitizeHtml"),t.k0s()(),t.nrm(5,"mono-common-back-to-navigation-bar",4)),2&o&&(t.Y8G("linkText",e.mobileBackButtonText),t.R7$(3),t.Y8G("innerHTML",t.bMT(4,3,null==e.accessibilityCmsData||null==e.accessibilityCmsData.data||null==e.accessibilityCmsData.data.attributes?null:e.accessibilityCmsData.data.attributes.copy),t.npT),t.R7$(2),t.Y8G("linkText",e.mobileBackButtonText))},dependencies:[C.n,I.Y],encapsulation:2}),i})();var bn=l(5631);const it=a=>({"background-image":a});function fn(a,i){if(1&a&&(t.j41(0,"p",14),t.EFF(1),t.k0s()),2&a){const n=t.XpG();t.R7$(),t.JRh(n.topic.description)}}function Cn(a,i){if(1&a&&t.nrm(0,"mono-common-callout",15),2&a){const n=t.XpG();t.Y8G("calloutText",null==n.topicLandingCms||null==n.topicLandingCms.data||null==n.topicLandingCms.data.attributes?null:n.topicLandingCms.data.attributes.lockedTopicInformation)}}function Sn(a,i){1&a&&(t.j41(0,"p",19),t.EFF(1," \xa0 "),t.k0s())}function In(a,i){if(1&a&&(t.j41(0,"p",20),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){const n=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,1,n.translate("Not completed yet"))," ")}}function kn(a,i){if(1&a&&(t.j41(0,"p",21),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&a){const n=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,1,n.translate("Last completed: "+n.topicCompletedDate))," ")}}function _n(a,i){if(1&a&&(t.qex(0),t.DNE(1,Sn,2,0,"p",16)(2,In,3,3,"p",17)(3,kn,3,3,"p",18),t.bVm()),2&a){const n=t.XpG();t.R7$(),t.Y8G("ngIf",""!==n.topicCompletedDate&&!n.topicCompletedDate),t.R7$(),t.Y8G("ngIf",""===n.topicCompletedDate),t.R7$(),t.Y8G("ngIf",n.topicCompletedDate)}}let vn=(()=>{var a;class i{constructor(o,e,s,m){this.topicService=o,this.router=e,this.route=s,this.translateService=m,this.defaultImageNumber="7",this.matchingCompletedTopicSlugs=[]}
1ngOnInit(){this.localeId=this.route.snapshot.data.localeId,this.topicLandingCms=this.route.snapshot.data.cmsData,this.requiresSignIn=this.route.snapshot.data.topic.requiresSignIn,this.userSignedIn=this.route.snapshot.data.userSignedIn,this.getTopicData(this.route.snapshot.data.topic),this.getImageNumber(this.route.snapshot.data.subjectImageNumber),this.getSubjectName(),this.getAllTopicAttempts()}startLearningClicked(){this.router.navigate([`/${bn.kM.path}`],{queryParams:{subjectSlug:this.subjectSlug,topicSlug:this.topic.sk,locale:this.localeId}})}translate(o){return this.translateService.translate(o,f.c.language)}getSubjectName(){this.subjectSlug=this.route.snapshot.params["subject-slug"],this.subjectName=this.getSubjectNameFromSlug(this.subjectSlug)}getAllTopicAttempts(){this.topicService.getTopicsAttemptsByCompleted(!0).subscribe(o=>{this.findCurrentTopicSlugInTopicsFound(o)})}findCurrentTopicSlugInTopicsFound(o){o.forEach(e=>{e.SK.split(":")[1]===this.topic.sk&&this.matchingCompletedTopicSlugs.push(e)}),this.setTopicCompletedString()}setTopicCompletedString(){this.topicCompletedDate=this.matchingCompletedTopicSlugs.length>0?this.formatDateForLocale(this.matchingCompletedTopicSlugs[0].dateCreated):""}formatDateForLocale(o){return new Date(o).toLocaleString(this.localeId).split(",")[0]}getTopicData(o){o&&(this.topic=o)}getImageNumber(o){this.subjectImageNumber=o||this.defaultImageNumber}getSubjectNameFromSlug(o){const e=o.replace(/\-/g," ");return e[0].toUpperCase()+e.slice(1)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(k.h),t.rXU(c.Ix),t.rXU(c.nX),t.rXU(y.c$))},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-topic-landing"]],decls:16,vars:15,consts:[["content",""],["data-test","lmw-base-topic-landing-back-to-topic","linkTo","../","position","back-to-navigation__top",3,"linkText"],["id","content","aria-describedby","ariaMainHeaderId",1,"grid-container","site-container","site-container--topic-landing"],[1,"grid-x","grid-margin-x"],[1,"cell","medium-6","position-relative"],["id","ariaMainHeaderId"],["class","lead",4,"ngIf"],[1,"button","large","primary","medium-down-expanded",3,"click","disabled","ngClass"],["base","info","type","info-box","paddingOrMarginAlteration","position-relative width-100","data-test","topic-landing-component-callout-requiresSignIn",3,"calloutText",4,"ngIf"],[4,"ngIf"],[1,"cell","medium-6","show-for-medium","position-relative"],["aria-hidden","true",1,"topic-image","banner-image--pixel-depth_1x",3,"ngStyle"],["aria-hidden","true",1,"topic-image","banner-image--pixel-depth_2x",3,"ngStyle"],["data-test","lmw-base-topic-landing-back-to-topic","linkTo","../","position","back-to-navigation__bottom",3,"linkText"],[1,"lead"],["base","info","type","info-box","paddingOrMarginAlteration","position-relative width-100","data-test","topic-landing-component-callout-requiresSignIn",3,"calloutText"],["class","topic-completed",4,"ngIf"],["data-test","topic-landing-component-topic-not-completed","class","topic-completed",4,"ngIf"],["data-test","topic-landing-component-topic-completed","class","topic-completed",4,"ngIf"],[1,"topic-completed"],["data-test","topic-landing-component-topic-not-completed",1,"topic-completed"],["data-test","topic-landing-component-topic-completed",1,"topic-completed"]],template:function(o,e){if(1&o){const s=t.RV6();t.nrm(0,"mono-common-back-to-navigation-bar",1),t.j41(1,"main",2,0)(3,"div",3)(4,"div",4)(5,"h1",5),t.EFF(6),t.k0s(),t.DNE(7,fn,2,1,"p",6),t.j41(8,"button",7),t.bIt("click",function(){return t.eBV(s),t.Njj(e.startLearningClicked())}),t.EFF(9),t.k0s(),t.DNE(10,Cn,1,1,"mono-common-callout",8)(11,_n,4,3,"ng-container",9),t.k0s(),t.j41(12,"div",10),t.nrm(13,"div",11)(14,"div",12),t.k0s()()(),t.nrm(15,"mono-common-back-to-navigation-bar",13)}2&o&&(t.Y8G("linkText",e.subjectName),t.R7$(6),t.JRh(e.topic.title),t.R7$(),t.Y8G("ngIf",e.topic.description),t.R7$(),t.Y8G("disabled",e.requiresSignIn&&!e.userSignedIn)("ngClass",e.requiresSignIn&&!e.userSignedIn||e.userSignedIn?"margin-bottom-1":""),t.R7$(),t.SpI(" ",null==e.topicLandingCms||null==e.topicLandingCms.data||null==e.topicLandingCms.data.attributes?null:e.topicLandingCms.data.attributes.startButton," "),t.R7$(),t.Y8G("ngIf",e.requiresSignIn&&!e.userSignedIn),t.R7$(),t.Y8G("ngIf",e.userSignedIn),t.R7$(2),t.Y8G("ngStyle",t.eq3(11,it,"url(assets/images/topic-landing-subject-"+e.subjectImageNumber+"@1x.jpg)")),t.R7$(),t.Y8G("ngStyle",t.eq3(13,it,"url(assets/images/topic-landing-subject-"+e.subjectImageNumber+"@2x.jpg)")),t.R7$(),t.Y8G("linkText",e.subjectName))},dependencies:[r.YU,r.bT,r.B3,C.n,P.G,r.Jj],encapsulation:2}),i})(),N=(()=>{var a;class i{constructor(o){this.localeId=o}resolve(){return this.localeId}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(t.xe9))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})();var q=l(2677),Tn=l(8757),yn=l(9003),st=l(3602),U=l(5443);let Dn=(()=>{var a;class i{constructor(o,e,s){this.topicService=o,this.awsAuthService=e,this.localeId=s}resolve(o){const e=o.params["subject-slug"];return(0,q.H)(this.awsAuthService.isUserLoggedIn()).pipe((0,yn.H)(s=>{if(s){const m=this.topicService.getTopicsBySubjectAndLocale(e,this.localeId).pipe((0,st.
1s)(1)),d=this.topicService.getTopicsAttemptsByCompleted(!0).pipe((0,st.s)(1));return(0,Tn.p)([m,d]).pipe((0,U.T)(([g,S])=>this.addCompletedProperty(g,S)))}return this.topicService.getTopicsBySubjectAndLocale(e,this.localeId)}))}addCompletedProperty(o,e){const s=[];return e.forEach(m=>{s.push(m.SK.split(":")[1])}),o.map(m=>(m.completed=s.indexOf(m.sk)>=0,m))}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(k.h),t.KVO(j.$u),t.KVO(t.xe9))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})(),Ln=(()=>{var a;class i{constructor(o,e){this.topicService=o,this.localeId=e}resolve(o){return this.topicService.getSubjectImageNumber(o.params["subject-slug"],this.localeId)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(k.h),t.KVO(t.xe9))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})(),Fn=(()=>{var a;class i{constructor(o,e){this.topicService=o,this.localeId=e}resolve(o){return this.topicService.getTopicBySlugAndLocale(o.params["topic-slug"],this.localeId)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(k.h),t.KVO(t.xe9))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})(),jn=(()=>{var a;class i{constructor(o,e){this.topicService=o,this.localeId=e}resolve(o){return this.topicService.getSubjectsByLocale(this.localeId)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(k.h),t.KVO(t.xe9))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})(),Rn=(()=>{var a;class i{constructor(o,e){this.topicService=o,this.localeId=e}resolve(o){return this.topicService.getSubjectsByLocale(this.localeId)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(k.h),t.KVO(t.xe9))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})();var v=l(6183),wn=l(1282),An=l(8627);const Bn={};function $n(a,i){if(1&a&&(t.j41(0,"a",11),t.EFF(1),t.k0s()),2&a){const n=t.XpG().$implicit;t.Mz_("routerLink","/",n.urlSegment,""),t.R7$(),t.JRh(n.urlName)}}function Gn(a,i){1&a&&(t.qSk(),t.j41(0,"svg",5),t.nrm(1,"use",6),t.k0s())}function Mn(a,i){if(1&a&&(t.j41(0,"span",12),t.EFF(1),t.k0s()),2&a){const n=t.XpG().$implicit;t.R7$(),t.JRh(n.urlName)}}function Hn(a,i){if(1&a&&(t.qex(0),t.DNE(1,$n,2,3,"a",8)(2,Gn,2,0,"svg",9)(3,Mn,2,1,"span",10),t.bVm()),2&a){const n=i.last;t.R7$(),t.Y8G("ngIf",!n),t.R7$(),t.Y8G("ngIf",!n),t.R7$(),t.Y8G("ngIf",n)}}let xn=(()=>{var a;class i{constructor(o){this.router=o,this.defaultLanguage="en",this.language=this.defaultLanguage,this.urlNameAndSegments=[]}ngOnInit(){this.homeText=(0,q.H)((0,wn.A)(this.language==this.defaultLanguage?"Home":"Home page",this.language)).pipe((0,U.T)(o=>o[0].toUpperCase()+o.slice(1))),this.urlNameAndSegments=this.createUrlObject(this.createUrlSegments(this.router.url)),this.router.events.pipe((0,An.p)(o=>o instanceof c.wF)).subscribe(o=>{this.urlNameAndSegments=this.createUrlObject(this.createUrlSegments(o.url))})}createUrlSegments(o){return o.split(/[?#]/)[0].split("/").filter(e=>e)}createUrlObject(o){if(o.length)return o.map((e,s)=>({urlName:this.removeHyphens(e),urlSegment:this.createUrl(o,s)}))}createUrl(o,e){return o.slice(0,e+1).map(d=>d).join("/")}removeHyphens(o){let e=o.replace(/-/g," ");return e=this.addHyphensForSpecificWords(e,Bn),e[0].toUpperCase()+e.slice(1)}addHyphensForSpecificWords(o,e){let s=o;for(const[m,d]of Object.entries(e))s=s.replace(new RegExp(m,"ig"),d);return s}}return(a=i).\u0275fac=function(o){return new(o||a)(t.rXU(c.Ix))},a.\u0275cmp=t.VBU({type:a,selectors:[["mono-common-breadcrumbs"]],inputs:{language:"language"},decls:10,vars:4,consts:[[1,"breadcrumb","show-for-large"],[1,"grid-container"],[1,"grid-x"],[1,"cell","flex-container","align-middle"],["routerLink","/","data-test","lmw-common-breadcrumb-home-link"],[1,"icon","icon--chevrom-right"],[0,"xlink","href","#icon-chevron-right","href","#icon-chevron-right"],[4,"ngFor","ngForOf"],["data-test","lmw-common-breadcrumb-link",3,"routerLink",4,"ngIf"],["class","icon icon--chevrom-right",4,"ngIf"],["data-test","lmw-common-breadcrumb-link",4,"ngIf"],["data-test","lmw-common-breadcrumb-link",3,"routerLink"],["data-test","lmw-common-breadcrumb-link"]],template:function(o,e){1&o&&(t.j41(0,"nav",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),t.EFF(5),t.nI1(6,"async"),t.k0s(),t.qSk(),t.j41(7,"svg",5),t.nrm(8,"use",6),t.k0s(),t.DNE(9,Hn,4,3,"ng-container",7),t.k0s()()()()),2&o&&(t.R
17$(5),t.JRh(t.bMT(6,2,e.homeText)),t.R7$(4),t.Y8G("ngForOf",e.urlNameAndSegments))},dependencies:[r.Sq,r.bT,c.Wk,r.Jj]}),i})(),En=(()=>{var a;class i{constructor(){this.language=f.c.language}ngOnInit(){}}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.VBU({type:a,selectors:[["lmw-base-breadcrumb-and-navigation"]],decls:2,vars:1,consts:[[3,"language"]],template:function(o,e){1&o&&t.nrm(0,"mono-common-breadcrumbs",0)(1,"router-outlet"),2&o&&t.Y8G("language",e.language)},dependencies:[xn,c.n3],encapsulation:2}),i})();var Yn=l(7506);const na=[{path:"",component:Nt,children:[{path:u.c.lmwHomeStatePath,pathMatch:"full",data:{title:u.c.lmwHomeStateTitle,strapiUrl:"home?populate[homeFirstSection][populate]=*&populate[homeSecondSection][populate]=*&populate[homeThirdSection][populate]=*"},component:dn,resolve:{userSignedIn:v.z,cmsData:h.c6}},{path:"",component:En,children:[{path:u.c.browseSubjectsStatePath,component:ne,data:{title:u.c.browseSubjectsTitle,strapiUrl:"browse-subjects"},resolve:{userSignedIn:v.z,subjects:jn,cmsData:h.c6}},{path:u.c.caseStudyStatePath,component:oe,data:{title:u.c.caseStudyTitle,strapiUrl:"case-study?populate[caseStudyFirstSection][populate]=*&populate[caseStudySecondSection][populate]=*"},resolve:{localeId:N,cmsData:h.c6}},{path:u.c.myLearningHomeStatePath,component:ln,canActivate:[(()=>{var a;class i{constructor(o,e){this.awsAuthService=o,this.router=e}canActivate(){return(0,q.H)(this.awsAuthService.isUserLoggedIn()).pipe((0,U.T)(o=>{if(o)return!0;{const e=(0,y.W1)({[Yn.O]:`/${u.c.myLearningHomeStatePath}`});return this.router.navigate([`/${b.D.path}/${T.Ci.path}/${G.mu.path}`],{state:{...e}}),!1}}))}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(j.$u),t.KVO(c.Ix))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})()],data:{title:u.c.myLearningHomeTitle,strapiUrl:"my-learning"},resolve:{userSignedIn:v.z,subjects:Rn,userClaims:j.zd,cmsData:h.c6}},{path:V.D.editMyDetailsStatePath,loadChildren:()=>Promise.all([l.e(76),l.e(286)]).then(l.bind(l,7286)).then(a=>a.EditMyDetailsModule)},{path:u.c.helpStatePath,component:tn,data:{title:u.c.helpTitle,strapiUrl:"help?populate[0]=helpDesktop&populate[1]=helpDesktop.helpInstructions&populate[2]=helpDesktop.helpInstructions.image&populate[3]=helpMobile&populate[4]=helpMobile.helpInstructions&populate[5]=helpMobile.helpInstructions.image&populate[6]=helpSecondSection&populate[7]=accordionHelpCallout"},resolve:{userSignedIn:v.z,localeId:N,cmsData:h.c6}},{path:`${u.c.browseSubjectsStatePath}/:subject-slug`,component:de,data:{title:u.c.browseTopicsTitle,strapiUrl:"browse-topics"},resolve:{userSignedIn:v.z,subject:(()=>{var a;class i{constructor(o,e){this.topicService=o,this.localeId=e}resolve(o){return this.topicService.getSubjectByLocale(o.params["subject-slug"],this.localeId)}}return(a=i).\u0275fac=function(o){return new(o||a)(t.KVO(k.h),t.KVO(t.xe9))},a.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),i})(),topics:Dn,cmsData:h.c6}},f.c.loadLocalSupport?{path:u.c.reportAnIssueStatePath,data:{title:u.c.reportAnIssueTitle,strapiUrl:"local-support-page?populate[signedOutForm][populate]=*&populate[signedInForm][populate]=*&populate[enquiryFormResponse][populate]=*"},component:xe,resolve:{userSignedIn:v.z,userClaims:j.zd,cmsData:h.c6}}:null,f.c.loadCookies?{path:u.c.cookiesStatePath,data:{title:u.c.cookiesTitle,strapiUrl:"cookie"},component:Ee,resolve:{cmsData:h.c6}}:null,{path:u.c.privacyStatePath,data:{title:u.c.privacyTitle,strapiUrl:"privacy"},component:pn,resolve:{cmsData:h.c6}},{path:u.c.termsAndConditionsStatePath,data:{title:u.c.termsAndConditionsTitle,strapiUrl:"terms-and-condition"},component:gn,resolve:{cmsData:h.c6}},{path:u.c.accessibilityStatePath,data:{title:u.c.accessibilityTitle,strapiUrl:"accessibility"},component:hn,resolve:{cmsData:h.c6}},{path:`${u.c.browseSubjectsStatePath}/:subject-slug/:topic-slug`,component:vn,data:{title:u.c.topicLandingTitle,strapiUrl:"topic-landing"},resolve:{userSignedIn:v.z,localeId:N,subjectImageNumber:Ln,topic:Fn,cmsData:h.c6}}].filter(Boolean)},{path:"",loadChildren:()=>l.e(949).then(l.bind(l,4949)).then(a=>a.LmwErrorModule)}]}];let aa=(()=>{var a;class i{}return(a=i).\u0275fac=function(o){return new(o||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({providers:[v.z],imports:[r.MD,M.s,H.q1,p.X1,c.iI.forChild([...na])]}),i})()},2330:(O,D,l)=>{l.d(D,{n:()=>H});var r=l(8559),c=l(316),M=l(2728);let H=(()=>{var p;class u{constructor(){}ngOnInit(){}}return(p=u).\u0275fac=function(h){return new(h||p)},p.\u0275cmp=r.VBU({type:p,selectors:[["mono-common-back-to-navigation-bar"]],inputs:{linkText:"linkText",linkTo:"linkTo",position:"position"},decls:12,vars:3,consts:[[1,"back-to-navigation","show-for-medium-d
1own",3,"ngClass"],[1,"grid-container"],[1,"grid-x"],[1,"cell","flex-container","align-middle"],["data-test","mono-common-back-to-navigation-bar-link",1,"button","button--icon-on-left","small","clear",3,"routerLink"],["viewBox","0 0 24 24",1,"icon","icon--arrow-left",2,"width","21px","height","21px"],[0,"xlink","href","#icon-arrow-left","href","#icon-arrow-left"],["data-test","mono-common-back-to-navigation-bar-link-text"]],template:function(h,L){1&h&&(r.j41(0,"nav",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),r.qSk(),r.j41(5,"svg",5),r.nrm(6,"use",6),r.k0s(),r.joV(),r.j41(7,"span"),r.nrm(8,"span"),r.j41(9,"span",7)(10,"strong"),r.EFF(11),r.k0s()()()()()()()()),2&h&&(r.Y8G("ngClass",L.position),r.R7$(4),r.FS9("routerLink",L.linkTo),r.R7$(7),r.JRh(L.linkText))},dependencies:[c.YU,M.Wk]}),u})()}}]); 2//# sourceMappingURL=653.26a1dc003ca49258.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.