0&&(n.eligibleLocales=a)}createDebugAccessURL(t,n,a){let o=n;return t&&(o=n.slice(0,n.lastIndexOf("/"))+"/inline-debug"),o=o+"?p_p_id=ahdebug_WAR_ahdebugportlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_ahdebug_WAR_ahdebugportlet_DEBUG_COMPONENT_TYPE=NAVIGATION&_ahdebug_WAR_ahdebugportlet_DEBUG_COMPONENT_ID=&_ahdebug_WAR_ahdebugportlet_DEBUG_DISPLAY_TYPE=LIST&_ahdebug_WAR_ahdebugportlet_DEBUG_COMPONENT_BACK_URL="+encodeURIComponent(n+"?"+a),o}getLanguage(){let t="";try{t=JSON.parse(this.getDomStorageServiceInstance().getItem("lr_json_data")).locale}catch(n){t="en_US"}return t}getPageName(t){return t.split("/").pop()}getFreindlyPageName(t){if(-1!==t.indexOf("userFriendlyNameForLink")){let n=t.split("userFriendlyNameForLink"),a=n[1].indexOf("&");return encodeURI(n[1].substring(1,a))}return""}getTechnicalName(t){if(-1!==t.indexOf("technicalNameForLink")){let n=t.split("technicalNameForLink"),a=n[1].indexOf("&");return n[1].substring(1,a)}return""}getHeaderSearchConfig(t){let n=new qi;return n.adminStatePortal=t.adminStatePortal,n.activeBusinessAccountsAvailable=t.activeBusinessAccountsAvailable,n.ecsAdmin=t.ecsAdmin,n.ecsColorId=t.ecsColorId,n.hasSearchFunctionality=t.hasSearchFunctionality,n.isNewTemplate=t.newTemplate,n.isPSPAdopted=t.pspAdopted,n.isSearchEnabled=t.searchEnabled,n.logOffColorId=t.logOffColorId,n.onMasPage=t.masPage,n.isPostBlockDate=t.postBlockDate,n.searchFieldTitle=t.searchFieldTitle,n.searchIconTitle=t.searchIconTitle,n.searchPopupTitle=t.searchPopupTitle,n}setColorSchemeDetails(t,n){null!==t&&""!==t&&"preauthecs"===t&&(n.ecsColorId=!0),null!==t&&""!==t&&"log-off"===t&&(n.logOffColorId=!0)}getDomStorageServiceInstance(){return this.domStorageService}setPageUtilityPosition(t){let n=document.querySelectorAll("#ah-column-toolbar .yui3-ahutilityalign");n&&(n.length>1&&(t.setStyle(n[0],"position","static"),t.setStyle(n[1],"position","static")),1===n.length&&t.setStyle(n[0],"position","static"))}bindQualtricsFeedbackLink(){if(this.getDomStorageServiceInstance().getItem("upnFeedback","",!0)){m.LoggingService.uConsole&&console.log("Enter in bindQualtricsFeedbackLink function");try{new function(n,a,o,l){m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - g Fn : ","e : ",n,"h : ",a,"f : ",o,"g :",l),this.get=function(s){m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - this.get Fn : ",this.get,"a : ",s," document.cookie : ",document.cookie),s+="=";for(var c=document.cookie.split(";"),d=0,p=c.length;d if a.length : ",s.length," d.length : ",u.length),u.substring(s.length,u.length)}return null},this.set=function(s,c){m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - this.set Fn : ",this.set," a : ",s," c : ",c);let d="";d=new Date,d.setTime(d.getTime()+6048e5),d="; expires="+d.toGMTString(),document.cookie=s+"="+c+d+"; path=/; ",m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - set fn : ",document.cookie)},this.check=function(){m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - this.check Fn : ",this.check);let s=this.get(o);if(m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - a : ",s," f :",o),s)s=s.split(":"),m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - fn this.check if > a ",s);else{if(100==n)return!0;s=[a,n,0],this.set(o,s.join(":")),console.log("fn else if "," e :",n," h : ",a," f : ",o,"a.join : ",s.join)}let c=s[1];if(m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - fn this.check == c ",c),100==c)return!0;switch(s[0]){case"v":return m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - fn this.check case V"),!1;case"r":return m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - fn this.check case R ",c),c=s[2]%Math.floor(100/c),s[2]++,this.set(o,s.join(":")),!c}return!0},this.go=function(){if(m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - go fn call"),this.check()){m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - if : this.check",this.check()," g :",l);const s=document.createElement("script");s.type="text/javascript",s.defer=!0,s.src=l+"&t="+(new Date).getTime(),document.body&&document.body.appendChild(s)}},this.start=function(){let s=this;window.addEventListener("load",function(){setTimeout(()=>{m.LoggingService.uConsole&&console.log("bindQualtricsFeedbackLink - setTimeout of go - addEventListener 1"),s.go()},500)},!1)}}(100,"r","QSI_S_ZN_3Q9k3fzV645VjSZ","https://zn3q9k3fzv645vjsz-alight.siteintercept.qualtrics.com/WRSiteInterceptEngine/?Q_ZID=ZN_3Q9k3fzV645VjSZ&Q_LOC="+encodeURIComponent(window.location.href)).go()}catch(n){m.LoggingService.uConsole&&console.log(n)}}}setDropDownPosition(t,n){if(t&&n){const a=n,o=t.target||t.srcElement;a&&a.removeAttribute("style"),a&&a.classList.contains("hidden")&&a.classList.remove("hidden");const l=o.getBoundingClientRect(),s=a.getBoundingClientRect();a.style.left="al-roll"===n.id&&a?o.offsetLeft+o.offsetWidth/2-a.offsetWidth/2+"px":o.clientLeft+o.offsetWidth/2-a.offsetWidth/2+"px";let c=a.offsetLeft.toString();c=c.substring(1,c.length),document.querySelector("html").classList.contains("ui-rtl")&&s.width+s.left>window.document.body.getBoundingClientRect().width&&(a.style.left=-(s.width+s.left-(window.document.body.getBoundingClientRect().width-1))+"px"),parseInt(l.left,10){o.querySelector("a")&&this.isElementVisible(o)&&(o.querySelector("a").classList.add("data-"+n+"-nav-"+l),o.addEventListener("keydown",s=>{const c=document.querySelectorAll('a[class*="data-'+n+'-nav-"]'),p=s.currentTarget.querySelector(".al-secondarynav-level-2");document.querySelector("#al-aux-your-profile").classList.contains("hidden")&&(p&&p.classList.contains("hidden")||a.classList.contains("al-primary-nav-none")||"al-primary-nav"===a.id)&&this.setCircularFocus(s,l,c.length,n,a)},!1))})}manageAccessibility(t,n){if(t){const a=t,o=a.querySelectorAll("a[href]"),l=Array.prototype.slice.call(o);let f,s=40,c=38,d="ArrowDown",p="ArrowUp",_="ArrowUp",h="ArrowDown";"al-secondarynav-level-2"===t.id?(f=l[1],s=39,d="ArrowRight",c=37,p="ArrowLeft"):f="al-aux-your-profile"===t.id||"al-aux-choose-language"===t.id?l[2]:l[0];const A=l[l.length-1];f&&setTimeout(()=>{f.focus()},0),a&&a.addEventListener("keydown",x=>{const S=x.target;if(x.key===d||x.key===h)if(x.preventDefault(),"mobilePrimaryNavigation"===n){let H=S.parentElement.parentElement.nextElementSibling.querySelector("#al-aux-nav-primary");if(S.parentElement.nextElementSibling&&null!=S.parentElement.nextElementSibling.firstElementChild){const T=S.parentElement.nextElementSibling.firstElementChild;if(T.querySelector("#small_smartunavbutton")){const D=S.parentElement.nextElementSibling.nextElementSibling.firstElementChild.firstElementChild;setTimeout(()=>{D.focus()},1)}else T.focus()}else if(H){const T=H.querySelector("#al-aux-your-profile-aria-label");setTimeout(()=>{T.focus()},0)}else if(null===S.parentElement.parentElement.nextElementSibling.firstElementChild){const T=S.parentElement.parentElement.nextElementSibling.nextElementSibling.firstElementChild;setTimeout(()=>{T.focus()},0)}else if("feedback"===S.parentElement.parentElement.nextElementSibling.id){const T=S.parentElement.parentElement.nextElementSibling.firstElementChild.firstElementChild;setTimeout(()=>{T.focus()},0)}else if("header_feedback"===S.id){const T=S.parentElement.parentElement.nextElementSibling.firstElementChild;setTimeout(()=>{T.focus()},0)}else if(S.parentElement.parentElement.nextElementSibling.classList.contains("isLogOffLink")){const T=S.parentElement.parentElement.nextElementSibling.firstElementChild;setTimeout(()=>{T.focus()},0)}else S.parentElement.classList.contains("isLogOffLink")&&setTimeout(()=>{f.focus()},0)}else S.parentElement.nextElementSibling&&null!=S.parentElement.nextElementSibling.firstElementChild?S.parentElement.nextElementSibling.firstElementChild.focus():f.focus();if(x.key===p||x.key===_)if(x.preventDefault(),"mobilePrimaryNavigation"===n){let H=S.parentElement.parentElement.nextElementSibling.querySelector("#al-aux-nav-primary");if(S.parentElement.previousElementSibling&&null!=S.parentElement.previousElementSibling.firstElementChild)S.parentElement.previousElementSibling.firstElementChild.focus();else if(H){const T=H.lastElementChild.firstElementChild;setTimeout(()=>{T.focus()},1)}else{"al-aux-your-profile-aria-label"===S.id&&S.parentElement.parentElement.parentElement.previousElementSibling.lastElementChild.firstElementChild.focus();const D=S.parentElement.parentElement.previousElementSibling;if(null!=D)if(D.querySelector("#small_smartunavbutton")){const K=S.parentElement.parentElement.previousElementSibling.previousElementSibling.firstElementChild;setTimeout(()=>{K.focus()},1)}else A.focus();else A.focus()}}else S.parentElement.previousElementSibling&&null!=S.parentElement.previousElementSibling.firstElementChild?S.parentElement.previousElementSibling.firstElementChild.focus():A.focus();if(x.shiftKey&&"Tab"===x.key&&"mobilePrimaryNavigation"!==n){const N=this.appUtility.findClosest(S,"BY_CLASS",".subNav");if(N&&N.setAttribute("tabindex",0),null==S.parentElement.previousElementSibling||null===S.parentElement.previousElementSibling.firstElementChild){let H=document.getElementsByTagName("html")[0].classList;if(H&&H.contains("al-view-lt720")&&("al-aux-your-profile"===t.id||"al-aux-choose-language"===t.id)&&""===S.id)return!1;"al-secondarynav-level-2"!==t.id&&x.preventDefault(),this.hideAllsubmenu(!0)}return!1}"Tab"===x.key&&null===S.parentElement.nextElementSibling&&this.hideAllsubmenu(),"Escape"===x.key&&(document.getElementsByTagName("html")[0].classList.contains("al-view-lt720")||(this.hideAllsubmenu(!0),S.closest("#al-secondarynav-level-2").closest("li").firstElementChild.focus())),a.removeEventListener(x.type,()=>{},!0)})}}hideAllsubmenu(t){let n=document.querySelector("#al-aux-your-profile"),a=document.querySelector("#al-aux-choose-language"),o=document.querySelector("#al-roll");const l=document.querySelectorAll(".al-secondarynav-level-2");if(null!==o&&(document.getElementById("al-roll-aria-label").setAttribute("aria-expanded","false"),t&&!o.classList.contains("hidden")&&setTimeout(()=>{let s=document.getElementById("al-roll-aria-label");s&&s.focus()},0),o.classList.add("hidden")),null!==n&&(t&&!n.classList.contains("hidden")&&setTimeout(()=>{let s=document.querySelector("#al-aux-nav #al-aux-your-profile-aria-label");s&&s.focus()},0),n.classList.add("hidden")),null!==a){let s=document.querySelectorAll("#al-aux-nav #al-aux-choose-language-aria-label");s&&s.length>0&&s[0].setAttribute("aria-expanded","false"),t&&!a.classList.contains("hidden")&&setTimeout(()=>{let c=document.querySelector("#al-aux-nav #al-aux-choose-language-aria-label");c&&c.focus()},0),a.classList.add("hidden")}if(null!==l)for(let s=0;s{27===a.which||9===a.which&&a.shiftKey?(t.classList.add("hidden"),setTimeout(()=>{n.target.focus()},0)):9===a.which&&!a.shiftKey&&(t.classList.add("hidden"),this.getNextFocusableElement(document.querySelector(".al-primary-nav-none"),n)),t.removeEventListener(a.type,function(){},!0)})}getNextFocusableElement(t,n){if(t&&t.nextElementSibling&&this.isElementVisible(t)&&!n.shiftKey)if("al-primary-nav"===t.id&&this.isElementVisible(document.querySelector('#ULsubNav[tabindex="0"]')))setTimeout(function(){document.querySelector('#ULsubNav[tabindex="0"]').focus()},0);else{let a;a=this.isElementVisible(t.nextElementSibling)||"AL-APP-NAVIGATION"===t.nextElementSibling.nodeName?t.nextElementSibling:document.querySelector(".ah-breadcrumb-utility-wrapper")?document.querySelector(".ah-breadcrumb-utility-wrapper"):document.querySelector("#content"),a=a.querySelectorAll("a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])");for(let o of a)if(this.isElementVisible(o)){setTimeout(function(){o.focus()},0);break}}}verifyWindowState(){document.getElementsByTagName("body")[0].style.display="none";let t=this._window().frameElement;if(this._window().self===this._window().top)m.LoggingService.uConsole&&console.log("HeaderUtil >> verifywindowstate() Header widget >> self === top : true"),document.getElementsByTagName("body")[0].style.display="block";else{m.LoggingService.uConsole&&(console.log("HeaderUtil >> verifywindowstate() Header widget >> self !== top"),console.log("HeaderUtil window.self :",this._window().self),console.log("window.top :",this._window().top),console.log("window.self.location.href :",this._window().self.location.href),console.log("window.top.location.href :",this._window().top.location.href));try{let n=this._window().self.location,a=this._window().top.location;if(n.host!==a.host){m.LoggingService.uConsole&&(console.log("Header widget >> page redirected to new location selfURL: ",n),console.log("top location Url: ",a));let o=encodeURI(JSON.stringify(this._window().self.location));this._window().top.location=JSON.parse(decodeURI(o))}else if(m.LoggingService.uConsole&&console.log("selfUrl.host === topUrl.host"),null!==t)if(m.LoggingService.uConsole&&console.log("Parent node of ifarme object : ",t.parentNode),t.parentNode&&t.parentNode.classList.contains("al-dialog-content")){const o=this.domStorageService.getItem("dialogIframeLoaded");if(m.LoggingService.uConsole&&console.log("found Dialog node .. so not redirecting"),null!=o&&""!==o){m.LoggingService.uConsole&&console.log("dialog found...internal link click...... so redirecting"),this.domStorageService.removeItem("dialogIframeLoaded");let l=encodeURI(JSON.stringify(this._window().self.location));this._window().top.location=JSON.parse(decodeURI(l))}else this.domStorageService.setItem("dialogIframeLoaded","true"),document.getElementsByTagName("body")[0].style.display="block"}else{m.LoggingService.uConsole&&console.log("not found Dialog node .. so redirecting");let o,l=this._window().self.location.href;if(this.ifPageIsConvertedinAF(l)){let s=this.genericService.getAngularFirstUrl()+"#"+l.substring(l.indexOf("/web/"),l.length);o=encodeURI(s),this._window().top.location.href=decodeURI(o)}else o=encodeURI(this._window().self.location.href),this._window().top.location.href=decodeURI(o)}}catch(n){m.LoggingService.uConsole&&console.log("verifyWindowState() : header util error block : ",n)}}}getAppUtilityInstance(){return this.appUtility}_window(){return window}upnSetHighlightedNavInFlow(t){let n=this.getTechnicalName(t);null!==n&&""!==n&&"undefined"!==n&&this.getDomStorageServiceInstance().setItem("technicalNameForLink",n);let a=this.getRef(t);null!==a&&""!==a&&"undefined"!==a&&this.getDomStorageServiceInstance().setItem("ref",a)}getAngularFirstUrl(){return this.genericService.getAngularFirstUrl()}getGSInstance(){return this.genericService}isAfOnlyPreAuth(){let t=!1,n=this.getAppUtilityInstance();return!0===n.isAfEnabled()&&(!0===n.isPreAuth()||!0===n.isPostAuth()&&!0===this.isPreAuthContactDetailPageFlag())&&!1===n.isLiferay()&&(t=!0),t}isAfOnlyPostAuth(){let t=!1,n=this.getAppUtilityInstance();return!0===n.isAfEnabled()&&!0===n.isPostAuth()&&!1===this.isPreAuthContactDetailPageFlag()&&!1===n.isLiferay()&&(t=!0),t}isPreAuthContactDetailPageFlag(){let a,t=!1,n=document.querySelector("al-layout-header-wc");return n&&(a=n.getAttribute("isPreAuthHeader")),null!=a&&"true"===a&&(t=!0),t}getDomStorageItem(t){let n=this.getDomStorageServiceInstance().getItem(t);return m.LoggingService.uConsole&&console.log("HeaderUtil >> getDomStorageItem() >> key: "+t+" | value: "+n),n}setDomStorageItem(t,n,a,o){this.getDomStorageServiceInstance().setItem(t,n,a,o)}removeDomStorageItem(t,n,a){this.getDomStorageServiceInstance().removeItem(t,n,a)}getFriendlyURL(t){let n="";return!1===this.getAppUtilityInstance().isLiferay()?t.snapshot&&t.snapshot.url&&(n=t.snapshot.url.join("/")):n=document.location.pathname,n}getQueryParameters(t){let n="";if(!1===this.getAppUtilityInstance().isLiferay()){let a=t.snapshot.queryParams;if(null!==a&&a.length>0){let o=!1;for(let l of Object.keys(a))o?n+="&":o=!0,n=n+l+"="+decodeURIComponent(a[l])}}else n=document.location.search;return n}isAfOnlyMasRole(){let t=!1;return!0===this.getAppUtilityInstance().isAfEnabled()&&!1===this.isPreAuthContactDetailPageFlag()&&(t=!0),t}getRef(t){if(-1!==t.indexOf("&ref")||-1!==t.indexOf("?ref")){let n=[];n=-1!==t.indexOf("&ref")?t.split("&ref"):t.split("?ref");let a=n[1].indexOf("&");return n[1].substring(1,a)}return""}ifPageIsConvertedinAF(t){let n,a,o,l,s=sessionStorage.getItem("routeDefinition");if(t&&t.indexOf("#/web")>-1?(n=t.split("#/web/")[1],n.indexOf("?")?(a=n.split("?")[0],a=a.substring(a.indexOf("/")+1,a.length),l=a.split("/"),1===l.length?(o=l[0],o=o.replace(/-/g,"")):(o=l[l.length-1],o=o.replace(/-/g,""))):(l=n.split("/"),o=l[l.length-1],o=o.replace(/-/g,""))):t&&t.indexOf("/web/")>-1&&(n=t.split("/web/")[1],n.indexOf("?")?(a=n.split("?")[0],a=a.substring(a.indexOf("/")+1,a.length),l=a.split("/"),1===l.length?(o=l[0],o=o.replace(/-/g,"")):(o=l[l.length-1],o=o.replace(/-/g,""))):(l=n.split("/"),o=l[l.length-1],o=o.replace(/-/g,""))),null!=s&&Object.keys(s).length>0){let c=JSON.parse(s);for(let d in c)if(d===o)return!0}}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(m.DomStorageFallbackService),e.\u0275\u0275inject(m.LoggingService),e.\u0275\u0275inject(m.AppUtility),e.\u0275\u0275inject(m.GenericService))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})(),ve=(()=>{class i{constructor(t,n,a,o,l,s,c,d){this.remoteService=t,this.httpService=n,this.cacheService=a,this.logService=o,this.headerUtilService=l,this.genericService=s,this.idbService=c,this.domStorageFB=d,this.enableCache=!0,this.headerDataSubscription=new X.Subject}populateRequestHeader(t={}){const n=new Array;try{if(t)for(const a of Object.keys(t)){const o={};o.key=a,o.value=t[a],n.push(o)}}catch(a){m.LoggingService.uConsole&&console.log("Header Service : populateRequestHeader : requestArray "+a)}return n}getUserData(t){m.LoggingService.uConsole&&console.log("calling getUserData method of header service with body data="+t);let o,n="channel/widgetconfigurations/channel/widgetConfigurations/header";return!0===this.headerUtilService.getAppUtilityInstance().isAfEnabled()&&(this.headerUtilService.getAppUtilityInstance().isPreAuth()||this.headerUtilService.getAppUtilityInstance().isPostAuth()&&this.headerUtilService.isPreAuthContactDetailPageFlag())&&(n="channel/widgetconfigurations/channel/widgetConfigurations/header/public"),o={restOfUrl:"",endPoint:n,isSecure:!0,contentType:"application/json",customHeader:this.populateRequestHeader(t)},this.remoteService.getRequest(o,"headerCache").pipe(U(l=>(m.LoggingService.uConsole&&console.log("Header service called with response = "+l),this.domStorageFB.setItem("UPN_HM_LOADING_TXT",l[0].UPN_HM_LOADING_TXT.value),this.getAuxNavGroup(l),this.getTipsAndNewsLinkAssets(l),l)))}getGmcFlyoutMessages(t){let n="?gmcPlidParam="+t;return this.headerUtilService.isAfOnlyPostAuth()&&(n="?gmcOrgName="+t),this.remoteService.request("get",{restOfUrl:n,endPoint:"channel/personmessages/personMessages/flyout",isSecure:!0,contentType:"application/json"}).pipe(U(o=>o))}getGmcBadgeCount(t){let n="?gmcPlidParam="+t;return this.headerUtilService.isAfOnlyPostAuth()&&(n="?gmcOrgName="+t),this.remoteService.request("get",{restOfUrl:n,endPoint:"channel/personmessages/personMessages/view/count",isSecure:!0,contentType:"application/json"}).pipe(U(o=>o))}getSearchConfigSet(){let t={};if(null===this.headerUtilService.getDomStorageServiceInstance().getItem("lr_json_data")&&this.headerUtilService.isAfOnlyPreAuth()){let a=JSON.parse(this.headerUtilService.getDomStorageServiceInstance().getItem("alightRequestHeader"));t.locale=a.locale,t.lineage=a.clientId}else t.locale=JSON.parse(this.headerUtilService.getDomStorageServiceInstance().getItem("lr_json_data")).locale,t.lineage=JSON.parse(this.headerUtilService.getDomStorageServiceInstance().getItem("lr_json_data")).lineage;const n={restOfUrl:"",endPoint:"channel/widgetconfigurations/channel/widgetConfigurations/searchwidget",isSecure:!0,contentType:"application/json",customHeader:this.populateInputHeader(t)};return this.remoteService.request("get",n,null,"searchCache")}getSecondaryWindowData(t={}){return this.remoteService.getRequest({restOfUrl:"",endPoint:"channel/widgetconfigurations/channel/widgetConfigurations/header-secondary-window",isSecure:!0,contentType:"application/json"},"headerSecCache").pipe(U(a=>a))}invokeLiferayURL(t,n={},a,o){this.logService._debug("Invoking invokeLiferayURL","in progress",m.LoggingConstants.DEBUG,"Header Component");let l=new se.HttpParams;const c=JSON.stringify({prsnRsnCd:a,originator:o});return l=l.append("postKey",c),(new Headers).append("Content-Type","application/x-www-form-urlencoded"),this.httpService.post(t,l).pipe(U(p=>p.json()),tt(this.handleError))}handleError(t){return m.LoggingService.uConsole&&console.log("Header Component - Invoking invokeLiferayURL - Error"),(0,X.throwError)(t.message||t)}populateInputHeader(t={}){let n=new Array;for(const a of Object.keys(t)){let o={};o.key=a,o.value=t[a],n.push(o)}return n}clearCacheForSpecificStores(t){this.idbService.clearSpecificIDBStores()}invokeInitWidgetCall(){this.remoteService.getRequest({restOfUrl:"",endPoint:"channel/widgetconfigurations/channel/widgetConfigurations/initwidget",isSecure:!0,contentType:"application/json"}).subscribe(n=>{m.LoggingService.uConsole&&console.log("setlogoffcall > initwidget call on logoff fired.")},n=>{m.LoggingService.uConsole&&console.log("setlogoffcall > initwidget call error header widget : ",n)})}invokeInitWidgetCallLogoff(){this.remoteService.getRequest({restOfUrl:"?usrAction=logoff",endPoint:"channel/widgetconfigurations/channel/widgetConfigurations/initwidget",isSecure:!0,contentType:"application/json"}).subscribe(n=>{m.LoggingService.uConsole&&console.log("initwidget call on logoff fired.")})}invokeInvalidateSessionCall(){m.LoggingService.uConsole&&console.log("Header Service : invokeInvalidateSessionCall "),this.remoteService.endSessionForPerson()}getAuxNavGroup(t){try{if(t&&t[0].AUXNAV_GROUP){let n=t[0].AUXNAV_GROUP.assets,a=[];n&&n.length>0&&(n.pipe(U(o=>{a.push(o.id)})),localStorage.setItem("AUXNAV_GROUP_ITEMS",a.toString()))}}catch(n){m.LoggingService.uConsole&&console.log("Error in getting getAuxNavGroup.")}}getTipsAndNewsLinkAssets(t){try{if(t){let n={};t[0].GMC_LANDING_TIPSNEWS_LINK_TEXT_ONE_ASSET_GROUP&&(n.GMC_LANDING_TIPSNEWS_LINK_TEXT_ONE_ASSET_GROUP=t[0].GMC_LANDING_TIPSNEWS_LINK_TEXT_ONE_ASSET_GROUP.value),t[0].GMC_LANDING_TIPSNEWS_LINK_TITLE_ASSET_GROUP&&(n.GMC_LANDING_TIPSNEWS_LINK_TITLE_ASSET_GROUP=t[0].GMC_LANDING_TIPSNEWS_LINK_TITLE_ASSET_GROUP.value),t[0].GMC_LANDING_TIPSNEWS_LINK_ASSET_GROUP&&(n.GMC_LANDING_TIPSNEWS_LINK_ASSET_GROUP=t[0].GMC_LANDING_TIPSNEWS_LINK_ASSET_GROUP.value),t[0].GMC_LANDING_TIPSNEWS_LINK_TEXT_ASSET_GROUP&&(n.GMC_LANDING_TIPSNEWS_LINK_TEXT_ASSET_GROUP=t[0].GMC_LANDING_TIPSNEWS_LINK_TEXT_ASSET_GROUP.value),m.LoggingService.uConsole&&console.log("Tips and News link assets : ",n),n&&Object.keys(n).length>0&&localStorage.setItem("TIPS_AND_NEWS_LINK_ASSET",JSON.stringify(n))}}catch(n){m.LoggingService.uConsole&&console.log("Error in getting getTipsAndNewsLinkAssets.")}}createLrAhUser(){return sessionStorage.getItem("IS_FED_APP_ENABLED")?new X.Observable(n=>{n.next("Success: AHUser Created successfully.::")}):this.remoteService.request("get",{restOfUrl:"",endPoint:this.genericService.getUpointNextUrl()+"/api/jsonws/ah-corelrusersession-portlet/create-ahuser",isSecure:!0,contentType:"application/json"},"","","",!0).pipe(U(n=>n))}getAccessibilityData(){return this.remoteService.request("post",{restOfUrl:"",endPoint:"channel/widgetconfigurations/channel/configurationList/get",isSecure:!0,contentType:"application/json"},{operation:"configset",textKeys:[{name:"closeWindowLinkText"}]}).pipe(U(l=>l))}logoutPortalCall(t){this.httpService.get(t,{headers:{"Content-Type":"application/json"}}).subscribe({next:a=>{m.LoggingService.uConsole&&(console.log("ThriveHeaderService - LogoutPortalCall - success"),console.log("ThriveHeaderService - LogoutPortalCall - success, data - ",a))},error:a=>{m.LoggingService.uConsole&&console.log("ThriveHeaderService - LogoutPortalCall - error",a)}})}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(m.RemoteService),e.\u0275\u0275inject(se.HttpClient),e.\u0275\u0275inject(m.CacheStorageService),e.\u0275\u0275inject(m.LoggingService),e.\u0275\u0275inject($),e.\u0275\u0275inject(m.GenericService),e.\u0275\u0275inject(m.IDBService),e.\u0275\u0275inject(m.DomStorageFallbackService))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})();const ce=ng.router;let Zt=(()=>{class i{constructor(){this.browserAlertHTML="",this.ahBrowserWarningWrapperFlag=!1,this.covid19WrapperFlag=!1,this.covid19Text="",this.uAgent=navigator.userAgent||""}ngOnInit(){this.ahBrowserDetection(),this.covid19Process()}covid19Process(){this.covid19WrapperFlag=this.headerObj.HEADER_URGENTMSG_EXPR,this.covid19Text=this.headerObj.HEADER_URGENTMSG_TEXT,!0===this.ahBrowserWarningWrapperFlag&&this.covid19WrapperFlag&&(!0===this.covid19WrapperFlag||"true"===this.covid19WrapperFlag)&&""!==this.covid19Text&&(this.browserAlertHTML=''+this.covid19Text+"
"+this.browserAlertHTML),!1===this.ahBrowserWarningWrapperFlag&&this.covid19WrapperFlag&&(!0===this.covid19WrapperFlag||"true"===this.covid19WrapperFlag)&&""!==this.covid19Text&&(this.browserAlertHTML=''+this.covid19Text+"
",this.ahBrowserWarningWrapperFlag=!0)}ahBrowserDetection(){let t="",n=this.headerObj.browserBlockdate,a=this.headerObj.browserCompatibleMsg2,o="",l="";this.headerObj.showNewbrowserMsg?(t=this.headerObj.browserCompatibleMsg1,o=this.headerObj.browserCompatibleMsg3,l=this.headerObj.browserCompatibleMsg4):t=this.headerObj.browserCompatibleMsg;let u,g,_,h,s=this.headerObj.browserCompatibilityModeIE,c=this.headerObj.showCompatibilityMsg,d=JSON.parse(this.headerObj.certifiedBrowsers),p=d.length,C=!0;if(this.uAgent.match(/iPhone/i)||this.uAgent.match(/iPad/i)||this.uAgent.match(/iPod/i)){g="ios";let A=this.uAgent.match(/OS (\d+)_(\d+)_?(\d+)?/);h=[parseInt(A[1],10),parseInt(A[2],10),parseInt(A[3]||0,10)][0],_=g+" "+h}else this.uAgent.match(/Android\s[\d.]*/i)?(u=String(this.uAgent.match(/Android\s[\d.]*/i)).split(" "),g=u[0],h=u[1],_=g+" "+h):this.uAgent.match(/edge/i)?(u=String(this.uAgent.match(/edge\/[0-9.]*/i)).split("/"),g=u[0],h=u[1],_=g+"® "+h):this.uAgent.match(/edg/i)?(u=String(this.uAgent.match(/edg\/[0-9.]*/i)).split("/"),g=u[0],h=u[1],_=g+"® "+h):this.uAgent.match(/chrome/i)?(u=String(this.uAgent.match(/chrome\/[0-9.]*/i)).split("/"),g=u[0],h=u[1],_=g+"™ "+h):this.uAgent.match(/firefox/i)?(u=String(this.uAgent.match(/firefox\/[0-9.]*/i)).split("/"),g=u[0],h=u[1],_=g+"® "+h):this.uAgent.match(/opera/i)?(u=String(this.uAgent.match(/Version\/[0-9.]*/i)).split("/"),g="opera",h=u[1],_="Opera® "+h):this.uAgent.match(/Safari/i)&&(u=String(this.uAgent.match(/Version\/[0-9.]*/i)).split("/"),g="safari",h=u[1],_="Safari® "+h);(this.uAgent.indexOf("MSIE")>-1||this.uAgent.indexOf("Trident")>-1)&&(this.uAgent.indexOf("MSIE 7.0"),g="ie",h=this.get_browser_version(),_="Internet Explorer® "+h);for(let A=0;A'+a+" "+this.headerObj.browserCompatiblePageLink+"
",this.ahBrowserWarningWrapperFlag=!0):(this.browserAlertHTML=""!==n&&"null"!==n&&null!==n?this.headerObj.showNewbrowserMsg?''+t+_+o+" "+n+" "+l+this.headerObj.browserCompatiblePageLink+"
":''+_+t+" "+n+". "+this.headerObj.browserCompatiblePageLink+"
":''+a+" "+this.headerObj.browserCompatiblePageLink+"
",this.ahBrowserWarningWrapperFlag=!0)}get_browser_version(){let n,t=this.uAgent,a=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(a[1])?(n=/\brv[ :]+(\d+)/g.exec(t)||[],n[1]||""):"Chrome"===a[1]&&(n=t.match(/\bOPR\/(\d+)/),null!=n)?n[1]:(a=a[2]?[a[1],a[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(n=t.match(/version\/(\d+)/i))&&a.splice(1,1,n[1]),"MSIE"===a[0]&&"7"===a[1]&&(t.indexOf("Trident/7.0")>-1?a[1]="11":t.indexOf("Trident/6.0")>-1?a[1]="10":t.indexOf("Trident/5.0")>-1?a[1]="9":t.indexOf("Trident/4.0")>-1&&(a[1]="8")),a[1])}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["al-browser-compatibility"]],inputs:{headerObj:"headerObj"},decls:5,vars:2,consts:[[1,"al-browser-warning-wrapper",3,"hidden"],[1,"al-highlight","brand-highlight1-a"],[1,"al-page-wrapper","clearfix"],[1,"al-gutter-row","aui-w100"],["tabindex","0","id","al-browserAlert",1,"al-gutter-col","al-w100","al-text-align-center","al-font-change",3,"innerHTML"]],template:function(t,n){1&t&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275elementStart(3,"div",3),e.\u0275\u0275element(4,"div",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275property("hidden",!n.ahBrowserWarningWrapperFlag),e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHTML",n.browserAlertHTML,e.\u0275\u0275sanitizeHtml))},encapsulation:2}),i})();function Vi(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",3),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("title",t.feedbackTitleMessage),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.feedbackLinkText)}}function Gi(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",4),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).showFeedbackPopup()}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("title",t.feedbackTitleMessage),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.feedbackLinkText)}}function zi(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Vi,3,2,"ng-container",0),e.\u0275\u0275template(2,Gi,2,2,"ng-template",null,2,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275reference(3),n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==n.isMobile)("ngIfElse",t)}}function Wi(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",5),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().openwindow()}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275propertyInterpolate("title",t.feedbackTitleMessage),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.feedbackLinkText)}}let en=(()=>{class i{constructor(t){this.headerUtilService=t,this.pageName="",this.title="",this.friendlyPageName="",this.feedbackTitleMessage="Feedback",this.feedbackLinkText="Feedback",this.category="Portal Foundation",this.subCategory="Admin",this.baseClientIndicator="Base",this.qualtricsParam="",this.enableQualtricsFeedback=!0,this.prevUrl="",this.selectedLocale="en_US",this.OPINION_LABS_BASE_URL="https://secure.opinionlab.com/ccc01/comment_card.asp",this.OPINION_LABS_TEST_DOMAIN="http://test.hewitt.hro",this.OPINION_LABS_DOMAIN="http://resources.hewitt.com",this.OPINION_LABS_TEST_DOMAIN_MOBILE="http://test.portal.aonhewitt.com",this.OPINION_LABS_DOMAIN_MOBILE="http://resources.hewitt.com/mobile",this.FEEDBACK_REFERER_URL="/${system}/${page}/${version}/${category}/${sub_category}/${portal_version}/${locale}/${clientId}/${base_ndicator}/${tech_page_name}/${friendly_page_name}",this.clientId="19920",this.portalVersion="2.0_2.0_2.0",this.version="2222.7878",this.uuid="",this.ppid="",this.QualtricsFeedbackEnabled=!0,this.af_switch_enabled=!1}ngOnInit(){document.referrer&&(this.prevUrl=encodeURI(document.referrer)),"true"===this.headerUtilService.getDomStorageServiceInstance().getItem("AF_SWITCH_ON")&&!this._window().Liferay&&(this.af_switch_enabled=!0),null==this.enableQualtricsFeedback&&(this.enableQualtricsFeedback=!0),this.checkDeviceType(),this.enableQualtricsFeedback?(this.QualtricsFeedbackEnabled=!0,this.initalizeQualtrics()):(this.QualtricsFeedbackEnabled=!1,this.initializeLifeCycle(),this.initalizeOpinionLab())}_window(){return window}initalizeQualtrics(){if(this.selectedLocale=this.headerUtilService.getLanguage(),null===this.qualtricsParam||""===this.qualtricsParam||void 0===this.qualtricsParam)this.uuid="",this.ppid="",this.version="",this.lifecyclePhase="",this.prsnIntnId="";else{null!==this.headerUtilService.getDomStorageServiceInstance().getItem("ahUserId")&&"undefined"!==this.headerUtilService.getDomStorageServiceInstance().getItem("ahUserId")&&(this.prsnIntnId=this.headerUtilService.getDomStorageServiceInstance().getItem("ahUserId"));let t=this.qualtricsParam.split("::");t.length>=1&&null!=t[0]&&(this.uuid=t[0],this.af_switch_enabled&&(this.ppid="")),t.length>=2&&null!=t[1]&&(this.ppid="",this.af_switch_enabled&&(this.lifecyclePhase=t[1])),!this.af_switch_enabled&&t.length>=3&&null!=t[2]&&(t.length>=3&&null!=t[2]&&(this.lifecyclePhase=t[2]),t.length>=4&&null!=t[3]&&(this.version=t[3])),this.af_switch_enabled&&(this.version="header_widget_snapshot_1.0"),this._window().qltrcs_clientId=this.getSessionStorageValue("lineage","").split("_")[0],this._window().qltrcs_pageName=this.friendlyPageName,this._window().qltrcs_version=this.version,this._window().qltrcs_uuid=this.uuid,this._window().qltrcs_groupId=this.getSessionStorageValue("groupid",""),this._window().qltrcs_languageId=this.selectedLocale,this._window().qltrcs_height=window.screen.height,this._window().qltrcs_width=window.screen.width,this._window().qltrcs_pptId="",this._window().qltrcs_prev=this.prevUrl,this._window().qltrcs_lifecycle=this.lifecyclePhase,this._window().qltrcs_prsnIntnId=this.prsnIntnId}}initalizeOpinionLab(){this.initializeFeedBackUrl(),(null===this.feedbackLinkText||""===this.feedbackLinkText||void 0===this.feedbackLinkText)&&(this.feedbackLinkText="Feedback"),(null===this.feedbackTitleMessage||""===this.feedbackTitleMessage||void 0===this.feedbackTitleMessage)&&(this.feedbackTitleMessage="Feedback"),(null===this.category||""===this.category||void 0===this.category)&&(this.category="Portal Foundation"),(null===this.subCategory||""===this.subCategory||void 0===this.subCategory)&&(this.subCategory="Admin"),(null===this.baseClientIndicator||""===this.baseClientIndicator||void 0===this.baseClientIndicator)&&(this.baseClientIndicator="Base")}checkDeviceType(){let t=document.getElementsByTagName("html")[0].classList.contains("al-view-960");this.isMobile=!t}initializeLifeCycle(){let t=this.headerUtilService.getDomStorageServiceInstance().getItem("IS_PROD_ENV","",!0)+"";this.selectedLocale=this.headerUtilService.getLanguage(),this.lifecyclePhase=""!==t&&"true"===t?"pu":"test"}getBaseDomain(){let t="";return t="pu"===this.lifecyclePhase?this.isMobile?this.OPINION_LABS_DOMAIN_MOBILE:this.OPINION_LABS_DOMAIN:this.isMobile?this.OPINION_LABS_TEST_DOMAIN_MOBILE:this.OPINION_LABS_TEST_DOMAIN,t}getFeedbackRefURL(){let t=this.FEEDBACK_REFERER_URL;if("YSA"!==this.pageName.substring(0,3)&&"PORTLET"!==this.pageName.substring(0,7))t=t.replace("${system}","YBR"),t=t.replace("${page}",this.pageName.substring(this.pageName.indexOf("_")+1)),t=t.replace("${version}",this.version.substring(0,4)),t=t.replace("${locale}",this.selectedLocale),t=t.replace("${clientId}",this.clientId),t=t.replace("${tech_page_name}",this.title),t=t.replace("${friendly_page_name}",this.friendlyPageName),t=t.replace("${base_ndicator}",this.baseClientIndicator),t=t.replace("${category}",this.category),t=t.replace("${sub_category}",this.subCategory),t=t.replace("${portal_version}",this.portalVersion);else if("YSA"===this.pageName.substring(0,3)){t=t.replace("${system}","YSA");let n="";n=-1!==this.pageName.indexOf("_")?this.pageName.substring(this.pageName.indexOf("_")+1):this.pageName.substring(3),t=t.replace("${page}",n),t=t.replace("${version}",this.version.substring(0,4)),t=t.replace("${category}","YSA"),t=t.replace("${sub_category}",""),t=t.replace("${locale}",this.selectedLocale),t=t.replace("${clientId}",this.clientId),t=t.replace("${portal_version}",this.portalVersion),t=t.replace("${tech_page_name}",""),t=t.replace("${friendly_page_name}",""),t=t.replace("${base_ndicator}","")}else"PORTLET"===this.pageName.substring(0,7)&&(t=t.replace("${system}","PORTAL"),t=t.replace("${page}",this.pageName),t=t.replace("${version}",""),t=t.replace("${locale}",this.selectedLocale),t=t.replace("${clientId}",this.clientId),t=t.replace("${portal_version}",this.portalVersion),t=t.replace("${category}",this.category),t=t.replace("${sub_category}",this.subCategory),t=t.replace("${tech_page_name}",this.title),t=t.replace("${friendly_page_name}",this.friendlyPageName),t=t.replace("${base_ndicator}",this.baseClientIndicator));return t}initializeFeedBackUrl(){this.feedbackUrl=this.OPINION_LABS_BASE_URL+"?referer="+this.getBaseDomain()+this.getFeedbackRefURL()+"&time1="+(new Date).getTime()+"&time2="+(new Date).getTime()+"&height="+window.screen.height+"&width="+window.screen.width+"&prev="+decodeURI(this.prevUrl)}openwindow(){this.QualtricsFeedbackEnabled?this.showFeedbackPopup():window.open(this.feedbackUrl,"feedbackWindow","width=545, height=331, left=400, top=200, scrollbars=yes, menubar=no, toolbar=no, resizable=yes")}showFeedbackPopup(){let t="https://alight.az1.qualtrics.com/jfe/form/SV_0GjRjxBTmnNrN2d?client_id="+this.getSessionStorageValue("lineage","").split("_")[0]+"&portal_pagename="+this.friendlyPageName+"&portal_version="+this.version+"&qltrcs_uuid="+this.uuid+"&qltrcs_groupId="+this.getSessionStorageValue("groupid","")+"&qltrcs_prsnIntnId="+this.prsnIntnId+"&Q_Language="+this.selectedLocale.split("_")[0]+"&partcipant_id=&height="+window.screen.height+"&width="+window.screen.width+"&lifecycle="+this.lifecyclePhase+"&prev_page="+this.prevUrl;window.open(t,"feedbackSurvey","width=575, height=331, left=400, top=200, scrollbars=yes, menubar=no, toolbar=no, resizable=yes")}getSessionStorageValue(t,n){try{return JSON.parse(this.headerUtilService.getDomStorageServiceInstance().getItem("lr_json_data"))[t]}catch(a){return n}}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject($))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["al-feedback"]],inputs:{pageName:"pageName",title:"title",friendlyPageName:"friendlyPageName",feedbackTitleMessage:"feedbackTitleMessage",feedbackLinkText:"feedbackLinkText",category:"category",subCategory:"subCategory",baseClientIndicator:"baseClientIndicator",qualtricsParam:"qualtricsParam",enableQualtricsFeedback:"enableQualtricsFeedback"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["showOpinionLabs",""],["showQualtricsMobile",""],["href","javascript:void(0);","id","header_feedback","role","menuitem",3,"title"],["href","javascript:void(0);","role","menuitem",3,"title","click"],["href","javascript:void(0);",3,"title","click"]],template:function(t,n){if(1&t&&(e.\u0275\u0275template(0,zi,4,2,"ng-container",0),e.\u0275\u0275template(1,Wi,2,2,"ng-template",null,1,e.\u0275\u0275templateRefExtractor)),2&t){const a=e.\u0275\u0275reference(2);e.\u0275\u0275property("ngIf",1==n.enableQualtricsFeedback)("ngIfElse",a)}},directives:[w.NgIf],encapsulation:2}),i})(),Ne=(()=>{class i{constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(z.DomSanitizer,16))},i.\u0275pipe=e.\u0275\u0275definePipe({name:"escapeHtmlPipe",type:i,pure:!0}),i})();function Ki(i,r){if(1&i&&e.\u0275\u0275element(0,"al-browser-compatibility",14),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("headerObj",t.header)}}function $i(i,r){if(1&i&&e.\u0275\u0275element(0,"img",15),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("src",t.siteBrandLogoUrlParam,e.\u0275\u0275sanitizeUrl)("alt",t.header.CLNT_NAME_KEY_ASSET)}}function Qi(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",21),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.header.CSECS075LRNABTSRCH_LINKTXT_FEEDBACK_ASSET)}}function Yi(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",22),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).printWindow()}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275propertyInterpolate("title",t.printLinkTitle),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.printLabel)}}function Ji(i,r){if(1&i&&e.\u0275\u0275element(0,"al-feedback",23),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("pageName",t.pageName)("title",t.title)("friendlyPageName",t.friendlyPageName)("feedbackTitleMessage",t.header.FEEDBACK_TITLE_MSG)("feedbackLinkText",t.header.CSECS075LRNABTSRCH_LINKTXT_FEEDBACK_ASSET)("category",t.domainFbParam)("subCategory",t.businessProcessFbParam)("baseClientIndicator",t.baseIndicatorFbParam)("qualtricsParam",t.qualtricsParam)("enableQualtricsFeedback",t.header.enableQualtricsFeedback)}}function Xi(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"li",16),e.\u0275\u0275template(1,Qi,2,1,"span",17),e.\u0275\u0275elementStart(2,"div",18),e.\u0275\u0275template(3,Yi,2,2,"a",19),e.\u0275\u0275template(4,Ji,1,10,"al-feedback",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"===t.headerInfoFbParam&&t.header.postAuth&&t.header.masPage||"true"===t.headerInfoFbParam&&(!t.header.ecsAdmin||t.header.ecsAdmin&&t.header.activeBusinessAccountsAvailable)&&!t.header.adminStatePortal&&t.header.ecsAdminUserIgnoreAuth),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","true"===t.showPrint),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","true"===t.headerInfoFbParam&&t.header.postAuth&&t.header.masPage||"true"===t.headerInfoFbParam&&(!t.header.ecsAdmin||t.header.ecsAdmin&&t.header.activeBusinessAccountsAvailable)&&!t.header.adminStatePortal&&!t.header.ecsAdminUserIgnoreAuth&&t.showFeedback)}}function Zi(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"h2"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",t.header.firstName," ",t.header.lastName,"")}}let ea=(()=>{class i{constructor(t,n,a,o,l,s,c,d,p){this.appUtility=t,this.h2Service=n,this.sanitizer=a,this.headerUtilService=o,this._elementRef=l,this.genericService=s,this.logService=c,this.route=d,this.domStorageFB=p,this.masReadOnlyAttrParam=null,this.brandingObj={},this.logoObj={},this.showPrint="true",this.pspAuthorizationCheckedParam=!1,this.printPageSubHeaderTimeStamp="",this.header=new Ke,this.closeWindowLbl="",this.javascriptVoidSafeUrl=null,this.browserType="",this.printLabel="Print",this.printLinkTitle="Choose this link to print this dialog.",this.businessProcessFbParam="",this.baseIndicatorFbParam="",this.domainFbParam="",this.headerInfoFbParam="",this.qualtricsParam="",this.pageUtilityDynamicHtml="",this.af_switch_enabled=!1,this.showFeedback=!0,this.javascriptVoidSafeUrl=a.bypassSecurityTrustScript("javascript:void(0);"),this.friendlyUrl=document.location.pathname,this.browserType=this.headerUtilService.getBrowserType(navigator.userAgent||""),this.header.browserType=this.browserType,this.pageName=this.headerUtilService.getPageName(document.location.pathname),this.friendlyPageName=this.headerUtilService.getFreindlyPageName(window.location.href),this.title=this.headerUtilService.getTechnicalName(window.location.href)}ngOnInit(){"true"===this.headerUtilService.getDomStorageServiceInstance().getItem("AF_SWITCH_ON")&&(this.af_switch_enabled=!0),this.populateInputParameters();let t=this.createRequestJson();this.getUserData(t);try{let n=this.domStorageFB.getItem("IsUPointMobileApp","",!0);if("true"!==n){let a=window.location.href;a=a.toLowerCase(),(-1!==a.indexOf("browser=inapp")||-1!==a.indexOf("browser=alightonemobile"))&&(this.domStorageFB.setItem("IsUPointMobileApp","true"),n="true")}"true"===n&&document.getElementById("banner")&&(document.getElementById("banner").style.display="none"),"false"===this.domStorageFB.getItem("SHOW_FEEDBACK_LNK_EXPR")&&(this.showFeedback=!1)}catch(n){m.LoggingService.uConsole&&console.log("error while getting in App related configuration : ",n)}this.genericService.setGenesysChatConfigData(),this.getAccessibilityData()}_window(){return window}ngAfterViewInit(){try{let t=this.domStorageFB.getItem("IsUPointMobileApp","",!0);if("true"!==t){let n=window.location.href;n=n.toLowerCase(),-1!==n.indexOf("browser=inapp")&&(this.domStorageFB.setItem("IsUPointMobileApp","true"),t="true")}if("true"===t&&document.getElementById("banner"))return document.getElementById("banner").style.display="none",!1}catch(t){m.LoggingService.uConsole&&console.log("error while getting in App related configuration : ",t)}if(null!=document.getElementById("pageUtilityBarSecWinLinks")){let t=document.getElementById("pageUtilityBarSecWinLinks").innerHTML;null!==t&&""!==t&&t.indexOf("ah-gutter-col")>-1&&(t=t.replace(/\ah-gutter-col/gi,"al-gutter-col")),null!==t&&""!==t&&(this.pageUtilityDynamicHtml=t,this.showPrint="false")}}ngOnDestroy(){}getUserData(t={}){this.h2Service.getSecondaryWindowData(t).subscribe(n=>{this.populateData(n[0],this.header);let a=new Mt;this.printPageSubHeaderTimeStamp=a.process(this.header.printPageSubHeader),setTimeout(()=>{"ie11"!==this.appUtility.getBrowser()&&this.headerUtilService.bindQualtricsFeedbackLink()},2e3)},n=>{let a="";a=n&&n.message?"Error response in service: "+n.message:JSON.stringify(n),this.logService._error(a,"service invocation failed with response",m.LoggingConstants.ERROR,"Header-Secondary Component")})}populateData(t,n){n.postAuth=t.postAuth.value,t.hasOwnProperty("chat_Print")&&(this.printLabel=t.chat_Print.value),t.hasOwnProperty("DialogBoxContent1Key")&&(this.printLinkTitle=t.DialogBoxContent1Key.value),n.browserCompatibilityModeIE=t.browserCompatibilityModeIE.value,n.postBlockDate=t.POST_BROWSER_BLOCK_DATE_EXPR.value,n.printPageSubHeader=t.PRM_COMP_BNFT_KEY_ASSET.value+"-"+t.CLNT_NAME_KEY_ASSET.value,n.CLNT_NAME_KEY_ASSET=t.CLNT_NAME_KEY_ASSET.value+" Logo",null!=t.ENABLE_NEW_BROWSER_MSG&&(n.showNewbrowserMsg=t.ENABLE_NEW_BROWSER_MSG.value),this.headerUtilService.populateBrowserSettings(t,this.friendlyUrl,n),this.headerUtilService.setColorSchemeDetails(this.ecsColorSchemeParam,n),n.printPageSubHeader=t.PRM_COMP_BNFT_KEY_ASSET.value+"-"+t.CLNT_NAME_KEY_ASSET.value,t.hasOwnProperty("NEW_LIVE_CHAT_ENV_URL")&&(n.newLiveChatEnvUrl=t.NEW_LIVE_CHAT_ENV_URL.value),n.postAuth&&(n.firstName=t.firstName.value,n.lastName=t.lastName.value),t.hasOwnProperty("FEEDBACK_TITLE_MSG")&&(n.FEEDBACK_TITLE_MSG=t.FEEDBACK_TITLE_MSG.value),t.hasOwnProperty("CSECS075LRNABTSRCH_LINKTXT_FEEDBACK_ASSET")&&(n.CSECS075LRNABTSRCH_LINKTXT_FEEDBACK_ASSET=t.CSECS075LRNABTSRCH_LINKTXT_FEEDBACK_ASSET.value),t.hasOwnProperty("ecsAdmin")&&(n.ecsAdmin=t.ecsAdmin.value),t.hasOwnProperty("activeBusinessAccountsAvailable")&&(n.activeBusinessAccountsAvailable=t.activeBusinessAccountsAvailable.value),t.hasOwnProperty("Header.isAdminStatePortal")&&(n.adminStatePortal=t["Header.isAdminStatePortal"].value),t.hasOwnProperty("ecsAdminUserIgnoreAuth")&&(n.ecsAdminUserIgnoreAuth=t.ecsAdminUserIgnoreAuth.value),t.hasOwnProperty("Enable_Qualtrics_Feedback")&&(n.enableQualtricsFeedback=t.Enable_Qualtrics_Feedback.value),this.af_switch_enabled&&void 0!==t.qualtricsParam&&"undefined"!==t.qualtricsParam.value&&"null"!==t.qualtricsParam.value&&(this.qualtricsParam=t.qualtricsParam.value)}getAccessibilityData(){this.h2Service.getAccessibilityData().subscribe(t=>{this.populateAccessibilityData(t)})}populateAccessibilityData(t){if(t&&t._body){let n=JSON.parse(t._body);n&&n[0]&&(n&&n[0]&&(this.closeWindowLbl=n[0].text.closeWindowLinkText),this.closeWindowLbl="UNRESOLVED_TEXT"!==n[0].text.closeWindowLinkText&&void 0!==n[0].text.closeWindowLinkText?n[0].text.closeWindowLinkText:"Close Window")}}createRequestJson(){return{}}populateInputParameters(){"true"!==this.headerUtilService.getDomStorageServiceInstance().getItem("AF_SWITCH_ON")||this.appUtility.isLiferay()?(this.pspAuthorizationCheckedParam=this._elementRef.nativeElement.getAttribute("pspAuthorizationCheckedParam"),this.ecsColorSchemeParam=this._elementRef.nativeElement.getAttribute.ecsColorSchemeParam,this.masReadOnlyAttrParam=this._elementRef.nativeElement.getAttribute("masReadOnlyAttrParam"),this.siteBrandLogoUrlParam=this._elementRef.nativeElement.getAttribute("siteBrandLogoUrlParam"),this.businessProcessFbParam=this._elementRef.nativeElement.getAttribute("businessProcessFbParam"),this.baseIndicatorFbParam=this._elementRef.nativeElement.getAttribute("baseIndicatorFbParam"),this.domainFbParam=this._elementRef.nativeElement.getAttribute("domainFbParam"),this.headerInfoFbParam=this._elementRef.nativeElement.getAttribute("headerInfoFbParam"),this.qualtricsParam=this._elementRef.nativeElement.getAttribute("qualtricsParam")):(this.ecsColorSchemeParam=this.route.snapshot.data.pageType,this.masReadOnlyAttrParam=this.headerUtilService.getDomStorageServiceInstance().getItem("masReadOnlyAttrParam"),this.businessProcessFbParam=this.headerUtilService.getDomStorageServiceInstance().getItem("businessProcessFbParam"),this.baseIndicatorFbParam=this.headerUtilService.getDomStorageServiceInstance().getItem("baseIndicatorFbParam"),this.domainFbParam=this.headerUtilService.getDomStorageServiceInstance().getItem("domainFbParam"),this.headerInfoFbParam="true"),this.brandingObj=JSON.parse(this.headerUtilService.getDomStorageServiceInstance().getItem("brandingObj")),null!==this.brandingObj&&this.brandingObj.hasOwnProperty("siteBrand")&&null!=this.brandingObj.siteBrand&&(this.urlSiteBrand=this.brandingObj.siteBrand,this.urlSiteBrand.hasOwnProperty("logo")&&null!=this.urlSiteBrand.logo&&void 0!==this.urlSiteBrand.logo&&(this.logoObj=this.urlSiteBrand.logo,this.logoObj.hasOwnProperty("logoURI")&&null!=this.logoObj&&(this.siteBrandLogoUrlParam=this.logoObj.logoURI)))}printWindow(){window.print()}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(m.AppUtility),e.\u0275\u0275directiveInject(ve),e.\u0275\u0275directiveInject(z.DomSanitizer),e.\u0275\u0275directiveInject($),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(m.GenericService),e.\u0275\u0275directiveInject(m.LoggingService),e.\u0275\u0275directiveInject(ce.ActivatedRoute),e.\u0275\u0275directiveInject(m.DomStorageFallbackService))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["al-secondary-window-header-wc"]],inputs:{printLabel:"printLabel",printLinkTitle:"printLinkTitle"},decls:16,vars:9,consts:[["auto-id","al-browser-compatibility-2",3,"headerObj",4,"ngIf"],[1,"al-second-window-title"],[1,"al-header-company-logo"],[3,"src","alt",4,"ngIf"],["id","aux-nav","role","navigation"],["role","menubar",1,"al-gutter-row"],[3,"innerHTML"],["class","al-gutter-col",4,"ngIf"],["aria-label","Close Window",1,"al-gutter-col"],["href","javascript:void(0)","onclick","window.close()",1,"al-icon-close"],[1,"al-print-only"],[4,"ngIf"],["id","al-print-subheader-timestamp"],["id","ZN_3Q9k3fzV645VjSZ",2,"display","none"],["auto-id","al-browser-compatibility-2",3,"headerObj"],[3,"src","alt"],[1,"al-gutter-col"],["class","al-aux-nav-chat-disabled",4,"ngIf"],[1,"al-print-no"],["href","javascript:void(0);",3,"title","click",4,"ngIf"],["auto-id","al-feedback-header-1",3,"pageName","title","friendlyPageName","feedbackTitleMessage","feedbackLinkText","category","subCategory","baseClientIndicator","qualtricsParam","enableQualtricsFeedback",4,"ngIf"],[1,"al-aux-nav-chat-disabled"],["href","javascript:void(0);",3,"title","click"],["auto-id","al-feedback-header-1",3,"pageName","title","friendlyPageName","feedbackTitleMessage","feedbackLinkText","category","subCategory","baseClientIndicator","qualtricsParam","enableQualtricsFeedback"]],template:function(t,n){1&t&&(e.\u0275\u0275template(0,Ki,1,1,"al-browser-compatibility",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275template(3,$i,1,2,"img",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",4),e.\u0275\u0275elementStart(5,"ul",5),e.\u0275\u0275element(6,"span",6),e.\u0275\u0275pipe(7,"escapeHtmlPipe"),e.\u0275\u0275template(8,Xi,5,3,"li",7),e.\u0275\u0275elementStart(9,"li",8),e.\u0275\u0275element(10,"a",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",10),e.\u0275\u0275template(12,Zi,2,2,"h2",11),e.\u0275\u0275elementStart(13,"p",12),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(15,"div",13),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275property("ngIf",n.header.showBrowserCompatibleMsg&&n.header.pagePrimary&&!n.header.browserCompatiblePage),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null!=n.siteBrandLogoUrlParam&&""!=n.siteBrandLogoUrlParam),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(7,7,n.pageUtilityDynamicHtml),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!n.header.ecsColorId),e.\u0275\u0275advance(2),e.\u0275\u0275attribute("aria-label",n.closeWindowLbl),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",n.header.postAuth),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(n.printPageSubHeaderTimeStamp))},directives:[w.NgIf,Zt,en],pipes:[Ne],styles:['.al-second-window-title{border-bottom:1px dotted #c5c6c7;margin:0 0 33px;height:52px;padding:0 11px}.al-header-company-logo{float:left;clear:left;margin:0}.al-second-window-title .al-header-company-logo img{height:35px;margin-top:8px}#aux-nav{position:relative!important;float:right!important;top:19px}.ui-rtl #aux-nav{float:left!important}#aux-nav ul{list-style:none}.al-second-window-title .al-icon-close{display:block;background:url(/al-assets/images/base/icon_x.png) no-repeat 0 2px;width:13px;height:13px;color:#000}.al-icon-close:before{content:""}.al-second-window-title ul li a{font-size:.857em}#al-browserAlert p{margin:0!important;color:#000;padding-bottom:10px}.al-print-no a{margin-left:15px}a.al-icon-close{margin-left:5px}\n'],encapsulation:2}),i})();const I=ng.animations;function tn(){return"undefined"!=typeof window&&void 0!==window.document}function nt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ee(i){switch(i.length){case 0:return new I.NoopAnimationPlayer;case 1:return i[0];default:return new I.\u0275AnimationGroupPlayer(i)}}function nn(i,r,t,n,a={},o={}){const l=[],s=[];let c=-1,d=null;if(n.forEach(p=>{const u=p.offset,g=u==c,_=g&&d||{};Object.keys(p).forEach(h=>{let f=h,C=p[h];if("offset"!==h)switch(f=r.normalizePropertyName(f,l),C){case I.\u0275PRE_STYLE:C=a[h];break;case I.AUTO_STYLE:C=o[h];break;default:C=r.normalizeStyleValue(h,f,C,l)}_[f]=C}),g||s.push(_),d=_,c=u}),l.length){const p="\n - ";throw new Error(`Unable to animate due to the following errors:${p}${l.join(p)}`)}return s}function it(i,r,t,n){switch(r){case"start":i.onStart(()=>n(t&&at(t,"start",i)));break;case"done":i.onDone(()=>n(t&&at(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&at(t,"destroy",i)))}}function at(i,r,t){const n=t.totalTime,o=rt(i.element,i.triggerName,i.fromState,i.toState,r||i.phaseName,null==n?i.totalTime:n,!!t.disabled),l=i._data;return null!=l&&(o._data=l),o}function rt(i,r,t,n,a="",o=0,l){return{element:i,triggerName:r,fromState:t,toState:n,phaseName:a,totalTime:o,disabled:!!l}}function B(i,r,t){let n;return i instanceof Map?(n=i.get(r),n||i.set(r,n=t)):(n=i[r],n||(n=i[r]=t)),n}function an(i){const r=i.indexOf(":");return[i.substring(1,r),i.substr(r+1)]}let ot=(i,r)=>!1,rn=(i,r,t)=>[];(nt()||"undefined"!=typeof Element)&&(ot=tn()?(i,r)=>{for(;r&&r!==document.documentElement;){if(r===i)return!0;r=r.parentNode||r.host}return!1}:(i,r)=>i.contains(r),rn=(i,r,t)=>{if(t)return Array.from(i.querySelectorAll(r));const n=i.querySelector(r);return n?[n]:[]});let de=null,on=!1;function lt(i){de||(de=function na(){return"undefined"!=typeof document?document.body:null}()||{},on=!!de.style&&"WebkitAppearance"in de.style);let r=!0;return de.style&&!function ta(i){return"ebkit"==i.substring(1,6)}(i)&&(r=i in de.style,!r&&on&&(r="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in de.style)),r}const st=ot,ct=rn;function ln(i){const r={};return Object.keys(i).forEach(t=>{const n=t.replace(/([a-z])([A-Z])/g,"$1-$2");r[n]=i[t]}),r}let sn=(()=>{class i{validateStyleProperty(t){return lt(t)}matchesElement(t,n){return!1}containsElement(t,n){return st(t,n)}query(t,n,a){return ct(t,n,a)}computeStyle(t,n,a){return a||""}animate(t,n,a,o,l,s=[],c){return new I.NoopAnimationPlayer(a,o)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})(),dt=(()=>{class i{}return i.NOOP=new sn,i})();const pt="ng-enter",Le="ng-leave",Pe="ng-trigger",ke=".ng-trigger",dn="ng-animating",mt=".ng-animating";function pe(i){if("number"==typeof i)return i;const r=i.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:ut(parseFloat(r[1]),r[2])}function ut(i,r){return"s"===r?1e3*i:i}function Re(i,r,t){return i.hasOwnProperty("duration")?i:function ra(i,r,t){let a,o=0,l="";if("string"==typeof i){const s=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(`The provided timing value "${i}" is invalid.`),{duration:0,delay:0,easing:""};a=ut(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=ut(parseFloat(c),s[4]));const d=s[5];d&&(l=d)}else a=i;if(!t){let s=!1,c=r.length;a<0&&(r.push("Duration values below 0 are not allowed for this animation step."),s=!0),o<0&&(r.push("Delay values below 0 are not allowed for this animation step."),s=!0),s&&r.splice(c,0,`The provided timing value "${i}" is invalid.`)}return{duration:a,delay:o,easing:l}}(i,r,t)}function ye(i,r={}){return Object.keys(i).forEach(t=>{r[t]=i[t]}),r}function te(i,r,t={}){if(r)for(let n in i)t[n]=i[n];else ye(i,t);return t}function mn(i,r,t){return t?r+":"+t+";":""}function un(i){let r="";for(let t=0;t{const a=ht(n);t&&!t.hasOwnProperty(n)&&(t[n]=i.style[a]),i.style[a]=r[n]}),nt()&&un(i))}function me(i,r){i.style&&(Object.keys(r).forEach(t=>{const n=ht(t);i.style[n]=""}),nt()&&un(i))}function Ae(i){return Array.isArray(i)?1==i.length?i[0]:(0,I.sequence)(i):i}const gt=new RegExp("{{\\s*(.+?)\\s*}}","g");function gn(i){let r=[];if("string"==typeof i){let t;for(;t=gt.exec(i);)r.push(t[1]);gt.lastIndex=0}return r}function Oe(i,r,t){const n=i.toString(),a=n.replace(gt,(o,l)=>{let s=r[l];return r.hasOwnProperty(l)||(t.push(`Please provide a value for the animation param ${l}`),s=""),s.toString()});return a==n?i:a}function He(i){const r=[];let t=i.next();for(;!t.done;)r.push(t.value),t=i.next();return r}const la=/-+([a-z0-9])/g;function ht(i){return i.replace(la,(...r)=>r[1].toUpperCase())}function sa(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function hn(i,r){return 0===i||0===r}function _n(i,r,t){const n=Object.keys(t);if(n.length&&r.length){let o=r[0],l=[];if(n.forEach(s=>{o.hasOwnProperty(s)||l.push(s),o[s]=t[s]}),l.length)for(var a=1;afunction da(i,r,t){if(":"==i[0]){const c=function pa(i,r){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}(i,t);if("function"==typeof c)return void r.push(c);i=c}const n=i.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return t.push(`The provided transition expression "${i}" is not supported`),r;const a=n[1],o=n[2],l=n[3];r.push(fn(a,l));"<"==o[0]&&!("*"==a&&"*"==l)&&r.push(fn(l,a))}(n,t,r)):t.push(i),t}const Fe=new Set(["true","1"]),De=new Set(["false","0"]);function fn(i,r){const t=Fe.has(i)||De.has(i),n=Fe.has(r)||De.has(r);return(a,o)=>{let l="*"==i||i==a,s="*"==r||r==o;return!l&&t&&"boolean"==typeof a&&(l=a?Fe.has(i):De.has(i)),!s&&n&&"boolean"==typeof o&&(s=o?Fe.has(r):De.has(r)),l&&s}}const ma=new RegExp("s*:selfs*,?","g");function ft(i,r,t){return new ua(i).build(r,t)}class ua{constructor(r){this._driver=r}build(r,t){const n=new _a(t);return this._resetContextStyleTimingState(n),j(this,Ae(r),n)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles={},r.collectedStyles[""]={},r.currentTime=0}visitTrigger(r,t){let n=t.queryCount=0,a=t.depCount=0;const o=[],l=[];return"@"==r.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),r.definitions.forEach(s=>{if(this._resetContextStyleTimingState(t),0==s.type){const c=s,d=c.name;d.toString().split(/\s*,\s*/).forEach(p=>{c.name=p,o.push(this.visitState(c,t))}),c.name=d}else if(1==s.type){const c=this.visitTransition(s,t);n+=c.queryCount,a+=c.depCount,l.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:r.name,states:o,transitions:l,queryCount:n,depCount:a,options:null}}visitState(r,t){const n=this.visitStyle(r.styles,t),a=r.options&&r.options.params||null;if(n.containsDynamicStyles){const o=new Set,l=a||{};if(n.styles.forEach(s=>{if(Ue(s)){const c=s;Object.keys(c).forEach(d=>{gn(c[d]).forEach(p=>{l.hasOwnProperty(p)||o.add(p)})})}}),o.size){const s=He(o.values());t.errors.push(`state("${r.name}", ...) must define default values for all the following style substitutions: ${s.join(", ")}`)}}return{type:0,name:r.name,style:n,options:a?{params:a}:null}}visitTransition(r,t){t.queryCount=0,t.depCount=0;const n=j(this,Ae(r.animation),t);return{type:1,matchers:ca(r.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:ue(r.options)}}visitSequence(r,t){return{type:2,steps:r.steps.map(n=>j(this,n,t)),options:ue(r.options)}}visitGroup(r,t){const n=t.currentTime;let a=0;const o=r.steps.map(l=>{t.currentTime=n;const s=j(this,l,t);return a=Math.max(a,t.currentTime),s});return t.currentTime=a,{type:3,steps:o,options:ue(r.options)}}visitAnimate(r,t){const n=function va(i,r){let t=null;if(i.hasOwnProperty("duration"))t=i;else if("number"==typeof i)return vt(Re(i,r).duration,0,"");const n=i;if(n.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=vt(0,0,"");return o.dynamic=!0,o.strValue=n,o}return t=t||Re(n,r),vt(t.duration,t.delay,t.easing)}(r.timings,t.errors);t.currentAnimateTimings=n;let a,o=r.styles?r.styles:(0,I.style)({});if(5==o.type)a=this.visitKeyframes(o,t);else{let l=r.styles,s=!1;if(!l){s=!0;const d={};n.easing&&(d.easing=n.easing),l=(0,I.style)(d)}t.currentTime+=n.duration+n.delay;const c=this.visitStyle(l,t);c.isEmptyStep=s,a=c}return t.currentAnimateTimings=null,{type:4,timings:n,style:a,options:null}}visitStyle(r,t){const n=this._makeStyleAst(r,t);return this._validateStyleAst(n,t),n}_makeStyleAst(r,t){const n=[];Array.isArray(r.styles)?r.styles.forEach(l=>{"string"==typeof l?l==I.AUTO_STYLE?n.push(l):t.errors.push(`The provided style string value ${l} is not allowed.`):n.push(l)}):n.push(r.styles);let a=!1,o=null;return n.forEach(l=>{if(Ue(l)){const s=l,c=s.easing;if(c&&(o=c,delete s.easing),!a)for(let d in s)if(s[d].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:n,easing:o,offset:r.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(r,t){const n=t.currentAnimateTimings;let a=t.currentTime,o=t.currentTime;n&&o>0&&(o-=n.duration+n.delay),r.styles.forEach(l=>{"string"!=typeof l&&Object.keys(l).forEach(s=>{if(!this._driver.validateStyleProperty(s))return void t.errors.push(`The provided animation property "${s}" is not a supported CSS property for animations`);const c=t.collectedStyles[t.currentQuerySelector],d=c[s];let p=!0;d&&(o!=a&&o>=d.startTime&&a<=d.endTime&&(t.errors.push(`The CSS property "${s}" that exists between the times of "${d.startTime}ms" and "${d.endTime}ms" is also being animated in a parallel animation between the times of "${o}ms" and "${a}ms"`),p=!1),o=d.startTime),p&&(c[s]={startTime:o,endTime:a}),t.options&&function oa(i,r,t){const n=r.params||{},a=gn(i);a.length&&a.forEach(o=>{n.hasOwnProperty(o)||t.push(`Unable to resolve the local animation param ${o} in the given list of values`)})}(l[s],t.options,t.errors)})})}visitKeyframes(r,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let o=0;const l=[];let s=!1,c=!1,d=0;const p=r.steps.map(A=>{const x=this._makeStyleAst(A,t);let S=null!=x.offset?x.offset:function fa(i){if("string"==typeof i)return null;let r=null;if(Array.isArray(i))i.forEach(t=>{if(Ue(t)&&t.hasOwnProperty("offset")){const n=t;r=parseFloat(n.offset),delete n.offset}});else if(Ue(i)&&i.hasOwnProperty("offset")){const t=i;r=parseFloat(t.offset),delete t.offset}return r}(x.styles),N=0;return null!=S&&(o++,N=x.offset=S),c=c||N<0||N>1,s=s||N0&&o{const S=g>0?x==_?1:g*x:l[x],N=S*C;t.currentTime=h+f.delay+N,f.duration=N,this._validateStyleAst(A,t),A.offset=S,n.styles.push(A)}),n}visitReference(r,t){return{type:8,animation:j(this,Ae(r.animation),t),options:ue(r.options)}}visitAnimateChild(r,t){return t.depCount++,{type:9,options:ue(r.options)}}visitAnimateRef(r,t){return{type:10,animation:this.visitReference(r.animation,t),options:ue(r.options)}}visitQuery(r,t){const n=t.currentQuerySelector,a=r.options||{};t.queryCount++,t.currentQuery=r;const[o,l]=function ga(i){const r=!!i.split(/\s*,\s*/).find(t=>":self"==t);return r&&(i=i.replace(ma,"")),i=i.replace(/@\*/g,ke).replace(/@\w+/g,t=>ke+"-"+t.substr(1)).replace(/:animating/g,mt),[i,r]}(r.selector);t.currentQuerySelector=n.length?n+" "+o:o,B(t.collectedStyles,t.currentQuerySelector,{});const s=j(this,Ae(r.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:a.limit||0,optional:!!a.optional,includeSelf:l,animation:s,originalSelector:r.selector,options:ue(r.options)}}visitStagger(r,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===r.timings?{duration:0,delay:0,easing:"full"}:Re(r.timings,t.errors,!0);return{type:12,animation:j(this,Ae(r.animation),t),timings:n,options:null}}}class _a{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ue(i){return!Array.isArray(i)&&"object"==typeof i}function ue(i){return i?(i=ye(i)).params&&(i.params=function ha(i){return i?ye(i):null}(i.params)):i={},i}function vt(i,r,t){return{duration:i,delay:r,easing:t}}function yt(i,r,t,n,a,o,l=null,s=!1){return{type:1,element:i,keyframes:r,preStyleProps:t,postStyleProps:n,duration:a,delay:o,totalTime:a+o,easing:l,subTimeline:s}}class Be{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,t){let n=this._map.get(r);n||this._map.set(r,n=[]),n.push(...t)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const ba=new RegExp(":enter","g"),xa=new RegExp(":leave","g");function St(i,r,t,n,a,o={},l={},s,c,d=[]){return(new Aa).buildKeyframes(i,r,t,n,a,o,l,s,c,d)}class Aa{buildKeyframes(r,t,n,a,o,l,s,c,d,p=[]){d=d||new Be;const u=new bt(r,t,d,a,o,p,[]);u.options=c,u.currentTimeline.setStyles([l],null,u.errors,c),j(this,n,u);const g=u.timelines.filter(_=>_.containsAnimation());if(Object.keys(s).length){let _;for(let h=g.length-1;h>=0;h--){const f=g[h];if(f.element===t){_=f;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([s],null,u.errors,c)}return g.length?g.map(_=>_.buildKeyframes()):[yt(t,[],[],[],0,0,"",!1)]}visitTrigger(r,t){}visitState(r,t){}visitTransition(r,t){}visitAnimateChild(r,t){const n=t.subInstructions.get(t.element);if(n){const a=t.createSubContext(r.options),o=t.currentTimeline.currentTime,l=this._visitSubInstructions(n,a,a.options);o!=l&&t.transformIntoNewTimeline(l)}t.previousNode=r}visitAnimateRef(r,t){const n=t.createSubContext(r.options);n.transformIntoNewTimeline(),this.visitReference(r.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=r}_visitSubInstructions(r,t,n){let o=t.currentTimeline.currentTime;const l=null!=n.duration?pe(n.duration):null,s=null!=n.delay?pe(n.delay):null;return 0!==l&&r.forEach(c=>{const d=t.appendInstructionToTimeline(c,l,s);o=Math.max(o,d.duration+d.delay)}),o}visitReference(r,t){t.updateOptions(r.options,!0),j(this,r.animation,t),t.previousNode=r}visitSequence(r,t){const n=t.subContextCount;let a=t;const o=r.options;if(o&&(o.params||o.delay)&&(a=t.createSubContext(o),a.transformIntoNewTimeline(),null!=o.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=je);const l=pe(o.delay);a.delayNextStep(l)}r.steps.length&&(r.steps.forEach(l=>j(this,l,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>n&&a.transformIntoNewTimeline()),t.previousNode=r}visitGroup(r,t){const n=[];let a=t.currentTimeline.currentTime;const o=r.options&&r.options.delay?pe(r.options.delay):0;r.steps.forEach(l=>{const s=t.createSubContext(r.options);o&&s.delayNextStep(o),j(this,l,s),a=Math.max(a,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(l=>t.currentTimeline.mergeTimelineCollectedStyles(l)),t.transformIntoNewTimeline(a),t.previousNode=r}_visitTiming(r,t){if(r.dynamic){const n=r.strValue;return Re(t.params?Oe(n,t.params,t.errors):n,t.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,t){const n=t.currentAnimateTimings=this._visitTiming(r.timings,t),a=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),a.snapshotCurrentStyles());const o=r.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),a.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=r}visitStyle(r,t){const n=t.currentTimeline,a=t.currentAnimateTimings;!a&&n.getCurrentStyleProperties().length&&n.forwardFrame();const o=a&&a.easing||r.easing;r.isEmptyStep?n.applyEmptyStep(o):n.setStyles(r.styles,o,t.errors,t.options),t.previousNode=r}visitKeyframes(r,t){const n=t.currentAnimateTimings,a=t.currentTimeline.duration,o=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,r.styles.forEach(c=>{s.forwardTime((c.offset||0)*o),s.setStyles(c.styles,c.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(a+o),t.previousNode=r}visitQuery(r,t){const n=t.currentTimeline.currentTime,a=r.options||{},o=a.delay?pe(a.delay):0;o&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=je);let l=n;const s=t.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,t.errors);t.currentQueryTotal=s.length;let c=null;s.forEach((d,p)=>{t.currentQueryIndex=p;const u=t.createSubContext(r.options,d);o&&u.delayNextStep(o),d===t.element&&(c=u.currentTimeline),j(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=r}visitStagger(r,t){const n=t.parentContext,a=t.currentTimeline,o=r.timings,l=Math.abs(o.duration),s=l*(t.currentQueryTotal-1);let c=l*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=n.currentStaggerTime}const p=t.currentTimeline;c&&p.delayNextStep(c);const u=p.currentTime;j(this,r.animation,t),t.previousNode=r,n.currentStaggerTime=a.currentTime-u+(a.startTime-n.currentTimeline.startTime)}}const je={};class bt{constructor(r,t,n,a,o,l,s,c){this._driver=r,this.element=t,this.subInstructions=n,this._enterClassName=a,this._leaveClassName=o,this.errors=l,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=je,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new qe(this._driver,t,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,t){if(!r)return;const n=r;let a=this.options;null!=n.duration&&(a.duration=pe(n.duration)),null!=n.delay&&(a.delay=pe(n.delay));const o=n.params;if(o){let l=a.params;l||(l=this.options.params={}),Object.keys(o).forEach(s=>{(!t||!l.hasOwnProperty(s))&&(l[s]=Oe(o[s],l,this.errors))})}}_copyOptions(){const r={};if(this.options){const t=this.options.params;if(t){const n=r.params={};Object.keys(t).forEach(a=>{n[a]=t[a]})}}return r}createSubContext(r=null,t,n){const a=t||this.element,o=new bt(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(r),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(r){return this.previousNode=je,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,t,n){const a={duration:null!=t?t:r.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+r.delay,easing:""},o=new wa(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(o),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,t,n,a,o,l){let s=[];if(a&&s.push(this.element),r.length>0){r=(r=r.replace(ba,"."+this._enterClassName)).replace(xa,"."+this._leaveClassName);let d=this._driver.query(this.element,r,1!=n);0!==n&&(d=n<0?d.slice(d.length+n,d.length):d.slice(0,n)),s.push(...d)}return!o&&0==s.length&&l.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),s}}class qe{constructor(r,t,n,a){this._driver=r,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+r),t&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,t){return this.applyStylesToKeyframe(),new qe(this._driver,r,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,t){this._localTimelineStyles[r]=t,this._globalTimelineStyles[r]=t,this._styleSummary[r]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&(this._previousKeyframe.easing=r),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||I.AUTO_STYLE,this._currentKeyframe[t]=I.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,t,n,a){t&&(this._previousKeyframe.easing=t);const o=a&&a.params||{},l=function Ea(i,r){const t={};let n;return i.forEach(a=>{"*"===a?(n=n||Object.keys(r),n.forEach(o=>{t[o]=I.AUTO_STYLE})):te(a,!1,t)}),t}(r,this._globalTimelineStyles);Object.keys(l).forEach(s=>{const c=Oe(l[s],o,n);this._pendingStyles[s]=c,this._localTimelineStyles.hasOwnProperty(s)||(this._backFill[s]=this._globalTimelineStyles.hasOwnProperty(s)?this._globalTimelineStyles[s]:I.AUTO_STYLE),this._updateStyle(s,c)})}applyStylesToKeyframe(){const r=this._pendingStyles,t=Object.keys(r);0!=t.length&&(this._pendingStyles={},t.forEach(n=>{this._currentKeyframe[n]=r[n]}),Object.keys(this._localTimelineStyles).forEach(n=>{this._currentKeyframe.hasOwnProperty(n)||(this._currentKeyframe[n]=this._localTimelineStyles[n])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(r=>{const t=this._localTimelineStyles[r];this._pendingStyles[r]=t,this._updateStyle(r,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let t in this._currentKeyframe)r.push(t);return r}mergeTimelineCollectedStyles(r){Object.keys(r._styleSummary).forEach(t=>{const n=this._styleSummary[t],a=r._styleSummary[t];(!n||a.time>n.time)&&this._updateStyle(t,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((s,c)=>{const d=te(s,!0);Object.keys(d).forEach(p=>{const u=d[p];u==I.\u0275PRE_STYLE?r.add(p):u==I.AUTO_STYLE&&t.add(p)}),n||(d.offset=c/this.duration),a.push(d)});const o=r.size?He(r.values()):[],l=t.size?He(t.values()):[];if(n){const s=a[0],c=ye(s);s.offset=0,c.offset=1,a=[s,c]}return yt(this.element,a,o,l,this.duration,this.startTime,this.easing,!1)}}class wa extends qe{constructor(r,t,n,a,o,l,s=!1){super(r,t,l.delay),this.keyframes=n,this.preStyleProps=a,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:t,duration:n,easing:a}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],l=n+t,s=t/l,c=te(r[0],!1);c.offset=0,o.push(c);const d=te(r[0],!1);d.offset=Sn(s),o.push(d);const p=r.length-1;for(let u=1;u<=p;u++){let g=te(r[u],!1);g.offset=Sn((t+g.offset*n)/l),o.push(g)}n=l,t=0,a="",r=o}return yt(this.element,r,this.preStyleProps,this.postStyleProps,n,t,a,!0)}}function Sn(i,r=3){const t=Math.pow(10,r-1);return Math.round(i*t)/t}class Ct{}class Ta extends Ct{normalizePropertyName(r,t){return ht(r)}normalizeStyleValue(r,t,n,a){let o="";const l=n.toString().trim();if(Ia[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&a.push(`Please provide a CSS unit value for ${r}:${n}`)}return l+o}}const Ia=(()=>function Na(i){const r={};return i.forEach(t=>r[t]=!0),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function bn(i,r,t,n,a,o,l,s,c,d,p,u,g){return{type:0,element:i,triggerName:r,isRemovalTransition:a,fromState:t,fromStyles:o,toState:n,toStyles:l,timelines:s,queriedElements:c,preStyleProps:d,postStyleProps:p,totalTime:u,errors:g}}const xt={};class Cn{constructor(r,t,n){this._triggerName=r,this.ast=t,this._stateStyles=n}match(r,t,n,a){return function La(i,r,t,n,a){return i.some(o=>o(r,t,n,a))}(this.ast.matchers,r,t,n,a)}buildStyles(r,t,n){const a=this._stateStyles["*"],o=this._stateStyles[r],l=a?a.buildStyles(t,n):{};return o?o.buildStyles(t,n):l}build(r,t,n,a,o,l,s,c,d,p){const u=[],g=this.ast.options&&this.ast.options.params||xt,h=this.buildStyles(n,s&&s.params||xt,u),f=c&&c.params||xt,C=this.buildStyles(a,f,u),A=new Set,x=new Map,S=new Map,N="void"===a,H={params:Object.assign(Object.assign({},g),f)},T=p?[]:St(r,t,this.ast.animation,o,l,h,C,H,d,u);let R=0;if(T.forEach(W=>{R=Math.max(W.duration+W.delay,R)}),u.length)return bn(t,this._triggerName,n,a,N,h,C,[],[],x,S,R,u);T.forEach(W=>{const K=W.element,ii=B(x,K,{});W.preStyleProps.forEach(ge=>ii[ge]=!0);const Ee=B(S,K,{});W.postStyleProps.forEach(ge=>Ee[ge]=!0),K!==t&&A.add(K)});const D=He(A.values());return bn(t,this._triggerName,n,a,N,h,C,T,D,x,S,R)}}class Pa{constructor(r,t,n){this.styles=r,this.defaultParams=t,this.normalizer=n}buildStyles(r,t){const n={},a=ye(this.defaultParams);return Object.keys(r).forEach(o=>{const l=r[o];null!=l&&(a[o]=l)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const l=o;Object.keys(l).forEach(s=>{let c=l[s];c.length>1&&(c=Oe(c,a,t));const d=this.normalizer.normalizePropertyName(s,t);c=this.normalizer.normalizeStyleValue(s,d,c,t),n[d]=c})}}),n}}class Ra{constructor(r,t,n){this.name=r,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(a=>{this.states[a.name]=new Pa(a.style,a.options&&a.options.params||{},n)}),xn(this.states,"true","1"),xn(this.states,"false","0"),t.transitions.forEach(a=>{this.transitionFactories.push(new Cn(r,a,this.states))}),this.fallbackTransition=function Oa(i,r,t){return new Cn(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(l,s)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,t,n,a){return this.transitionFactories.find(l=>l.match(r,t,n,a))||null}matchStyles(r,t,n){return this.fallbackTransition.buildStyles(r,t,n)}}function xn(i,r,t){i.hasOwnProperty(r)?i.hasOwnProperty(t)||(i[t]=i[r]):i.hasOwnProperty(t)&&(i[r]=i[t])}const Ha=new Be;class Ma{constructor(r,t,n){this.bodyNode=r,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(r,t){const n=[],a=ft(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[r]=a}_buildPlayer(r,t,n){const a=r.element,o=nn(0,this._normalizer,0,r.keyframes,t,n);return this._driver.animate(a,o,r.duration,r.delay,r.easing,[],!0)}create(r,t,n={}){const a=[],o=this._animations[r];let l;const s=new Map;if(o?(l=St(this._driver,t,o,pt,Le,{},{},n,Ha,a),l.forEach(p=>{const u=B(s,p.element,{});p.postStyleProps.forEach(g=>u[g]=null)})):(a.push("The requested animation doesn't exist or has already been destroyed"),l=[]),a.length)throw new Error(`Unable to create the animation due to the following errors: ${a.join("\n")}`);s.forEach((p,u)=>{Object.keys(p).forEach(g=>{p[g]=this._driver.computeStyle(u,g,I.AUTO_STYLE)})});const d=ee(l.map(p=>{const u=s.get(p.element);return this._buildPlayer(p,{},u)}));return this._playersById[r]=d,d.onDestroy(()=>this.destroy(r)),this.players.push(d),d}destroy(r){const t=this._getPlayer(r);t.destroy(),delete this._playersById[r];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(r){const t=this._playersById[r];if(!t)throw new Error(`Unable to find the timeline player referenced by ${r}`);return t}listen(r,t,n,a){const o=rt(t,"","","");return it(this._getPlayer(r),n,o,a),()=>{}}command(r,t,n,a){if("register"==n)return void this.register(r,a[0]);if("create"==n)return void this.create(r,t,a[0]||{});const o=this._getPlayer(r);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(r)}}}const An="ng-animate-queued",At="ng-animate-disabled",ja=[],wn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},V="__ng_removed";class wt{constructor(r,t=""){this.namespaceId=t;const n=r&&r.hasOwnProperty("value");if(this.value=function Wa(i){return null!=i?i:null}(n?r.value:r),n){const o=ye(r);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const t=r.params;if(t){const n=this.options.params;Object.keys(t).forEach(a=>{null==n[a]&&(n[a]=t[a])})}}}const we="void",Et=new wt(we);class Va{constructor(r,t,n){this.id=r,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,G(t,this._hostClassName)}listen(r,t,n,a){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if(!function Ka(i){return"start"==i||"done"==i}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);const o=B(this._elementListeners,r,[]),l={name:t,phase:n,callback:a};o.push(l);const s=B(this._engine.statesByElement,r,{});return s.hasOwnProperty(t)||(G(r,Pe),G(r,Pe+"-"+t),s[t]=Et),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(l);c>=0&&o.splice(c,1),this._triggers[t]||delete s[t]})}}register(r,t){return!this._triggers[r]&&(this._triggers[r]=t,!0)}_getTrigger(r){const t=this._triggers[r];if(!t)throw new Error(`The provided animation trigger "${r}" has not been registered!`);return t}trigger(r,t,n,a=!0){const o=this._getTrigger(t),l=new Tt(this.id,t,r);let s=this._engine.statesByElement.get(r);s||(G(r,Pe),G(r,Pe+"-"+t),this._engine.statesByElement.set(r,s={}));let c=s[t];const d=new wt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&d.absorbOptions(c.options),s[t]=d,c||(c=Et),d.value!==we&&c.value===d.value){if(!function Ya(i,r){const t=Object.keys(i),n=Object.keys(r);if(t.length!=n.length)return!1;for(let a=0;a{me(r,C),Q(r,A)})}return}const g=B(this._engine.playersByElement,r,[]);g.forEach(f=>{f.namespaceId==this.id&&f.triggerName==t&&f.queued&&f.destroy()});let _=o.matchTransition(c.value,d.value,r,d.params),h=!1;if(!_){if(!a)return;_=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:t,transition:_,fromState:c,toState:d,player:l,isFallbackTransition:h}),h||(G(r,An),l.onStart(()=>{Se(r,An)})),l.onDone(()=>{let f=this.players.indexOf(l);f>=0&&this.players.splice(f,1);const C=this._engine.playersByElement.get(r);if(C){let A=C.indexOf(l);A>=0&&C.splice(A,1)}}),this.players.push(l),g.push(l),l}deregister(r){delete this._triggers[r],this._engine.statesByElement.forEach((t,n)=>{delete t[r]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const t=this._engine.playersByElement.get(r);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,t){const n=this._engine.driver.query(r,ke,!0);n.forEach(a=>{if(a[V])return;const o=this._engine.fetchNamespacesByElement(a);o.size?o.forEach(l=>l.triggerLeaveAnimation(a,t,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,t,n,a){const o=this._engine.statesByElement.get(r),l=new Map;if(o){const s=[];if(Object.keys(o).forEach(c=>{if(l.set(c,o[c].value),this._triggers[c]){const d=this.trigger(r,c,we,a);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,r,!0,t,l),n&&ee(s).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const t=this._elementListeners.get(r),n=this._engine.statesByElement.get(r);if(t&&n){const a=new Set;t.forEach(o=>{const l=o.name;if(a.has(l))return;a.add(l);const c=this._triggers[l].fallbackTransition,d=n[l]||Et,p=new wt(we),u=new Tt(this.id,l,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:l,transition:c,fromState:d,toState:p,player:u,isFallbackTransition:!0})})}}removeNode(r,t){const n=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,t),this.triggerLeaveAnimation(r,t,!0))return;let a=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(r):[];if(o&&o.length)a=!0;else{let l=r;for(;l=l.parentNode;)if(n.statesByElement.get(l)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)n.markElementAsRemoved(this.id,r,!1,t);else{const o=r[V];(!o||o===wn)&&(n.afterFlush(()=>this.clearElementCache(r)),n.destroyInnerAnimations(r),n._onRemovalComplete(r,t))}}insertNode(r,t){G(r,this._hostClassName)}drainQueuedTransitions(r){const t=[];return this._queue.forEach(n=>{const a=n.player;if(a.destroyed)return;const o=n.element,l=this._elementListeners.get(o);l&&l.forEach(s=>{if(s.name==n.triggerName){const c=rt(o,n.triggerName,n.fromState.value,n.toState.value);c._data=r,it(n.player,s.phase,c,s.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):t.push(n)}),this._queue=[],t.sort((n,a)=>{const o=n.transition.ast.depCount,l=a.transition.ast.depCount;return 0==o||0==l?o-l:this._engine.driver.containsElement(n.element,a.element)?1:-1})}destroy(r){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let t=!1;return this._elementListeners.has(r)&&(t=!0),t=!!this._queue.find(n=>n.element===r)||t,t}}class Ga{constructor(r,t,n){this.bodyNode=r,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,o)=>{}}_onRemovalComplete(r,t){this.onRemovalComplete(r,t)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&r.push(n)})}),r}createNamespace(r,t){const n=new Va(r,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[r]=n}_balanceNamespaceList(r,t){const n=this._namespaceList.length-1;if(n>=0){let a=!1;for(let o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+1,0,r),a=!0;break}a||this._namespaceList.splice(0,0,r)}else this._namespaceList.push(r);return this.namespacesByHostElement.set(t,r),r}register(r,t){let n=this._namespaceLookup[r];return n||(n=this.createNamespace(r,t)),n}registerTrigger(r,t,n){let a=this._namespaceLookup[r];a&&a.register(t,n)&&this.totalAnimations++}destroy(r,t){if(!r)return;const n=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(n);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const t=new Set,n=this.statesByElement.get(r);if(n){const a=Object.keys(n);for(let o=0;o=0&&this.collectedLeaveElements.splice(l,1)}if(r){const l=this._fetchNamespace(r);l&&l.insertNode(t,n)}a&&this.collectEnterElement(t)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,t){t?this.disabledNodes.has(r)||(this.disabledNodes.add(r),G(r,At)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Se(r,At))}removeNode(r,t,n,a){if(Ve(t)){const o=r?this._fetchNamespace(r):null;if(o?o.removeNode(t,a):this.markElementAsRemoved(r,t,!1,a),n){const l=this.namespacesByHostElement.get(t);l&&l.id!==r&&l.removeNode(t,a)}}else this._onRemovalComplete(t,a)}markElementAsRemoved(r,t,n,a,o){this.collectedLeaveElements.push(t),t[V]={namespaceId:r,setForRemoval:a,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(r,t,n,a,o){return Ve(t)?this._fetchNamespace(r).listen(t,n,a,o):()=>{}}_buildInstruction(r,t,n,a,o){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,n,a,r.fromState.options,r.toState.options,t,o)}destroyInnerAnimations(r){let t=this.driver.query(r,ke,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(r,mt,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(r){const t=this.playersByElement.get(r);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(r){const t=this.playersByQueriedElement.get(r);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ee(this.players).onDone(()=>r());r()})}processLeaveNode(r){var t;const n=r[V];if(n&&n.setForRemoval){if(r[V]=wn,n.namespaceId){this.destroyInnerAnimations(r);const a=this._fetchNamespace(n.namespaceId);a&&a.clearElementCache(r)}this._onRemovalComplete(r,n.setForRemoval)}(null===(t=r.classList)||void 0===t?void 0:t.contains(At))&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(a=>{this.markElementAsDisabled(a,!1)})}flush(r=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,a)=>this._balanceNamespaceList(n,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],t.length?ee(t).onDone(()=>{n.forEach(a=>a())}):n.forEach(a=>a())}}reportError(r){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${r.join("\n")}`)}_flushAnimations(r,t){const n=new Be,a=[],o=new Map,l=[],s=new Map,c=new Map,d=new Map,p=new Set;this.disabledNodes.forEach(v=>{p.add(v);const y=this.driver.query(v,".ng-animate-queued",!0);for(let b=0;b{const b=pt+f++;h.set(y,b),v.forEach(E=>G(E,b))});const C=[],A=new Set,x=new Set;for(let v=0;vA.add(E)):x.add(y))}const S=new Map,N=In(g,Array.from(A));N.forEach((v,y)=>{const b=Le+f++;S.set(y,b),v.forEach(E=>G(E,b))}),r.push(()=>{_.forEach((v,y)=>{const b=h.get(y);v.forEach(E=>Se(E,b))}),N.forEach((v,y)=>{const b=S.get(y);v.forEach(E=>Se(E,b))}),C.forEach(v=>{this.processLeaveNode(v)})});const H=[],T=[];for(let v=this._namespaceList.length-1;v>=0;v--)this._namespaceList[v].drainQueuedTransitions(t).forEach(b=>{const E=b.player,k=b.element;if(H.push(E),this.collectedEnterElements.length){const M=k[V];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(b.triggerName)){const he=M.previousTriggersValues.get(b.triggerName),ae=this.statesByElement.get(b.element);ae&&ae[b.triggerName]&&(ae[b.triggerName].value=he)}return void E.destroy()}}const J=!u||!this.driver.containsElement(u,k),q=S.get(k),ie=h.get(k),L=this._buildInstruction(b,n,ie,q,J);if(L.errors&&L.errors.length)return void T.push(L);if(J)return E.onStart(()=>me(k,L.fromStyles)),E.onDestroy(()=>Q(k,L.toStyles)),void a.push(E);if(b.isFallbackTransition)return E.onStart(()=>me(k,L.fromStyles)),E.onDestroy(()=>Q(k,L.toStyles)),void a.push(E);const oi=[];L.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||oi.push(M)}),L.timelines=oi,n.append(k,L.timelines),l.push({instruction:L,player:E,element:k}),L.queriedElements.forEach(M=>B(s,M,[]).push(E)),L.preStyleProps.forEach((M,he)=>{const ae=Object.keys(M);if(ae.length){let _e=c.get(he);_e||c.set(he,_e=new Set),ae.forEach(Ht=>_e.add(Ht))}}),L.postStyleProps.forEach((M,he)=>{const ae=Object.keys(M);let _e=d.get(he);_e||d.set(he,_e=new Set),ae.forEach(Ht=>_e.add(Ht))})});if(T.length){const v=[];T.forEach(y=>{v.push(`@${y.triggerName} has failed due to:\n`),y.errors.forEach(b=>v.push(`- ${b}\n`))}),H.forEach(y=>y.destroy()),this.reportError(v)}const R=new Map,D=new Map;l.forEach(v=>{const y=v.element;n.has(y)&&(D.set(y,y),this._beforeAnimationBuild(v.player.namespaceId,v.instruction,R))}),a.forEach(v=>{const y=v.element;this._getPreviousPlayers(y,!1,v.namespaceId,v.triggerName,null).forEach(E=>{B(R,y,[]).push(E),E.destroy()})});const W=C.filter(v=>Ln(v,c,d)),K=new Map;Tn(K,this.driver,x,d,I.AUTO_STYLE).forEach(v=>{Ln(v,c,d)&&W.push(v)});const Ee=new Map;_.forEach((v,y)=>{Tn(Ee,this.driver,new Set(v),c,I.\u0275PRE_STYLE)}),W.forEach(v=>{const y=K.get(v),b=Ee.get(v);K.set(v,Object.assign(Object.assign({},y),b))});const ge=[],ai=[],ri={};l.forEach(v=>{const{element:y,player:b,instruction:E}=v;if(n.has(y)){if(p.has(y))return b.onDestroy(()=>Q(y,E.toStyles)),b.disabled=!0,b.overrideTotalTime(E.totalTime),void a.push(b);let k=ri;if(D.size>1){let q=y;const ie=[];for(;q=q.parentNode;){const L=D.get(q);if(L){k=L;break}ie.push(q)}ie.forEach(L=>D.set(L,k))}const J=this._buildAnimation(b.namespaceId,E,R,o,Ee,K);if(b.setRealPlayer(J),k===ri)ge.push(b);else{const q=this.playersByElement.get(k);q&&q.length&&(b.parentPlayer=ee(q)),a.push(b)}}else me(y,E.fromStyles),b.onDestroy(()=>Q(y,E.toStyles)),ai.push(b),p.has(y)&&a.push(b)}),ai.forEach(v=>{const y=o.get(v.element);if(y&&y.length){const b=ee(y);v.setRealPlayer(b)}}),a.forEach(v=>{v.parentPlayer?v.syncPlayerEvents(v.parentPlayer):v.destroy()});for(let v=0;v!J.destroyed);k.length?$a(this,y,k):this.processLeaveNode(y)}return C.length=0,ge.forEach(v=>{this.players.push(v),v.onDone(()=>{v.destroy();const y=this.players.indexOf(v);this.players.splice(y,1)}),v.play()}),ge}elementContainsData(r,t){let n=!1;const a=t[V];return a&&a.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(r).elementContainsData(t)||n}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,t,n,a,o){let l=[];if(t){const s=this.playersByQueriedElement.get(r);s&&(l=s)}else{const s=this.playersByElement.get(r);if(s){const c=!o||o==we;s.forEach(d=>{d.queued||!c&&d.triggerName!=a||l.push(d)})}}return(n||a)&&(l=l.filter(s=>!(n&&n!=s.namespaceId||a&&a!=s.triggerName))),l}_beforeAnimationBuild(r,t,n){const o=t.element,l=t.isRemovalTransition?void 0:r,s=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const d=c.element,p=d!==o,u=B(n,d,[]);this._getPreviousPlayers(d,p,l,s,t.toState).forEach(_=>{const h=_.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),_.destroy(),u.push(_)})}me(o,t.fromStyles)}_buildAnimation(r,t,n,a,o,l){const s=t.triggerName,c=t.element,d=[],p=new Set,u=new Set,g=t.timelines.map(h=>{const f=h.element;p.add(f);const C=f[V];if(C&&C.removedBeforeQueried)return new I.NoopAnimationPlayer(h.duration,h.delay);const A=f!==c,x=function Qa(i){const r=[];return Nn(i,r),r}((n.get(f)||ja).map(R=>R.getRealPlayer())).filter(R=>!!R.element&&R.element===f),S=o.get(f),N=l.get(f),H=nn(0,this._normalizer,0,h.keyframes,S,N),T=this._buildPlayer(h,H,x);if(h.subTimeline&&a&&u.add(f),A){const R=new Tt(r,s,f);R.setRealPlayer(T),d.push(R)}return T});d.forEach(h=>{B(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>function za(i,r,t){let n;if(i instanceof Map){if(n=i.get(r),n){if(n.length){const a=n.indexOf(t);n.splice(a,1)}0==n.length&&i.delete(r)}}else if(n=i[r],n){if(n.length){const a=n.indexOf(t);n.splice(a,1)}0==n.length&&delete i[r]}return n}(this.playersByQueriedElement,h.element,h))}),p.forEach(h=>G(h,dn));const _=ee(g);return _.onDestroy(()=>{p.forEach(h=>Se(h,dn)),Q(c,t.toStyles)}),u.forEach(h=>{B(a,h,[]).push(_)}),_}_buildPlayer(r,t,n){return t.length>0?this.driver.animate(r.element,t,r.duration,r.delay,r.easing,n):new I.NoopAnimationPlayer(r.duration,r.delay)}}class Tt{constructor(r,t,n){this.namespaceId=r,this.triggerName=t,this.element=n,this._player=new I.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>it(r,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const t=this._player;t.triggerCallback&&r.onStart(()=>t.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,t){B(this._queuedCallbacks,r,[]).push(t)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const t=this._player;t.triggerCallback&&t.triggerCallback(r)}}function Ve(i){return i&&1===i.nodeType}function En(i,r){const t=i.style.display;return i.style.display=null!=r?r:"none",t}function Tn(i,r,t,n,a){const o=[];t.forEach(c=>o.push(En(c)));const l=[];n.forEach((c,d)=>{const p={};c.forEach(u=>{const g=p[u]=r.computeStyle(d,u,a);(!g||0==g.length)&&(d[V]=qa,l.push(d))}),i.set(d,p)});let s=0;return t.forEach(c=>En(c,o[s++])),l}function In(i,r){const t=new Map;if(i.forEach(s=>t.set(s,[])),0==r.length)return t;const a=new Set(r),o=new Map;function l(s){if(!s)return 1;let c=o.get(s);if(c)return c;const d=s.parentNode;return c=t.has(d)?d:a.has(d)?1:l(d),o.set(s,c),c}return r.forEach(s=>{const c=l(s);1!==c&&t.get(c).push(s)}),t}function G(i,r){var t;null===(t=i.classList)||void 0===t||t.add(r)}function Se(i,r){var t;null===(t=i.classList)||void 0===t||t.remove(r)}function $a(i,r,t){ee(t).onDone(()=>i.processLeaveNode(r))}function Nn(i,r){for(let t=0;ta.add(o)):r.set(i,n),t.delete(i),!0}class Ge{constructor(r,t,n){this.bodyNode=r,this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(a,o)=>{},this._transitionEngine=new Ga(r,t,n),this._timelineEngine=new Ma(r,t,n),this._transitionEngine.onRemovalComplete=(a,o)=>this.onRemovalComplete(a,o)}registerTrigger(r,t,n,a,o){const l=r+"-"+a;let s=this._triggerCache[l];if(!s){const c=[],d=ft(this._driver,o,c);if(c.length)throw new Error(`The animation trigger "${a}" has failed to build due to the following errors:\n - ${c.join("\n - ")}`);s=function ka(i,r,t){return new Ra(i,r,t)}(a,d,this._normalizer),this._triggerCache[l]=s}this._transitionEngine.registerTrigger(t,a,s)}register(r,t){this._transitionEngine.register(r,t)}destroy(r,t){this._transitionEngine.destroy(r,t)}onInsert(r,t,n,a){this._transitionEngine.insertNode(r,t,n,a)}onRemove(r,t,n,a){this._transitionEngine.removeNode(r,t,a||!1,n)}disableAnimations(r,t){this._transitionEngine.markElementAsDisabled(r,t)}process(r,t,n,a){if("@"==n.charAt(0)){const[o,l]=an(n);this._timelineEngine.command(o,t,l,a)}else this._transitionEngine.trigger(r,t,n,a)}listen(r,t,n,a,o){if("@"==n.charAt(0)){const[l,s]=an(n);return this._timelineEngine.listen(l,t,s,o)}return this._transitionEngine.listen(r,t,n,a,o)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Pn(i,r){let t=null,n=null;return Array.isArray(r)&&r.length?(t=It(r[0]),r.length>1&&(n=It(r[r.length-1]))):r&&(t=It(r)),t||n?new Ja(i,t,n):null}let Ja=(()=>{class i{constructor(t,n,a){this._element=t,this._startStyles=n,this._endStyles=a,this._state=0;let o=i.initialStylesByElement.get(t);o||i.initialStylesByElement.set(t,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function It(i){let r=null;const t=Object.keys(i);for(let n=0;nthis._handleCallback(c)}apply(){(function nr(i,r){const t=Lt(i,"").trim();let n=0;t.length&&(n=function ar(i,r){let t=0;for(let n=0;n=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Mn(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function ir(i,r){const n=Lt(i,"").split(","),a=Nt(n,r);a>=0&&(n.splice(a,1),ze(i,"",n.join(",")))}(this._element,this._name))}}function On(i,r,t){ze(i,"PlayState",t,Hn(i,r))}function Hn(i,r){const t=Lt(i,"");return t.indexOf(",")>0?Nt(t.split(","),r):Nt([t],r)}function Nt(i,r){for(let t=0;t=0)return t;return-1}function Mn(i,r,t){t?i.removeEventListener(Rn,r):i.addEventListener(Rn,r)}function ze(i,r,t,n){const a=kn+r;if(null!=n){const o=i.style[a];if(o.length){const l=o.split(",");l[n]=t,t=l.join(",")}}i.style[a]=t}function Lt(i,r){return i.style[kn+r]||""}class Fn{constructor(r,t,n,a,o,l,s,c){this.element=r,this.keyframes=t,this.animationName=n,this._duration=a,this._delay=o,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=l||"linear",this.totalTime=a+o,this._buildStyler()}onStart(r){this._onStartFns.push(r)}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(r=>r()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(r){this._styler.setPosition(r)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new tr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(r){const t="start"==r?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}beforeDestroy(){this.init();const r={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(r[n]=t?this._finalStyles[n]:_t(this.element,n))})}this.currentSnapshot=r}}class lr extends I.NoopAnimationPlayer{constructor(r,t){super(),this.element=r,this._startingStyles={},this.__initialized=!1,this._styles=ln(t)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(r=>{this._startingStyles[r]=this.element.style[r]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(r=>this.element.style.setProperty(r,this._styles[r])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(r=>{const t=this._startingStyles[r];t?this.element.style.setProperty(r,t):this.element.style.removeProperty(r)}),this._startingStyles=null,super.destroy())}}class Un{constructor(){this._count=0}validateStyleProperty(r){return lt(r)}matchesElement(r,t){return!1}containsElement(r,t){return st(r,t)}query(r,t,n){return ct(r,t,n)}computeStyle(r,t,n){return window.getComputedStyle(r)[t]}buildKeyframeElement(r,t,n){n=n.map(s=>ln(s));let a=`@keyframes ${t} {\n`,o="";n.forEach(s=>{o=" ";const c=parseFloat(s.offset);a+=`${o}${100*c}% {\n`,o+=" ",Object.keys(s).forEach(d=>{const p=s[d];switch(d){case"offset":return;case"easing":return void(p&&(a+=`${o}animation-timing-function: ${p};\n`));default:return void(a+=`${o}${d}: ${p};\n`)}}),a+=`${o}}\n`}),a+="}\n";const l=document.createElement("style");return l.textContent=a,l}animate(r,t,n,a,o,l=[],s){const c=l.filter(C=>C instanceof Fn),d={};hn(n,a)&&c.forEach(C=>{let A=C.currentSnapshot;Object.keys(A).forEach(x=>d[x]=A[x])});const p=function dr(i){let r={};return i&&(Array.isArray(i)?i:[i]).forEach(n=>{Object.keys(n).forEach(a=>{"offset"==a||"easing"==a||(r[a]=n[a])})}),r}(t=_n(r,t,d));if(0==n)return new lr(r,p);const u="gen_css_kf_"+this._count++,g=this.buildKeyframeElement(r,u,t);(function cr(i){var r;const t=null===(r=i.getRootNode)||void 0===r?void 0:r.call(i);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head})(r).appendChild(g);const h=Pn(r,t),f=new Fn(r,t,u,n,a,o,p,h);return f.onDestroy(()=>function pr(i){i.parentNode.removeChild(i)}(g)),f}}class jn{constructor(r,t,n,a){this.element=r,this.keyframes=t,this.options=n,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(r,t,n){return r.animate(t,n)}onStart(r){this._onStartFns.push(r)}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(n=>{"offset"!=n&&(r[n]=this._finished?t[n]:_t(this.element,n))})}this.currentSnapshot=r}triggerCallback(r){const t="start"==r?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}}class mr{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(qn().toString()),this._cssKeyframesDriver=new Un}validateStyleProperty(r){return lt(r)}matchesElement(r,t){return!1}containsElement(r,t){return st(r,t)}query(r,t,n){return ct(r,t,n)}computeStyle(r,t,n){return window.getComputedStyle(r)[t]}overrideWebAnimationsSupport(r){this._isNativeImpl=r}animate(r,t,n,a,o,l=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(r,t,n,a,o,l);const p={duration:n,delay:a,fill:0==a?"both":"forwards"};o&&(p.easing=o);const u={},g=l.filter(h=>h instanceof jn);hn(n,a)&&g.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(C=>u[C]=f[C])});const _=Pn(r,t=_n(r,t=t.map(h=>te(h,!1)),u));return new jn(r,t,p,_)}}function qn(){return tn()&&Element.prototype.animate||{}}let gr=(()=>{class i extends I.AnimationBuilder{constructor(t,n){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(n.body,{id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(t){const n=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(t)?(0,I.sequence)(t):t;return Vn(this._renderer,null,n,"register",[a]),new hr(n,this._renderer)}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(w.DOCUMENT))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})();class hr extends I.AnimationFactory{constructor(r,t){super(),this._id=r,this._renderer=t}create(r,t){return new _r(this._id,r,t||{},this._renderer)}}class _r{constructor(r,t,n,a){this.id=r,this.element=t,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(r,t){return this._renderer.listen(this.element,`@@${this.id}:${r}`,t)}_command(r,...t){return Vn(this._renderer,this.element,this.id,r,t)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){var r,t;return null!==(t=null===(r=this._renderer.engine.players[+this.id])||void 0===r?void 0:r.getPosition())&&void 0!==t?t:0}}function Vn(i,r,t,n,a){return i.setProperty(r,`@@${t}:${n}`,a)}const Gn="@.disabled";let fr=(()=>{class i{constructor(t,n,a){this.delegate=t,this.engine=n,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(o,l)=>{const s=null==l?void 0:l.parentNode(o);s&&l.removeChild(s,o)}}createRenderer(t,n){const o=this.delegate.createRenderer(t,n);if(!(t&&n&&n.data&&n.data.animation)){let p=this._rendererCache.get(o);return p||(p=new zn("",o,this.engine),this._rendererCache.set(o,p)),p}const l=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const c=p=>{Array.isArray(p)?p.forEach(c):this.engine.registerTrigger(l,s,t,p.name,p)};return n.data.animation.forEach(c),new vr(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,a){t>=0&&tn(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[l,s]=o;l(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(e.RendererFactory2),e.\u0275\u0275inject(Ge),e.\u0275\u0275inject(e.NgZone))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})();class zn{constructor(r,t,n){this.namespaceId=r,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?a=>t.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,t){return this.delegate.createElement(r,t)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,t){this.delegate.appendChild(r,t),this.engine.onInsert(this.namespaceId,t,r,!1)}insertBefore(r,t,n,a=!0){this.delegate.insertBefore(r,t,n),this.engine.onInsert(this.namespaceId,t,r,a)}removeChild(r,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(r,t){return this.delegate.selectRootElement(r,t)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,t,n,a){this.delegate.setAttribute(r,t,n,a)}removeAttribute(r,t,n){this.delegate.removeAttribute(r,t,n)}addClass(r,t){this.delegate.addClass(r,t)}removeClass(r,t){this.delegate.removeClass(r,t)}setStyle(r,t,n,a){this.delegate.setStyle(r,t,n,a)}removeStyle(r,t,n){this.delegate.removeStyle(r,t,n)}setProperty(r,t,n){"@"==t.charAt(0)&&t==Gn?this.disableAnimations(r,!!n):this.delegate.setProperty(r,t,n)}setValue(r,t){this.delegate.setValue(r,t)}listen(r,t,n){return this.delegate.listen(r,t,n)}disableAnimations(r,t){this.engine.disableAnimations(r,t)}}class vr extends zn{constructor(r,t,n,a){super(t,n,a),this.factory=r,this.namespaceId=t}setProperty(r,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Gn?this.disableAnimations(r,n=void 0===n||!!n):this.engine.process(this.namespaceId,r,t.substr(1),n):this.delegate.setProperty(r,t,n)}listen(r,t,n){if("@"==t.charAt(0)){const a=function yr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(r);let o=t.substr(1),l="";return"@"!=o.charAt(0)&&([o,l]=function Sr(i){const r=i.indexOf(".");return[i.substring(0,r),i.substr(r+1)]}(o)),this.engine.listen(this.namespaceId,a,o,l,s=>{this.factory.scheduleListenerCallback(s._data||-1,n,s)})}return this.delegate.listen(r,t,n)}}let br=(()=>{class i extends Ge{constructor(t,n,a){super(t.body,n,a)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(w.DOCUMENT),e.\u0275\u0275inject(dt),e.\u0275\u0275inject(Ct))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})();const Wn=new e.InjectionToken("AnimationModuleType"),Kn=[{provide:I.AnimationBuilder,useClass:gr},{provide:Ct,useFactory:function xr(){return new Ta}},{provide:Ge,useClass:br},{provide:e.RendererFactory2,useFactory:function Ar(i,r,t){return new fr(i,r,t)},deps:[z.\u0275DomRendererFactory2,Ge,e.NgZone]}],$n=[{provide:dt,useFactory:function Cr(){return function ur(){return"function"==typeof qn()}()?new mr:new Un}},{provide:Wn,useValue:"BrowserAnimations"},...Kn],wr=[{provide:dt,useClass:sn},{provide:Wn,useValue:"NoopAnimations"},...Kn];let Er=(()=>{class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?wr:$n}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.\u0275\u0275defineNgModule({type:i}),i.\u0275inj=e.\u0275\u0275defineInjector({providers:$n,imports:[z.BrowserModule]}),i})();class Tr{constructor(){}}function Ir(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.headerUsername.fullName,"\n")}}function Nr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",t.headerUsername.firstName," ",t.headerUsername.lastName,"")}}let Lr=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["al-header-username"]],inputs:{headerUsername:"headerUsername"},decls:2,vars:2,consts:[[4,"ngIf"]],template:function(t,n){1&t&&(e.\u0275\u0275template(0,Ir,2,1,"span",0),e.\u0275\u0275template(1,Nr,2,2,"span",0)),2&t&&(e.\u0275\u0275property("ngIf","BPO"===n.headerUsername.sourceOfHeaderName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","BPO"!==n.headerUsername.sourceOfHeaderName))},directives:[w.NgIf],encapsulation:2}),i})(),ne=(()=>{class i{static addClass(t,n){t.classList?t.classList.add(n):t.className+=" "+n}static addMultipleClasses(t,n){if(t.classList){let a=n.trim().split(" ");for(let o=0;os.height?(c=-1*a.height,t.style.transformOrigin="bottom",l.top+c<0&&(c=-1*l.top)):(c=o,t.style.transformOrigin="top"),d=a.width>s.width?-1*l.left:l.left+a.width>s.width?-1*(l.left+a.width-s.width):0,t.style.top=c+"px",t.style.left=d+"px"}static absolutePosition(t,n){let _,h,a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),o=a.height,l=a.width,s=n.offsetHeight,c=n.offsetWidth,d=n.getBoundingClientRect(),p=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),g=this.getViewport();d.top+s+o>g.height?(_=d.top+p-o,t.style.transformOrigin="bottom",_<0&&(_=p)):(_=s+d.top+p,t.style.transformOrigin="top"),h=d.left+l>g.width?Math.max(0,d.left+u+c-l):d.left+u,t.style.top=_+"px",t.style.left=h+"px"}static getParents(t,n=[]){return null===t.parentNode?n:this.getParents(t.parentNode,n.concat([t.parentNode]))}static getScrollableParents(t){let n=[];if(t){let a=this.getParents(t);const o=/(auto|scroll)/,l=s=>{let c=window.getComputedStyle(s,null);return o.test(c.getPropertyValue("overflow"))||o.test(c.getPropertyValue("overflowX"))||o.test(c.getPropertyValue("overflowY"))};for(let s of a){let c=1===s.nodeType&&s.dataset.scrollselectors;if(c){let d=c.split(",");for(let p of d){let u=this.findSingle(s,p);u&&l(u)&&n.push(u)}}9!==s.nodeType&&l(s)&&n.push(s)}}return n}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let n=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",n}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let n=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",n}static getHiddenElementDimensions(t){let n={};return t.style.visibility="hidden",t.style.display="block",n.width=t.offsetWidth,n.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",n}static scrollInView(t,n){let a=getComputedStyle(t).getPropertyValue("borderTopWidth"),o=a?parseFloat(a):0,l=getComputedStyle(t).getPropertyValue("paddingTop"),s=l?parseFloat(l):0,c=t.getBoundingClientRect(),p=n.getBoundingClientRect().top+document.body.scrollTop-(c.top+document.body.scrollTop)-o-s,u=t.scrollTop,g=t.clientHeight,_=this.getOuterHeight(n);p<0?t.scrollTop=u+p:p+_>g&&(t.scrollTop=u+p-g+_)}static fadeIn(t,n){t.style.opacity=0;let a=+new Date,o=0,l=function(){o=+t.style.opacity.replace(",",".")+((new Date).getTime()-a)/n,t.style.opacity=o,a=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(l)||setTimeout(l,16))};l()}static fadeOut(t,n){var a=1,s=50/n;let c=setInterval(()=>{(a-=s)<=0&&(a=0,clearInterval(c)),t.style.opacity=a},50)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,n){var a=Element.prototype;return(a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||function(l){return-1!==[].indexOf.call(document.querySelectorAll(l),this)}).call(t,n)}static getOuterWidth(t,n){let a=t.offsetWidth;if(n){let o=getComputedStyle(t);a+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return a}static getHorizontalPadding(t){let n=getComputedStyle(t);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(t){let n=getComputedStyle(t);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(t){let n=t.offsetWidth,a=getComputedStyle(t);return n+=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight),n}static width(t){let n=t.offsetWidth,a=getComputedStyle(t);return n-=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight),n}static getInnerHeight(t){let n=t.offsetHeight,a=getComputedStyle(t);return n+=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom),n}static getOuterHeight(t,n){let a=t.offsetHeight;if(n){let o=getComputedStyle(t);a+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return a}static getHeight(t){let n=t.offsetHeight,a=getComputedStyle(t);return n-=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)+parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth),n}static getWidth(t){let n=t.offsetWidth,a=getComputedStyle(t);return n-=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)+parseFloat(a.borderLeftWidth)+parseFloat(a.borderRightWidth),n}static getViewport(){let t=window,n=document,a=n.documentElement,o=n.getElementsByTagName("body")[0];return{width:t.innerWidth||a.clientWidth||o.clientWidth,height:t.innerHeight||a.clientHeight||o.clientHeight}}static getOffset(t){var n=t.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,n){let a=t.parentNode;if(!a)throw"Can't replace element";return a.replaceChild(n,t)}static getUserAgent(){return navigator.userAgent}static isIE(){var t=window.navigator.userAgent;return t.indexOf("MSIE ")>0||(t.indexOf("Trident/")>0?(t.indexOf("rv:"),!0):t.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,n){if(this.isElement(n))n.appendChild(t);else{if(!n.el||!n.el.nativeElement)throw"Cannot append "+n+" to "+t;n.el.nativeElement.appendChild(t)}}static removeChild(t,n){if(this.isElement(n))n.removeChild(t);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+t+" from "+n;n.el.nativeElement.removeChild(t)}}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode.removeChild(t)}static isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}static calculateScrollbarWidth(t){if(t){let n=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let a=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=a,a}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let n=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(t,n,a){t[n].apply(t,a)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(t){}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return null===t.offsetParent}static getFocusableElements(t){let n=i.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),a=[];for(let o of n)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&a.push(o);return a}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return i.zindex=1e3,i.calculatedScrollbarWidth=null,i.calculatedScrollbarHeight=null,i})(),be=(()=>{class i{constructor(t){this.el=t,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,ne.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),(this.icon||this.loading)&&this.createIconEl();let t=document.createElement("span");this.icon&&!this.label&&t.setAttribute("aria-hidden","true"),t.className="p-button-label",this.label?t.appendChild(document.createTextNode(this.label)):t.innerHTML=" ",this.el.nativeElement.appendChild(t),this.initialized=!0}getStyleClass(){let t="p-button p-component";return this.icon&&!this.label&&(t+=" p-button-icon-only"),this.loading&&(t+=" p-disabled p-button-loading",!this.icon&&this.label&&(t+=" p-button-loading-label-only")),t}setStyleClass(){let t=this.getStyleClass();this.el.nativeElement.className=t+" "+this._initialStyleClass}createIconEl(){let t=document.createElement("span");t.className="p-button-icon",t.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&ne.addClass(t,n);let a=this.getIconClass();a&&ne.addMultipleClasses(t,a);let o=ne.findSingle(this.el.nativeElement,".p-button-label");o?this.el.nativeElement.insertBefore(t,o):this.el.nativeElement.appendChild(t)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}setIconClass(){let t=ne.findSingle(this.el.nativeElement,".p-button-icon");t?t.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIconEl()}removeIconElement(){let t=ne.findSingle(this.el.nativeElement,".p-button-icon");this.el.nativeElement.removeChild(t)}get label(){return this._label}set label(t){this._label=t,this.initialized&&(ne.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),this.setStyleClass())}get icon(){return this._icon}set icon(t){this._icon=t,this.initialized&&(this.setIconClass(),this.setStyleClass())}get loading(){return this._loading}set loading(t){this._loading=t,this.initialized&&(this.loading||this.icon?this.setIconClass():this.removeIconElement(),this.setStyleClass())}ngOnDestroy(){this.initialized=!1}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(e.ElementRef))},i.\u0275dir=e.\u0275\u0275defineDirective({type:i,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),i})();function kr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.headerUsername.fullName,"\n")}}function Rr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("",t.headerUsername.firstName," ",t.headerUsername.lastName,"")}}let Or=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["al-header-username-af"]],inputs:{headerUsername:"headerUsername"},decls:2,vars:2,consts:[[4,"ngIf"]],template:function(t,n){1&t&&(e.\u0275\u0275template(0,kr,2,1,"span",0),e.\u0275\u0275template(1,Rr,2,2,"span",0)),2&t&&(e.\u0275\u0275property("ngIf","BPO"===n.headerUsername.sourceOfHeaderName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","BPO"!==n.headerUsername.sourceOfHeaderName))},directives:[w.NgIf],encapsulation:2}),i})(),Hr=(()=>{class i{constructor(){this.masPage=!1,this.postAuth=!1,this.isHidePrimaryAccount=!1,this.isHidePrimaryAccountFlag=!1,this.ecsAdmin=!1,this.ecsCssoUser=!1,this.showRolesForEcsCssoUser=!1,this.primaryAccount=!1,this.isLrWithSingleTBAAcct=!1,this.showChangeAccount=!1,this.linkDetails={},this.ecsReadOnlyPageHeading="",this.ecsReadOnlyButtonTextContinue="",this.ecsReadOnlyUserTxt="",this.ecsReadOnlyCustomerTxt="",this.ecsReadOnlyHasUpdtdAcs="",this.ecsReadOnlyNoUpdtdAcs="",this.ecsReadOnlyPageText="",this.userId="",this.isLocked=!1,this.adminUpdateAccess=!1,this.isCBAClient=!1,this.accounts=new Array,this.allLRServiceAccounts=new Array,this.hrbpoRoleAccount=new Array,this.tbaAcctsForDisplay=new Array,this.bpoAcctsForEcsCssoDisplay=new Array}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})(),Qn=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})(),Yn=(()=>{class i{constructor(t,n,a,o,l,s){this.remoteService=t,this.httpService=n,this.genericService=a,this.appUtility=o,this.commonAppService=l,this.idbService=s,this.enableCache=!0,this.temp=!0}getMasDropDownData(t){let n="/channel/foundationwidgets/rolesAndAccountsWidget",a="rolesAndAccountsWidget";null!=t&&""!==t&&(n=n+"?flavor="+t,a=t+a);const o={restOfUrl:"",endPoint:n,isSecure:!0,contentType:"application/json"};return m.LoggingService.uConsole&&console.log("getRolesDatserviceMas - resp"),this.remoteService.getRequest(o,a).pipe(U(l=>l))}clearCacheForSpecificStores(t){m.LoggingService.uConsole&&console.log("clearCacheForSpecificStoresMas"),this.idbService.clearSpecificIDBStores()}lrRemoteCreateAhUserService(t){let n=this.getAppUtilityInstance();m.LoggingService.uConsole&&console.log("Calling liferay remote service for creating AH user\n"),this.createLrAhUser().subscribe(a=>{if(a){m.LoggingService.uConsole&&(console.log("Component: "+a),console.log("Liferay remote service successful\n"));let o=window.location.href;if(t){let l=this.commonAppService.routeToAngularPage(t,event);if(m.LoggingService.uConsole&&console.log("isredirectHREF: "+l),!1===n.isLiferay()&&!0===l&&o.indexOf("/web/")>-1&&t.indexOf("/web/")>-1){let s=this.commonAppService.getUrlParameter("linkId",o),c=this.commonAppService.getUrlParameter("linkId",t);null!==s&&null!==c&&s===c&&window.location.reload()}this.temp&&(l||(window.location.href=t))}}},a=>{m.LoggingService.uConsole&&console.log("Error:",a)})}createLrAhUser(){try{this.deleteCookieQSIHistory()}catch(n){}return sessionStorage.getItem("IS_FED_APP_ENABLED")?new X.Observable(n=>{n.next("Success: AHUser Created successfully.::")}):this.remoteService.request("get",{restOfUrl:"",endPoint:this.genericService.getUpointNextUrl()+"/api/jsonws/ah-corelrusersession-portlet/create-ahuser",isSecure:!0,contentType:"application/json"}).pipe(U(n=>n))}populateData(t,n,a,o){if(m.LoggingService.uConsole&&console.log("populateData - userData",t),n.postAuth=this.isAfOnlyPostAuth(),m.LoggingService.uConsole&&console.log("beforePostAuthpopulateData - userData",n.postAuth),n.postAuth){m.LoggingService.uConsole&&console.log("PostAuthpopulateData - userData",n.postAuth),n.ecsAdmin=t.isEcsAdmin,n.activeBusinessAccountsAvailable=t.hasActiveRole,n.ecsCssoUser=t.isEcsCSSO,n.showRolesForEcsCssoUser=t.showRolesForEcsCssoUser,n.fullName=t.fullName,n.firstName=t.firstName,n.lastName=t.lastName,n.primaryAccount=t.primaryAccount,n.accTypeHolder=t.selectedRole,t.hasOwnProperty("isHidePrimaryAccount")&&(n.isHidePrimaryAccount=t.isHidePrimaryAccount,n.isHidePrimaryAccountFlag=!0),n.linkDetails=t.linkDetails,t.linkDetails.hasOwnProperty("accounts")&&this.evaluateAccountAssetAsArray(n,"accounts",t.linkDetails.accounts,a,o),t.linkDetails.hasOwnProperty("roles")&&this.evaluateAccountAssetAsArray(n,"hrbpoRoleAccount",t.linkDetails.roles,a,o),t.linkDetails.hasOwnProperty("additionalLinks")&&this.evaluateAccountAssetAsArray(n,"allLRServiceAccounts",t.linkDetails.additionalLinks,a,o),t.linkDetails.hasOwnProperty("ecsAccounts")&&this.evaluateAccountAssetAsArray(n,"tbaAcctsForDisplay",t.linkDetails.ecsAccounts,a,o),t.linkDetails.hasOwnProperty("ecsRoles")&&this.evaluateAccountAssetAsArray(n,"bpoAcctsForEcsCssoDisplay",t.linkDetails.ecsRoles,a,o),this.replaceNamespace(n);let l=0,s=0;null!=n.accounts&&(l+=n.accounts.length,s+=n.accounts.length),null!=n.hrbpoRoleAccount&&(l+=n.hrbpoRoleAccount.length,s+=n.hrbpoRoleAccount.length),null!=n.allLRServiceAccounts&&(l+=n.allLRServiceAccounts.length,s+=n.allLRServiceAccounts.length),n.noOfAccountWithLR=l,n.showChangeAccount=s>1,n.isLrWithSingleTBAAcct=(null===n.hrbpoRoleAccount||null!=n.hrbpoRoleAccount&&0===n.hrbpoRoleAccount.length)&&null!=n.allLRServiceAccounts&&n.allLRServiceAccounts.length>0&&null!=n.accounts&&1===n.accounts.length,n.sourceOfHeaderName=t.headerFullNameSource,n.l_accounts=t.accountLabel,n.l_roles=t.roleLabel,n.ecsAdmin&&(n.ecsReadOnlyCustomerTxt=t.ecsReadOnlyCustomerTxt,n.adminUpdateAccess=t.adminUpdateAccess,n.isLocked=t.isLocked,n.userId=t.userType,n.ecsReadOnlyButtonTextContinue=t.ecsReadOnlyButtonTextContinue,n.ecsReadOnlyHasUpdtdAcs=t.ecsReadOnlyHasUpdtdAcs,n.ecsReadOnlyNoUpdtdAcs=t.ecsReadOnlyNoUpdtdAcs,n.ecsReadOnlyPageHeading=t.ecsReadOnlyPageHeading,n.ecsReadOnlyPageText=t.ecsReadOnlyPageText,n.ecsReadOnlyUserTxt=t.ecsReadOnlyUserTxt),n.isCBAClient=t.isCBAClient}}evaluateAccountAssetAsArray(t,n,a,o,l){if(null!=a){const s=new Array;for(let c=0;c"+p),d.link=p,d.isSelected=a[c].selected,d.roleId=a[c].roleId,d.accountId=a[c].accountId,d.id=a[c].id,s.push(d)}this.setProperty(t,n,s)}}setProperty(t,n,a){t[n]=a}replaceNamespace(t){const n=new Array,a=t.allLRServiceAccounts;if(null!==a&&a.length>0){const o=/\${portletnamespace}/gi;try{for(let l=0;l{let n,a=0;n=setInterval(()=>{a+=1,a>350?clearInterval(n):sessionStorage.getItem("indexdbCleared")&&"true"===sessionStorage.getItem("indexdbCleared")&&(clearInterval(n),sessionStorage.removeItem("indexdbCleared"),t.next("true"))},50)})}deleteCookieQSIHistory(){let t=this.readCookie("QSI_HistorySession");console.log("isQSIHistorySessionExist"+t),t&&this.setCookie("QSI_HistorySession","",365)}readCookie(t){let n=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return n?n[2]:null}setCookie(t,n,a){let o="";if(a){let l=new Date;l.setTime(l.getTime()+24*a*60*60*1e3),o="; expires="+l.toUTCString()}document.cookie=t+"="+(n||"")+o+"; path=/"}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(m.RemoteService),e.\u0275\u0275inject(se.HttpClient),e.\u0275\u0275inject(m.GenericService),e.\u0275\u0275inject(m.AppUtility),e.\u0275\u0275inject(m.CommonAppService),e.\u0275\u0275inject(m.IDBService))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})(),Jn=(()=>{class i{constructor(t){this.appUtility=t}setDropDownPosition(t,n){if(t&&n){const a=n,o=t.target||t.srcElement;a&&a.removeAttribute("style"),a&&a.classList.contains("hidden")&&a.classList.remove("hidden");const l=o.getBoundingClientRect(),s=a.getBoundingClientRect();a.style.left="al-roll"===n.id&&a?o.offsetLeft+o.offsetWidth/2-a.offsetWidth/2+"px":o.clientLeft+o.offsetWidth/2-a.offsetWidth/2+"px";let c=a.offsetLeft.toString();c=c.substring(1,c.length),document.querySelector("html").classList.contains("ui-rtl")&&s.width+s.left>window.document.body.getBoundingClientRect().width&&(a.style.left=-(s.width+s.left-(window.document.body.getBoundingClientRect().width-1))+"px"),parseInt(l.left,10){p.focus()},0),n&&n.addEventListener("keydown",_=>{const h=_.target;if(_.key===c&&(_.preventDefault(),h.parentElement.nextElementSibling&&null!=h.parentElement.nextElementSibling.firstElementChild?h.parentElement.nextElementSibling.firstElementChild.focus():p.focus()),_.key===d&&(_.preventDefault(),h.parentElement.previousElementSibling&&null!=h.parentElement.previousElementSibling.firstElementChild?h.parentElement.previousElementSibling.firstElementChild.focus():g.focus()),"Tab"===_.key&&_.shiftKey){const f=this.appUtility.findClosest(h,"BY_CLASS",".subNav");f&&f.setAttribute("tabindex",0)}n.removeEventListener(_.type,()=>{},!0)})}}hideAuxNavOnKeydown(t,n){t.addEventListener("keydown",a=>{27===a.which||9===a.which&&a.shiftKey?(t.classList.add("hidden"),setTimeout(()=>{n.target.focus()},0)):9===a.which&&!a.shiftKey&&(t.classList.add("hidden"),this.getNextFocusableElement(document.querySelector(".al-primary-nav-none"),n)),t.removeEventListener(a.type,function(){},!0)})}getNextFocusableElement(t,n){if(t&&t.nextElementSibling&&this.isElementVisible(t)&&!n.shiftKey)if("al-primary-nav"===t.id&&this.isElementVisible(document.querySelector('#ULsubNav[tabindex="0"]')))setTimeout(function(){document.querySelector('#ULsubNav[tabindex="0"]').focus()},0);else{let a;a=this.isElementVisible(t.nextElementSibling)||"AL-APP-NAVIGATION"===t.nextElementSibling.nodeName?t.nextElementSibling:document.querySelector(".ah-breadcrumb-utility-wrapper")?document.querySelector(".ah-breadcrumb-utility-wrapper"):document.querySelector("#content"),a=a.querySelectorAll("a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])");for(let o of a)if(this.isElementVisible(o)){setTimeout(function(){o.focus()},0);break}}}getAppUtilityObj(){return this.appUtility}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275inject(m.AppUtility))},i.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})(),Mr=(()=>{class i{constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(z.DomSanitizer,16))},i.\u0275pipe=e.\u0275\u0275definePipe({name:"escapeHtmlPipe",type:i,pure:!0}),i})();const Fr=["alheaderAldialogAf"];function Dr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" - ",t.header.accTypeHolder," ")}}function Ur(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",23),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function Br(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275elementStart(1,"p",10),e.\u0275\u0275elementStart(2,"span",11),e.\u0275\u0275elementStart(3,"span",12),e.\u0275\u0275listener("click",function(a){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).toggleLeftMenu(a)}),e.\u0275\u0275elementStart(4,"a",13),e.\u0275\u0275element(5,"al-header-username-af",14),e.\u0275\u0275template(6,Dr,2,1,"span",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",16),e.\u0275\u0275elementStart(8,"div",17),e.\u0275\u0275element(9,"div",18),e.\u0275\u0275element(10,"div",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"ul",20),e.\u0275\u0275template(12,Ur,2,5,"li",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(5),e.\u0275\u0275property("headerUsername",t.header),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.primaryAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",t.leftMenuFlag),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",t.header.allLRServiceAccounts)}}function jr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" - ",t.header.accTypeHolder," ")}}function qr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275elementStart(1,"span"),e.\u0275\u0275elementStart(2,"p",24),e.\u0275\u0275elementStart(3,"b",25),e.\u0275\u0275element(4,"al-header-username-af",14),e.\u0275\u0275template(5,jr,2,1,"span",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(4),e.\u0275\u0275property("headerUsername",t.header),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.primaryAccount)}}function Vr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",9),e.\u0275\u0275template(1,Br,13,4,"span",1),e.\u0275\u0275template(2,qr,6,2,"span",1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0))}}function Gr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"li",40),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(7);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",t.header.l_roles," ")}}function zr(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",23),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function Wr(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,zr,2,5,"li",21),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(7);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.hrbpoRoleAccount)}}function Kr(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",42),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function $r(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Kr,2,5,"li",41),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(7);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.bpoAcctsForEcsCssoDisplay)}}function Qr(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",23),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function Yr(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Qr,2,5,"li",21),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(7);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.allLRServiceAccounts)}}function Jr(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",23),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function Xr(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Jr,2,5,"li",21),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(7);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.allLRServiceAccounts)}}function Zr(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"li",40),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(7);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.header.l_accounts," ")}}function eo(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",23),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function to(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"p",31),e.\u0275\u0275elementStart(2,"span",32),e.\u0275\u0275elementStart(3,"b",33),e.\u0275\u0275element(4,"al-header-username-af",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span",34),e.\u0275\u0275text(6," \xa0-\xa0 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span",35),e.\u0275\u0275elementStart(8,"a",36),e.\u0275\u0275listener("click",function(a){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).toggleLeftMenu(a)}),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",37),e.\u0275\u0275elementStart(11,"div",17),e.\u0275\u0275element(12,"div",18),e.\u0275\u0275element(13,"div",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"ul",38),e.\u0275\u0275template(15,Gr,2,1,"li",39),e.\u0275\u0275template(16,Wr,2,1,"ng-container",1),e.\u0275\u0275template(17,$r,2,1,"ng-container",1),e.\u0275\u0275template(18,Yr,2,1,"ng-container",1),e.\u0275\u0275template(19,Xr,2,1,"ng-container",1),e.\u0275\u0275template(20,Zr,2,1,"li",39),e.\u0275\u0275template(21,eo,2,5,"li",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const t=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(4),e.\u0275\u0275property("headerUsername",t.header),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(t.header.accTypeHolder),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",t.leftMenuFlag),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",t.header.accounts&&t.header.accounts.length>0&&(t.header.hrbpoRoleAccount&&t.header.hrbpoRoleAccount.length>0||t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0)&&!t.header.isLrWithSingleTBAAcct),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.ecsCssoUser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.header.ecsCssoUser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.ecsCssoUser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.header.ecsCssoUser&&t.header.isCBAClient),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.header.accounts&&t.header.accounts.length>0&&(t.header.hrbpoRoleAccount&&t.header.hrbpoRoleAccount.length>0||t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0)&&!t.header.isLrWithSingleTBAAcct),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.tbaAcctsForDisplay)}}function no(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(9);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" - ",t.header.accTypeHolder,"")}}function io(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",23),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function ao(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"p",44),e.\u0275\u0275elementStart(2,"span",45),e.\u0275\u0275elementStart(3,"span",35),e.\u0275\u0275elementStart(4,"a",46),e.\u0275\u0275listener("click",function(a){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(8).toggleLeftMenu(a)}),e.\u0275\u0275element(5,"al-header-username-af",14),e.\u0275\u0275template(6,no,2,1,"span",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",47),e.\u0275\u0275elementStart(8,"div",17),e.\u0275\u0275element(9,"div",18),e.\u0275\u0275element(10,"div",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"ul",38),e.\u0275\u0275template(12,io,2,5,"li",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const t=e.\u0275\u0275nextContext(8);e.\u0275\u0275advance(5),e.\u0275\u0275property("headerUsername",t.header),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.header.primaryAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",t.leftMenuFlag),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",t.header.allLRServiceAccounts)}}function ro(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",22),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(9);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" - ",t.header.accTypeHolder," ")}}function oo(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"p",48),e.\u0275\u0275elementStart(1,"b",25),e.\u0275\u0275element(2,"al-header-username-af",14),e.\u0275\u0275template(3,ro,2,1,"span",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(8);e.\u0275\u0275advance(2),e.\u0275\u0275property("headerUsername",t.header),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.primaryAccount)}}function lo(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ao,13,4,"ng-container",29),e.\u0275\u0275template(2,oo,4,2,"ng-template",null,43,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275reference(3),n=e.\u0275\u0275nextContext(7);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=n.header.allLRServiceAccounts&&n.header.allLRServiceAccounts.length>0)("ngIfElse",t)}}function so(i,r){if(1&i&&e.\u0275\u0275template(0,lo,4,2,"ng-container",1),2&i){const t=e.\u0275\u0275nextContext(6);e.\u0275\u0275property("ngIf",!t.header.ecsCssoUser)}}function co(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",28),e.\u0275\u0275template(1,to,22,10,"ng-container",29),e.\u0275\u0275template(2,so,1,1,"ng-template",null,30,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275reference(3),n=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n.header.ecsCssoUser&&n.header.noOfAccountWithLR>1||n.header.ecsCssoUser&&(n.header.showRolesForEcsCssoUser||n.header.isCBAClient))("ngIfElse",t)}}function po(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,co,4,2,"span",27),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(!t.header.ecsAdmin||t.header.ecsAdmin&&t.header.activeBusinessAccountsAvailable)&&(null!=t.header.hrbpoRoleAccount&&t.header.hrbpoRoleAccount.length>0||null!=t.header.accounts&&t.header.accounts.length>0))}}function mo(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",49),e.\u0275\u0275elementStart(1,"p",50),e.\u0275\u0275elementStart(2,"b",25),e.\u0275\u0275element(3,"al-header-username-af",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(3),e.\u0275\u0275property("headerUsername",t.header)}}function uo(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,mo,4,1,"span",3),e.\u0275\u0275elementContainerEnd()),2&i){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.header.hrbpoRoleAccount&&0==t.header.hrbpoRoleAccount.length&&null!=t.header.accounts&&0==t.header.accounts.length&&null!=t.header.allLRServiceAccounts&&0==t.header.allLRServiceAccounts.length&&0==t.header.noOfAccountWithLR)}}function go(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",26),e.\u0275\u0275template(1,po,2,1,"ng-container",1),e.\u0275\u0275template(2,uo,2,1,"ng-container",1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.ecsCssoUser||t.header.ecsCssoUser&&(t.header.showRolesForEcsCssoUser||t.header.isCBAClient)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.ecsAdmin||t.header.ecsAdmin&&t.header.activeBusinessAccountsAvailable)}}function ho(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275template(1,Vr,3,2,"span",7),e.\u0275\u0275template(2,go,3,2,"span",8),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.header.showChangeAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.header.showChangeAccount)}}function _o(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275elementStart(1,"p",51),e.\u0275\u0275elementStart(2,"b",25),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",t.header.lastName,", ",t.header.firstName,"")}}function fo(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",23),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit;e.\u0275\u0275classProp("selected",t.isSelected),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,3,t.link),e.\u0275\u0275sanitizeHtml)}}function vo(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275elementStart(1,"p",10),e.\u0275\u0275elementStart(2,"span",52),e.\u0275\u0275elementStart(3,"span",35),e.\u0275\u0275elementStart(4,"a",46),e.\u0275\u0275listener("click",function(a){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).toggleLeftMenu(a)}),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",47),e.\u0275\u0275elementStart(7,"div",17),e.\u0275\u0275element(8,"div",18),e.\u0275\u0275element(9,"div",19),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"ul",38),e.\u0275\u0275template(11,fo,2,5,"li",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate3(" ",t.header.lastName,", ",t.header.firstName," - ",t.header.accTypeHolder," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",t.leftMenuFlag),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",t.header.allLRServiceAccounts)}}function yo(i,r){1&i&&e.\u0275\u0275element(0,"span")}function So(i,r){1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"p"),e.\u0275\u0275text(2,"\xa0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd())}function bo(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275template(1,vo,12,5,"span",1),e.\u0275\u0275template(2,yo,1,0,"span",1),e.\u0275\u0275template(3,So,3,0,"ng-container",1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0&&!t.header.ecsAdmin),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=t.header.allLRServiceAccounts&&0===t.header.allLRServiceAccounts.length&&!t.header.ecsAdmin)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!0===t.isAfOnlyPreAuth)}}function Co(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"span",49),e.\u0275\u0275template(1,_o,4,2,"span",1),e.\u0275\u0275template(2,bo,4,3,"span",1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.header.postAuth&&null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length<2&&!t.header.ecsAdmin),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(t.header.postAuth&&null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length<2&&!t.header.ecsAdmin))}}function xo(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275template(1,ho,3,2,"span",1),e.\u0275\u0275template(2,Co,3,2,"span",3),e.\u0275\u0275elementStart(3,"al-dialog",4,5),e.\u0275\u0275elementStart(5,"h3"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"p"),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"button",6),e.\u0275\u0275listener("click",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return o.masHideDialogRedirect(a,o.masLocationHrefAF)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.header.postAuth&&(!t.header.ecsAdmin||t.header.ecsAdmin&&t.header.activeBusinessAccountsAvailable)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(t.header.postAuth&&(!t.header.ecsAdmin||t.header.ecsAdmin&&t.header.activeBusinessAccountsAvailable))),e.\u0275\u0275advance(1),e.\u0275\u0275property("showHeader",!1)("showFooter",!0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.header.ecsReadOnlyPageHeading),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.masDialogContentAF),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",t.header.ecsReadOnlyButtonTextContinue,e.\u0275\u0275sanitizeHtml)}}function Ao(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"h5",61),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.thriveHeaderRolesTxt)}}function wo(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"h5",62),e.\u0275\u0275listener("click",function(a){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).toggleClick(a)}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.thriveHeaderRolesTxt)}}function Eo(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",63),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",n.showAccounts?"tds-profile__link":"tds-footer__link")("innerHTML",e.\u0275\u0275pipeBind1(1,2,t.link),e.\u0275\u0275sanitizeHtml)}}function To(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",63),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",n.showAccounts?"tds-profile__link":"tds-footer__link")("innerHTML",e.\u0275\u0275pipeBind1(1,2,t.link),e.\u0275\u0275sanitizeHtml)}}function Io(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"div",56),e.\u0275\u0275template(1,Ao,2,1,"h5",57),e.\u0275\u0275template(2,wo,2,1,"h5",58),e.\u0275\u0275elementStart(3,"ul",59),e.\u0275\u0275template(4,Eo,2,4,"li",60),e.\u0275\u0275template(5,To,2,4,"li",60),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",t.showAccounts?"tds-profile__linkgroup":"tds-footer__linkgroup"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showAccounts),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.showAccounts),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",t.showAccounts?"tds-profile__links":"tds-footer__links"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.hrbpoRoleAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.allLRServiceAccounts)}}function No(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",68),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,1,t.header.accounts[0].link),e.\u0275\u0275sanitizeHtml)}}function Lo(i,r){1&i&&(e.\u0275\u0275element(0,"li",68),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i&&e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,1,r.$implicit.link),e.\u0275\u0275sanitizeHtml)}function Po(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"div",64),e.\u0275\u0275elementStart(1,"h5",61),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"ul",65),e.\u0275\u0275template(4,No,2,3,"li",66),e.\u0275\u0275template(5,Lo,2,3,"li",67),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.thriveHederAccountsTxt),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0&&(null===t.header.hrbpoRoleAccount||0===t.header.hrbpoRoleAccount.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.tbaAcctsForDisplay)}}function ko(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Io,6,6,"div",53),e.\u0275\u0275template(2,Po,6,3,"div",54),e.\u0275\u0275elementStart(3,"al-dialog",55,5),e.\u0275\u0275elementStart(5,"h3"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"p"),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"button",6),e.\u0275\u0275listener("click",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return o.masHideDialogRedirect(a,o.masLocationHrefAF)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.header.hrbpoRoleAccount&&t.header.hrbpoRoleAccount.length>1||null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showAccounts&&t.header.showChangeAccount&&(null!=t.header.tbaAcctsForDisplay&&t.header.tbaAcctsForDisplay.length>0||null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0&&(null===t.header.hrbpoRoleAccount||0===t.header.hrbpoRoleAccount.length))),e.\u0275\u0275advance(1),e.\u0275\u0275property("showHeader",!1)("showFooter",!1),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.header.ecsReadOnlyPageHeading),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.masDialogContentAF),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",t.header.ecsReadOnlyButtonTextContinue,e.\u0275\u0275sanitizeHtml)}}function Ro(i,r){1&i&&(e.\u0275\u0275element(0,"li",68),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i&&e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,1,r.$implicit.link),e.\u0275\u0275sanitizeHtml)}function Oo(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"div",64),e.\u0275\u0275elementStart(1,"ul",65),e.\u0275\u0275template(2,Ro,2,3,"li",67),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.header.bpoAcctsForEcsCssoDisplay)}}function Ho(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Oo,3,1,"div",54),e.\u0275\u0275elementStart(2,"al-dialog",69,5),e.\u0275\u0275elementStart(4,"h3"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"p"),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",6),e.\u0275\u0275listener("click",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return o.masHideDialogRedirect(a,o.masLocationHrefAF)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.header.bpoAcctsForEcsCssoDisplay&&t.header.bpoAcctsForEcsCssoDisplay.length>1),e.\u0275\u0275advance(1),e.\u0275\u0275property("showHeader",!1)("showFooter",!1),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.header.ecsReadOnlyPageHeading),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.masDialogContentAF),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",t.header.ecsReadOnlyButtonTextContinue,e.\u0275\u0275sanitizeHtml)}}function Mo(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",63),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=r.$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",n.showAccounts?"tds-profile__link":"tds-footer__link")("innerHTML",e.\u0275\u0275pipeBind1(1,2,t.link),e.\u0275\u0275sanitizeHtml)}}function Fo(i,r){if(1&i&&(e.\u0275\u0275element(0,"li",63),e.\u0275\u0275pipe(1,"escapeHtmlPipe")),2&i){const t=e.\u0275\u0275nextContext().$implicit,n=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",n.showAccounts?"tds-profile__link":"tds-footer__link")("innerHTML",e.\u0275\u0275pipeBind1(1,2,t.link),e.\u0275\u0275sanitizeHtml)}}function Do(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Fo,2,4,"li",71),e.\u0275\u0275elementContainerEnd()),2&i){const t=r.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","P_LR"!==t.accountId)}}function Uo(i,r){if(1&i&&(e.\u0275\u0275elementStart(0,"div",56),e.\u0275\u0275elementStart(1,"h5",56),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"ul",59),e.\u0275\u0275template(4,Mo,2,4,"li",60),e.\u0275\u0275template(5,Do,2,1,"ng-container",70),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd()),2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",t.showAccounts?"tds-profile__linkgroup":"tds-footer__linkgroup"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",t.showAccounts?"tds-profile__title":"tds-footer__title"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.thriveHeaderRolesTxt),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",t.showAccounts?"tds-profile__links":"tds-footer__links"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.hrbpoRoleAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.header.allLRServiceAccounts)}}function Bo(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Uo,6,6,"div",53),e.\u0275\u0275elementStart(2,"al-dialog",69,5),e.\u0275\u0275elementStart(4,"h3"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"p"),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",6),e.\u0275\u0275listener("click",function(a){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return o.masHideDialogRedirect(a,o.masLocationHrefAF)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&i){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null!=t.header.hrbpoRoleAccount&&t.header.hrbpoRoleAccount.length>1||null!=t.header.allLRServiceAccounts&&t.header.allLRServiceAccounts.length>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("showHeader",!1)("showFooter",!1),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.header.ecsReadOnlyPageHeading),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.masDialogContentAF),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",t.header.ecsReadOnlyButtonTextContinue,e.\u0275\u0275sanitizeHtml)}}let Xn=(()=>{class i{constructor(t,n,a,o,l,s,c){this.h2Service=t,this.domStorageService=n,this.logService=a,this._elementRef=o,this.renderer=l,this.brandingService=s,this.rolesAccountsUtilService=c,this.leftMenuFlag=!0,this.header=new Hr,this.masDialogContentAF="",this.temp=!0,this.masLocationHrefAF="",this.enableIsLockedAnchorflag=!1,this.enableHRAccountServiceflag=!1,this.enableLRAccountServiceflag=!1,this.ALIGHT_REQUEST_HEADER="alightRequestHeader",this.ORIGINATOR_COLON="originator::",this.ACC_HRBPO_KEY="MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::HRBPO",this.ACC_TBA_KEY="MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::TBA",this.IS_HIDE_KEY="IS_HIDE_PRIMARY_ACCOUNT_IN_MAS_DROP_DOWN::",this.dropDownToggle=new e.EventEmitter,this.isLockedEmit=new e.EventEmitter,this.showAccounts=!1,this.currentUrl=window.location.href,this.isAuthAfMasEnabled=!1}ngOnInit(){this.flavor=this._elementRef.nativeElement.getAttribute("flavor"),this.displayType=this._elementRef.nativeElement.getAttribute("displayType"),this.headerType=this._elementRef.nativeElement.getAttribute("headerType"),this.showAccounts=this._elementRef.nativeElement.getAttribute("showAccounts"),null!=this.currentUrl&&this.currentUrl.indexOf("client-tooling-"),m.LoggingService.uConsole&&(console.log("headerType------\x3e",this.headerType),console.log("displayType------\x3e",this.displayType),console.log("Mas Component - () - start")),this.getRolesData()}ngAfterViewChecked(){!1===this.enableIsLockedAnchorflag&&this.enableIsLockedAnchor(),!1===this.enableHRAccountServiceflag&&this.bindEventOnHRServiceAccount(),!1===this.enableLRAccountServiceflag&&this.bindEventOnLRServiceAccount()}ngAfterViewInit(){}enableIsLockedAnchor(){!0===this.temp&&(this.links1=this._elementRef.nativeElement.querySelectorAll("a.bindIsLockedAnchor"));let t=this.links1;if(null!==t&&t.length>0){m.LoggingService.uConsole&&console.log("Header Component - enableIsLockedAnchor() - start");for(let n=0;n{this.getAfMasEligibility();let o=t[n].getAttribute("id"),l=t[n].getAttribute("href"),s=this.getLinkDetails(o),c=s.roleId,p=s.accountId.split("::");!0===this.isAuthAfMasEnabled?this.onClickAfMAS(p[0],a):(this.setDomStorageItem("mrid",c,"",!0),this.setDomStorageItem("mhref",l,"",!0),null!=this.currentUrl&&this.currentUrl.indexOf("client-tooling-")>-1?(this.isPageRefresh(!0),this.lockedDialog(t[n].attributes.getNamedItem("href").value,p[1],a)):this.isLockedMas(p[0],p[1],t[n].attributes.getNamedItem("href").value,a))});this.enableIsLockedAnchorflag=!0}}onClickAfMAS(t,n){try{m.LoggingService.uConsole&&console.log("Header Component - onClickAfMAS() - start"),n.preventDefault(),n.stopImmediatePropagation();let a=t,o=JSON.parse(this.domStorageService.getItem("alightRequestHeader"));if(o.roleId&&a){let s=o.roleId.split("-")[1].split(":")[0];o.roleId=o.roleId.replace(s,a)}this.domStorageService.setItem("alightRequestHeader",JSON.stringify(o));let l=this.domStorageService.getItem("IS_AUTHFLOW_CLOUD");!0===l||"true"===l?window.location.reload():(m.LoggingService.uConsole&&console.log("Header Component - onClickAfMAS() - Calling liferay remote service for creating/updating AH user"),this.removeOriginatorInArh(),this.h2Service.createLrAhUser().subscribe(c=>{if(c){let d=c;null!=d&&"string"==typeof d&&d.indexOf("::LAST_LOGIN:")>=0&&(d=d.substring(d.indexOf("::LAST_LOGIN:")+13,d.length),d=d.substring(0,d.indexOf("::")),this.domStorageService.setItem("last_login",d)),m.LoggingService.uConsole&&(console.log("Header Component - onClickAfMAS() - createLrAhUser - response:"+c),console.log("Header Component - onClickAfMAS() - createLrAhUser - successful"))}else m.LoggingService.uConsole&&console.log("Header Component - onClickAfMAS() - createLrAhUser - No response");window.location.reload()},c=>{m.LoggingService.uConsole&&(console.log("Header Component - onClickAfMAS() - createLrAhUser - exception is - ",c),console.log("Error:",c)),window.location.reload()}))}catch(a){m.LoggingService.uConsole&&console.log("Header Component - onClickAfMAS() - error",a)}}getLinkDetails(t){for(let n of Object.keys(this.header.linkDetails))for(let a of Object.keys(this.header.linkDetails[n]))if(t===this.header.linkDetails[n][a].id)return this.header.linkDetails[n][a];return null}isLockedMas(t,n,a,o){m.LoggingService.uConsole&&console.log("isLockedMas()"),this.isLockedEmit.emit({masE:t,masoriginator:n,masobject:a,event:o})}isPageRefresh(t){this.h2Service.clearCacheForSpecificStores(t)}bindEventOnHRServiceAccount(){!0===this.temp&&(this.hrbpoServiceAccount1=this._elementRef.nativeElement.querySelectorAll("a[href*='prsnRsnCd=hrbporole']"));let t=this.hrbpoServiceAccount1;if(null!==t&&t.length>0){m.LoggingService.uConsole&&console.log("Header Component - bindEventOnHRServiceAccount() - start");for(let n=0;n{this.isPageRefresh(!0);let a=t[n].getAttribute("id"),o=t[n].getAttribute("href"),s=this.getLinkDetails(a).roleId;event.preventDefault(),event.stopImmediatePropagation(),this.setDomStorageItem("mhref",o,"",!0),this.updateHRBPORoleIdForARH(s)});this.enableHRAccountServiceflag=!0}}updateisHidePrimaryAccount(t){if(!0===this.header.isHidePrimaryAccountFlag){let n=this.IS_HIDE_KEY+this.header.isHidePrimaryAccount;if(t.indexOf("IS_HIDE_PRIMARY_ACCOUNT_IN_MAS_DROP_DOWN")>-1){let a=this.IS_HIDE_KEY;t.indexOf("IS_HIDE_PRIMARY_ACCOUNT_IN_MAS_DROP_DOWN::false")>-1&&(a+="false"),t.indexOf("IS_HIDE_PRIMARY_ACCOUNT_IN_MAS_DROP_DOWN::true")>-1&&(a+="true"),t=t.replace(a,n)}}return t}updateHRBPORoleIdForARH(t){m.LoggingService.uConsole&&console.log("HeaderUtil >> updateHRBPORoleIdForARH() >> Enter"),this.removeDomStorageItem("moid","",!0);let n=t,a=JSON.parse(this.domStorageService.getItem(this.ALIGHT_REQUEST_HEADER));if(a.roleId=n,a.channelRequestData){let l=a.channelRequestData;l.indexOf("MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::TBA")>-1?l=l.replace(/\MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::TBA/gi,this.ACC_HRBPO_KEY):l.indexOf(this.ACC_HRBPO_KEY)<=-1&&(l=l+this.ACC_HRBPO_KEY+"::"),l=this.updateisHidePrimaryAccount(l),a.channelRequestData=l;let s=this.getDataFromRequestHeader(l,this.ORIGINATOR_COLON);if(s&&""!==s){const d=new RegExp(s+"::");l=l.replace(d,"")}a.channelRequestData=l;let c=this.getDataFromRequestHeader(l,"com.aonhewitt.upoint.psp.integration.masrolecd::");if(c&&""!==c){const d=new RegExp(c+"::");l=l.replace(d,"")}a.channelRequestData=l,l=this.updateUrlForRequestHeader(l),a.channelRequestData=l}let o=this.getDomStorageItem("mhref");this.removeDomStorageItem("mhref","",!0),m.LoggingService.uConsole&&console.log("HeaderUtil >> updateHRBPORoleIdForARH() >> Exit value: "+JSON.stringify(a)),this.setDomStorageItem(this.ALIGHT_REQUEST_HEADER,JSON.stringify(a),"",!0),this.h2Service.lrRemoteCreateAhUserService(o)}updateLrServiceAccRoleIdForARH(t,n){m.LoggingService.uConsole&&console.log("HeaderUtil >> updateLrServiceAccRoleIdForARH() >> Enter"),this.removeDomStorageItem("moid","",!0);let o=JSON.parse(this.domStorageService.getItem(this.ALIGHT_REQUEST_HEADER));if(o.channelRequestData){let s=o.channelRequestData;s.indexOf("MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::TBA::")>-1&&(s=s.replace(/\MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::TBA::/gi,"")),s.indexOf("MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::HRBPO::")>-1&&(s=s.replace(/\MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::HRBPO::/gi,"")),o.channelRequestData=s;let c=this.getDataFromRequestHeader(s,this.ORIGINATOR_COLON);if(c&&""!==c){const p=new RegExp(c+"::");s=s.replace(p,"")}let d=this.getDataFromRequestHeader(s,"com.aonhewitt.upoint.psp.integration.masrolecd::");if(d&&""!==d){const p=new RegExp(d+"::");s=s.replace(p,"")}s=s+"com.aonhewitt.upoint.psp.integration.masrolecd::"+t+"::",o.channelRequestData=s,s=this.updateisHidePrimaryAccount(s),s=this.updateUrlForRequestHeader(s),o.channelRequestData=s}let l=this.getDomStorageItem("mhref");this.removeDomStorageItem("mhref","",!0),m.LoggingService.uConsole&&console.log("HeaderUtil >> updateHRBPOupdatElrForARHRoleIdForARH() >> Exit value: "+JSON.stringify(o)),this.setDomStorageItem(this.ALIGHT_REQUEST_HEADER,JSON.stringify(o),"",!0),this.h2Service.lrRemoteCreateAhUserService(l)}updateUrlForRequestHeader(t){let n=this.getDataFromRequestHeader(t,"URL::");if(n&&""!==n){let a=this.createURLForARH();m.LoggingService.uConsole&&console.log("newURL"+a),this.removeDomStorageItem("URL","",!0),t=t.replace(n,"URL::"+a)}return t}getDataFromRequestHeader(t,n){let a=n;if(t.indexOf(a)>-1){let o=a.length,l=t.indexOf(a),s=t.indexOf("::",l+o+2),d=a+t.substring(l+o,s);return m.LoggingService.uConsole&&console.log("HeaderUtil >> getDataFromRequestHeader() >> "+d),d}return""}getDomStorageServiceInstance(){return this.domStorageService}getDomStorageItem(t){let n=this.getDomStorageServiceInstance().getItem(t);return m.LoggingService.uConsole&&console.log("HeaderUtil >> getDomStorageItem() >> key: "+t+" | value: "+n),n}setDomStorageItem(t,n,a,o){this.getDomStorageServiceInstance().setItem(t,n,a,o)}removeDomStorageItem(t,n,a){this.getDomStorageServiceInstance().removeItem(t,n,a)}createURLForARH(){let t="",n=this.getDomStorageItem("mhref"),a=n.split("?");if(a&&null!==a&&a.length>0){let o=this.getQueryParamValue("linkId",n),l=a[0].split("/");l&&null!==l&&l.length>0&&(t=l[l.length-1]+"?linkId="+o);let s=this.getQueryParamValue("prsnRsnCd",n);null!==s&&(t=t+"&prsnRsnCd="+s);let c=this.getQueryParamValue("masRoleCd",n);null!==c&&(t=t+"&masRoleCd="+c)}return m.LoggingService.uConsole&&console.log("HeaderUtil >> createURLForARH() >> Enter "+t),t}getQueryParamValue(t,n){let a=n,l=new RegExp("[?&]"+t+"=([^]*)","i").exec(a);return l?l[1]:null}bindEventOnLRServiceAccount(){!0===this.temp&&(this.lrServiceAccount1=this._elementRef.nativeElement.querySelectorAll("a[href*='masRoleCd=']"));let t=this.lrServiceAccount1;if(null!==t&&t.length>0){m.LoggingService.uConsole&&console.log("Header Component - bindEventOnLRServiceAccount() - start");for(let n=0;n{this.isPageRefresh(!0),event.preventDefault(),event.stopImmediatePropagation();let a=t[n].getAttribute("id"),o=t[n].getAttribute("href"),l=this.getLinkDetails(a),s=l.roleId,c=l.accountId;this.setDomStorageItem("mhref",o,"",!0),this.updateLrServiceAccRoleIdForARH(c,s)});this.enableLRAccountServiceflag=!0}}getRolesData(){m.LoggingService.uConsole&&console.log("getRolesData - start"),this.h2Service.getMasDropDownData(this.flavor).subscribe(t=>{m.LoggingService.uConsole&&console.log("getRolesData - resp",t),this.header.accounts=new Array,this.header.allLRServiceAccounts=new Array,this.header.hrbpoRoleAccount=new Array,this.header.tbaAcctsForDisplay=new Array,this.header.bpoAcctsForEcsCssoDisplay=new Array,this.thriveHeaderRolesTxt=t.thriveHeaderRolesText,this.thriveHederAccountsTxt=t.thriveHeaderAccountsText,this.h2Service.populateData(t,this.header,this.flavor,this.showAccounts),m.LoggingService.uConsole&&console.log("PostpopulateData - userData",this.header),this.rolesAccountsUtilService.getAppUtilityObj().isPostAuth()&&this.rolesAccountsUtilService.getAppUtilityObj().isSwFeatureEnabled()&&t&&t.swcall&&"fresh"===t.swcall&&(m.LoggingService.uConsole&&console.log("AlMasDropDownComponent| getRolesData() - swcall=fresh"),setTimeout(()=>{this.enableIsLockedAnchorflag=!1,this.enableHRAccountServiceflag=!1,this.enableLRAccountServiceflag=!1},500))},t=>{let n="";n=t&&t.message?"Error response in service: "+t.message:JSON.stringify(t),this.logService._error(n,"service invocation failed with response",m.LoggingConstants.ERROR,"Header-Secondary Component")})}toggleMenu(t){}toggleLeftMenu(t){m.LoggingService.uConsole&&console.log("Triggered from MasDropdown Widget"),t.stopPropagation();let n=this._elementRef.nativeElement.querySelector("#al-roll"),a=this._elementRef.nativeElement.querySelector("#al-role");null!==n&&(this.renderer.removeClass(n,"hidden"),this.renderer.removeAttribute(n,"hidden"),this.rolesAccountsUtilService.manageAccessibility(n),this.rolesAccountsUtilService.setDropDownPosition(t,n),this.rolesAccountsUtilService.hideAuxNavOnKeydown(n,t)),t.currentTarget.getAttribute&&"al-roll-aria-label"===t.currentTarget.getAttribute("id")?(this.leftMenuFlag=!1,this.desktop&&null!==a&&""!==this.header.fullName?(this.rolesAccountsUtilService.setDropDownPosition(t,n),this.hideAllMenu(t)):this.hideAllMenu(t)):(this.leftMenuFlag=!0,this.hideAllMenu(t))}hideAllMenu(t){let n=this._elementRef.nativeElement.querySelector("#al-aux-your-profile"),a=this._elementRef.nativeElement.querySelector("#al-aux-choose-language"),o=document.querySelector("#al-roll");const l=this._elementRef.nativeElement.querySelectorAll(".al-secondarynav-level-2");if(null!==o&&!1===o.classList.contains("hidden")&&void 0===t.currentTarget&&this.renderer.addClass(o,"hidden"),null!==n&&this.renderer.addClass(n,"hidden"),null!==a&&this.renderer.addClass(a,"hidden"),void 0!==t.target&&"al-roll-aria-label"===t.target.id)for(let s=0;s> updateTBARoleId() >> Enter");let t=this.getDomStorageItem("mrid"),n=JSON.parse(this.domStorageService.getItem(this.ALIGHT_REQUEST_HEADER));if(n.roleId=t,this.removeDomStorageItem("mrid","",!0),n.channelRequestData){let o=n.channelRequestData;o.indexOf(this.ACC_HRBPO_KEY)>-1?o=o.replace(/\MAS_CURRENT_REQUESTED_ACTIVE_ACCT_TYPE::HRBPO/gi,this.ACC_TBA_KEY):o.indexOf(this.ACC_TBA_KEY)<=-1&&(o=o+this.ACC_TBA_KEY+"::"),o=this.updateisHidePrimaryAccount(o),n.channelRequestData=o;let l=this.getDataFromRequestHeader(o,this.ORIGINATOR_COLON),s=this.getDomStorageItem("moid");if(s&&""!==s)if(l&&""!==l){const d=new RegExp(l);o=o.replace(d,this.ORIGINATOR_COLON+s)}else o+=this.ORIGINATOR_COLON+s+"::";else if(l&&""!==l){const d=new RegExp(l+"::");o=o.replace(d,"")}else m.LoggingService.uConsole&&console.log("HeaderUtil >> updateTBARoleId() >> No change to originator id");this.removeDomStorageItem("moid","",!0),n.channelRequestData=o;let c=this.getDataFromRequestHeader(o,"com.aonhewitt.upoint.psp.integration.masrolecd::");if(c&&""!==c){const d=new RegExp(c+"::");o=o.replace(d,"")}n.channelRequestData=o,o=this.updateUrlForRequestHeader(o),n.channelRequestData=o}let a=this.getDomStorageItem("mhref");this.removeDomStorageItem("mhref","",!0),m.LoggingService.uConsole&&console.log("HeaderUtil >> updateTBARoleId() >> Exit value: "+JSON.stringify(n)),this.setDomStorageItem(this.ALIGHT_REQUEST_HEADER,JSON.stringify(n),"",!0),this.h2Service.lrRemoteCreateAhUserService(a)}toggleClick(t){t.currentTarget.parentElement.className.includes("tds-footer__linkgroup--open")?t.currentTarget.parentElement.classList.remove("tds-footer__linkgroup--open"):t.currentTarget.parentElement.classList.add("tds-footer__linkgroup--open")}getAfMasEligibility(){try{let t=this.domStorageService.getItem("IS_AUTH_AF_MAS_ENABLED");m.LoggingService.uConsole&&console.log("AlMasDropDownComponent::getAfMasEligibility::masAfEnabled - ",t),this.isAuthAfMasEnabled=!0===t||"true"===t}catch(t){m.LoggingService.uConsole&&console.log("AlMasDropDownComponent::getAfMasEligibility::Error",t),this.isAuthAfMasEnabled=!1}}removeOriginatorInArh(){let t="";try{let n=JSON.parse(this.domStorageService.getItem("alightRequestHeader")),a=n.channelRequestData;if(null!=a){if(-1!==a.indexOf("originator::")){let o=a.indexOf("originator::"),l=a.indexOf("::",o)+2;l=a.indexOf("::",l)+2,t=a.substring(o,l),a=a.replace(t,"")}n.channelRequestData=a}m.LoggingService.uConsole&&console.log("AlMasDropDownComponent::removeOriginatorInArh::originator - ",t),this.domStorageService.setItem("alightRequestHeader",JSON.stringify(n))}catch(n){m.LoggingService.uConsole&&(console.log("AlMasDropDownComponent::removeOriginatorInArh::Error -",n),console.log("AlMasDropDownComponent::removeOriginatorInArh::Error- originator",t)),t=""}return t}addOriginatorInArh(t){try{let n=JSON.parse(this.domStorageService.getItem("alightRequestHeader")),a=n.channelRequestData;null!=a&&(a=a.concat(t),n.channelRequestData=a),m.LoggingService.uConsole&&console.log("AlMasDropDownComponent::addOriginatorInArh::originator - ",t),this.domStorageService.setItem("alightRequestHeader",JSON.stringify(n))}catch(n){m.LoggingService.uConsole&&(console.log("AlMasDropDownComponent::addOriginatorInArh::Error -",n),console.log("AlMasDropDownComponent::addOriginatorInArh::Error- originator",t))}}}return i.\u0275fac=function(t){return new(t||i)(e.\u0275\u0275directiveInject(Yn),e.\u0275\u0275directiveInject(m.DomStorageFallbackService),e.\u0275\u0275directiveInject(m.LoggingService),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(m.BrandingService),e.\u0275\u0275directiveInject(Jn))},i.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["al-mas-dropdown"]],viewQuery:function(t,n){if(1&t&&e.\u0275\u0275viewQuery(Fr,5),2&t){let a;e.\u0275\u0275queryRefresh(a=e.\u0275\u0275loadQuery())&&(n.masLockDialogDisplayFlag=a.first)}},inputs:{showAccounts:"showAccounts"},outputs:{dropDownToggle:"dropDownToggle",isLockedEmit:"isLockedEmit"},decls:4,vars:4,consts:[["class","al-header-welcome-statement al-w7-16 al-720-w7-16 al-480-w7-16 al-320-w3-8",4,"ngIf"],[4,"ngIf"],[1,"al-header-welcome-statement","al-w7-16","al-720-w7-16","al-480-w7-16","al-320-w3-8"],["class","hmas-showAcc-3",4,"ngIf"],["auto-id","al-layout-header-wc_al-dialog",3,"showHeader","showFooter"],["alheaderAldialogAf",""],["type","button","id","masContinueBTN","pButton","",1,"al-button-positive",3,"innerHTML","click"],["class","hmas-hideAcc-0",4,"ngIf"],["class","hmas-showAcc-0",4,"ngIf"],[1,"hmas-hideAcc-0"],[1,"al-font-xsmall"],["data-info","intro-id-account-role",1,"al-overlay","hmas-hideAcc-u1"],["subject","al-roll","id","al-role",1,"al-simpleDropDown","al-single-menu","al-header-dropdown","al-overlay",3,"click"],["id","al-roll-aria-label","href","javascript:void(0);","aria-haspopup","true","tabindex","0"],["auto-id","al-header-username",3,"headerUsername"],["class","usernameStyle",4,"ngIf"],["id","al-roll","role","menu",1,"al-single-menu-sub","al-header-roll-old","al-dropdown-acs",3,"hidden"],[1,"al-arrow"],[1,"al-arrow-front"],[1,"al-arrow-line"],["aria-labelledby","al-roll-aria-label","aria-expanded","true"],["role","presentation ","class","selected ",3,"selected","innerHTML",4,"ngFor","ngForOf"],[1,"usernameStyle"],["role","presentation ",1,"selected",3,"innerHTML"],[1,"al-font-xsmall","hmas-hideAcc-u2"],[1,"al-header-user-name"],[1,"hmas-showAcc-0"],["class","hmas-showAcc-1",4,"ngIf"],[1,"hmas-showAcc-1"],[4,"ngIf","ngIfElse"],["elseConditionNoOfAccountWithLR",""],[1,"al-font-xsmall","hmas-showAcc-11"],["data-info","intro-id-account-role",1,"al-overlay","hmas-showAcc-u1"],[1,"al-header-user-name","al-username-account"],[1,"al-user-name-seperator"],["subject","al-roll ","id","al-role",1,"al-simpleDropDown","al-single-menu","al-header-dropdown","al-overlay"],["id","al-roll-aria-label","aria-haspopup","true ","tabindex","0 ","href","javascript:void(0);",3,"click"],["id","al-roll","role","menu ",1,"al-single-menu-sub","al-header-roll-old","al-dropdown-acs",3,"hidden"],["aria-labelledby","al-roll-aria-label","aria-expanded","true "],["role","presentation ","class","al-menu-subhead ",4,"ngIf"],["role","presentation ",1,"al-menu-subhead"],["role","presentation","class","selected",3,"selected","innerHTML",4,"ngFor","ngForOf"],["role","presentation",1,"selected",3,"innerHTML"],["elseConditionAllLRServiceAccounts",""],[1,"al-font-xsmall","hmas-showAcc-12"],["data-info","intro-id-account-role",1,"al-overlay","hmas-showAcc-u2"],["id","al-roll-aria-label","href","javascript:void(0); ","aria-haspopup","true ","tabindex","0 ",3,"click"],["id","al-roll ","role","menu ",1,"al-single-menu-sub","al-header-roll-old","al-dropdown-acs",3,"hidden"],[1,"al-font-xsmall","hmas-showAcc-13","hmas-showAcc-u3"],[1,"hmas-showAcc-3"],[1,"al-font-xsmall","hmas-showAcc-2","hmas-showAcc-u4"],[1,"al-font-xsmall","hmas-showAcc-u5"],["data-info","intro-id-account-role",1,"al-overlay","hmas-showAcc-u6"],[3,"ngClass",4,"ngIf"],["class","tds-profile__linkgroup",4,"ngIf"],["auto-id","al-thrivelayout-header_al-dialog",3,"showHeader","showFooter"],[3,"ngClass"],["class","tds-profile__title",4,"ngIf"],["class","tds-footer__title",3,"click",4,"ngIf"],["aria-labelledby","al-roll-aria-label","aria-expanded","true",3,"ngClass"],[3,"ngClass","innerHTML",4,"ngFor","ngForOf"],[1,"tds-profile__title"],[1,"tds-footer__title",3,"click"],[3,"ngClass","innerHTML"],[1,"tds-profile__linkgroup"],["aria-labelledby","al-roll-aria-label",1,"tds-profile__links"],["class","tds-profile__link","role","presentation ",3,"innerHTML",4,"ngIf"],["class","tds-profile__link","role","presentation ",3,"innerHTML",4,"ngFor","ngForOf"],["role","presentation ",1,"tds-profile__link",3,"innerHTML"],["auto-id","al-thrivelayout-header_al-dialog_AF",3,"showHeader","showFooter"],[4,"ngFor","ngForOf"],[3,"ngClass","innerHTML",4,"ngIf"]],template:function(t,n){1&t&&(e.\u0275\u0275template(0,xo,10,7,"div",0),e.\u0275\u0275template(1,ko,10,7,"ng-container",1),e.\u0275\u0275template(2,Ho,9,6,"ng-container",1),e.\u0275\u0275template(3,Bo,9,6,"ng-container",1)),2&t&&(e.\u0275\u0275property("ngIf","dropDown"===n.displayType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","links"===n.displayType&&"thrive"===n.flavor&&!n.header.ecsCssoUser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","links"===n.displayType&&"thrive"===n.flavor&&n.header.ecsCssoUser),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","links"===n.displayType&&"EP"===n.flavor&&!n.header.ecsCssoUser))},directives:[w.NgIf,Or,w.NgForOf,m.AlDialogComponent,be,w.NgClass],pipes:[Mr],styles:["#al-roll ul li a{color:inherit!important}\n"],encapsulation:2}),i})(),jo=(()=>{class i{constructor(){}static forRoot(){return{ngModule:i,providers:[Yn,Jn]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.\u0275\u0275defineNgModule({type:i}),i.\u0275inj=e.\u0275\u0275defineInjector({imports:[[w.CommonModule,m.AlCoreModuleLibrary.forRoot()]]}),i})(),qo=(()=>{class i{static addScript(t){const n=document.createElement("script");n.setAttribute("src",t),document.head.appendChild(n)}static handleExternalScriptsInHtmlString(t){let n=[];const a=new DOMParser;if(a&&null!==a&&t){let o=a.parseFromString(t,"text/html");if(o){const l=o.getElementsByTagName("script");for(let s=0;s{class i{constructor(t,n,a,o,l,s,c){this.document=t,this.sanitizer=n,this.renderer=a,this._elementRef=o,this.headerUtilService=l,this.genericService=s,this.domStorageFB=c,this.opened=!1,this.smartunavbuttonFlag=!0,this.af_switch_enabled=!1,this.GC_CHAT=!1,this.isGcChatTopicAvailable=!1,this.gcChatInactive=!1,this.smartbuttonData=null,this.Math=Math}ngOnInit(){let t=this.domStorageFB.getItem("IS_GENESYS_CHAT_ENABLED"),n=this.domStorageFB.getItem("genesysChatConfig");if(t&&(!0===t||"true"===t)){this.printConsole("ngOnInit()","GC chat enabled"),this.GC_CHAT=!0;let a=1;this.enableGensysChatFeature();const o=setInterval(()=>{try{a>30&&(this.printConsole("ngOnInit()"," - clear interval 1"),clearInterval(o),this.enableGensysChatFeature()),a+=1,n=this.domStorageFB.getItem("genesysChatConfig"),n&&(this.printConsole("ngOnInit()"," - clear interval 2"),clearInterval(o),this.enableGensysChatFeature())}catch(l){this.printConsole("ngOnInit()"," - clear interval 3"),console.error("ngOnInit()",l),clearInterval(o)}},500)}!1===this.GC_CHAT&&(this.printConsole("ngOnInit()","oracle chat enabled"),this.headerObj.newChatClntEnabled&&(this.newLiveChatEnvUrlTrustedScript=qo.transform('