1"use strict";(self.webpackChunkDfsCard=self.webpackChunkDfsCard||[]).push([[8133],{8133:(Kt,Z,S)=>{S.r(Z),S.d(Z,{ABTestingPlatform:()=>O,APP_COMPONENT_REGISTRY:()=>Re,AdobeTargetOfferService:()=>Me,AdobeTargetResolverService:()=>Pe,AdobeTargetService:()=>te,AnalyticsInterface:()=>T,AnalyticsService:()=>xe,AppOwner:()=>U,AppRoutesToken:()=>At,BreCmsConfigService:()=>Q,BreCmsSdkService:()=>ue,COMPONENT_REGISTRY:()=>Le,CmsComponentMappingsService:()=>b,CmsConfigToken:()=>j,CmsRouteDataResolverService:()=>pe,CmsSdkService:()=>oe,ComponentMappingsToken:()=>le,ComponentModuleResolverService:()=>Fe,ComponentObserverService:()=>It,ComponentTestService:()=>K,ContentInsightsService:()=>ke,ContentServiceProviderToken:()=>Ot,CustomErrorHandler:()=>Lt,DomainToken:()=>Tt,DynamicDataHandler:()=>Vt,DynamicDataTag:()=>Ge,DynamicTagTypes:()=>me,EnterpriseCoreModule:()=>ct,EnvironmentService:()=>ne,EventName:()=>ie,ExperimentationArticleFolder:()=>wt,ExperimentationConfig:()=>ye,ExperimentationFolder:()=>yt,ExperimentationInterface:()=>A,ExperimentationVendors:()=>F,GaService:()=>Oe,GeographicalDataService:()=>Ae,GrvMapService:()=>Dt,GtagActionEnum:()=>He,GtagEventActionEnum:()=>Qe,GtagEventCategoryEnum:()=>qe,GtagEventLabelEnum:()=>Je,GtagEventNameEnum:()=>Ke,InternalLinkService:()=>w,IsProductionDomain:()=>Te,LinkUtilityService:()=>Mt,LobName:()=>B,LocalStorageService:()=>V,MaskingService:()=>Et,MemoryCache:()=>k,NewRelicService:()=>_,OfferType:()=>E,OneTagAppId:()=>re,OneTagService:()=>je,OptimizelyService:()=>Ze,PERSONALIZATION_META_PREFIX:()=>Ve,PageDataService:()=>jt,PageViewHistoryService:()=>ze,PageViewPersonalizationService:()=>N,Personalization:()=>x,PersonalizationStrategyService:()=>q,QUERY_PARAM_EXTENDER:()=>kt,QueryParamStorageService:()=>Rt,QueryParams:()=>Xe,ResponsiveSizes:()=>M,RouteDataResolverService:()=>Ne,ScEventName:()=>we,SharedCmsConfigService:()=>L,SharedCmsIntegrationModule:()=>St,SharedCmsSdkService:()=>R,TimeOfDay:()=>C,TimeOfDayPersonalizationService:()=>$,TrailingSlashUrlSerializer:()=>$e,UIAction:()=>Ie,VideoHelperService:()=>xt,ViewportPersonalizationService:()=>H,WcmSdkService:()=>Ft,constructComponent:()=>Ee,containsDynamicData:()=>Y,experimentationServiceFactory:()=>zt,findComponentByName:()=>se,getComponentAlternates:()=>ae,getComponentList:()=>z,getCtaText:()=>Ct,getFormattedArticleTime:()=>_t,nestedObject:()=>bt,parseMetaData:()=>Pt,setComponentInputs:()=>Bt,siteCmsRegExp:()=>ee,substitute:()=>et});var u=S(954),h=S(9204),p=S(5615),_e={};for(const r in p)["default","ABTestingPlatform","APP_COMPONENT_REGISTRY","AdobeTargetOfferService","AdobeTargetResolverService","AdobeTargetService","AnalyticsInterface","AnalyticsService","AppOwner","AppRoutesToken","BreCmsConfigService","BreCmsSdkService","COMPONENT_REGISTRY","CmsComponentMappingsService","CmsConfigToken","CmsRouteDataResolverService","CmsSdkService","ComponentMappingsToken","ComponentModuleResolverService","ComponentObserverService","ComponentTestService","ContentInsightsService","ContentServiceProviderToken","CustomErrorHandler","DomainToken","DynamicDataHandler","DynamicDataTag","DynamicTagTypes","EnterpriseCoreModule","EnvironmentService","EventName","ExperimentationArticleFolder","ExperimentationConfig","ExperimentationFolder","ExperimentationInterface","ExperimentationVendors","GaService","GeographicalDataService","GrvMapService","GtagActionEnum","GtagEventActionEnum","GtagEventCategoryEnum","GtagEventLabelEnum","GtagEventNameEnum","InternalLinkService","IsProductionDomain","LinkUtilityService","LobName","LocalStorageService","MaskingService","MemoryCache","NewRelicService","OfferType","OneTagAppId","OneTagService","OptimizelyService","PERSONALIZATION_META_PREFIX","PageDataService","PageViewHistoryService","PageViewPersonalizationService","Personalization","PersonalizationStrategyService","QUERY_PARAM_EXTENDER","QueryParamStorageService","QueryParams","ResponsiveSizes","RouteDataResolverService","ScEventName","SharedCmsConfigService","SharedCmsIntegrationModule","SharedCmsSdkService","TimeOfDay","TimeOfDayPersonalizationService","TrailingSlashUrlSerializer","UIAction","Video
1HelperService","ViewportPersonalizationService","WcmSdkService","constructComponent","containsDynamicData","experimentationServiceFactory","findComponentByName","getComponentAlternates","getComponentList","getCtaText","getFormattedArticleTime","nestedObject","parseMetaData","setComponentInputs","siteCmsRegExp","substitute"].indexOf(r)<0&&(_e[r]=()=>p[r]);S.d(Z,_e);var o=S(3370),y=S(7336),G=S(5501),g=S(7320),f=S(8707),D=S(4413),tt=S(5892),Ce=S(7854);const rt={bank:"bank","cap-one-tech":"enterprise",commercial:"commercial","content-only":"enterprise",homepage:"enterprise","learn-grow":"enterprise",military:"enterprise",card:"card","money-and-life":"money-and-life",privacy:"privacy",software:"software",acquisition:"acquisition","dfs-card-smarts":"dfs-card-smarts",travel:"travel","personal-loans":"personal-loans","dfs-personal-loans":"dfs-personal-loans","dfs-enterprise":"enterprise"};var E=function(r){return r.componentLevelTest="componentLevelTest",r.cardSiteRoute="cardSiteRoute",r.pageLevelTest="pageLevelTest",r.featureLevelTest="featureLevelTest",r.sequoia="sequoia",r}(E||{});let A=(()=>{var r;class a{}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),Pe=(()=>{var r;class a{constructor(e,t){this.experimentationService=e,this.router=t}resolve(e,t){var i=this;return(0,h.A)(function*(){return i.router.events.pipe((0,G.first)(n=>n instanceof y.NavigationEnd)).subscribe(()=>i.experimentationService.getAndApplyOffers(t.url))})()}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(A),o.\u0275\u0275inject(y.Router))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();const ye=new o.InjectionToken("experimentationConfig");let T=(()=>{var r;class a{}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();var we=function(r){return r.clickTracking="clickTracking",r.trackAnalytics="trackAnalytics",r.initMarketing="initMarketing",r}(we||{}),O=function(r){return r.AdobeTarget="Target",r.Optimizely="Optimizely",r}(O||{});const j=new o.InjectionToken("cmsConfigToken");class k{constructor(a=null){this.cacheLimit=a,this.storage=new Map}isCacheValid(a){return null==a||(new Date).getTime()<=a}get(a){const c=this.storage.get(a);if(c&&this.storage.has(a)&&this.isCacheValid(c.expiration))return c.value;this.delete(a)}has(a){const c=this.storage.get(a);return!!(c&&this.storage.has(a)&&this.isCacheValid(c.expiration))||(this.delete(a),!1)}set(a,c){this.storage.set(a,{expiration:this.cacheLimit?(new Date).getTime()+this.cacheLimit:null,value:c})}delete(a){this.storage.delete(a)}}const it=["credit-cards","small-business/credit-cards","bank","commercial","military","auto-financing","small-business-bank","tech","learn-grow","cars","page-not-found","privacy","homepage","software","about","digital","updates","shopping","accessibility","trade-credit","power-of-attorney","partnerships","coders","lounges","help-center","capital-one-cup","examples","investor","dfs-card-smarts","travel","personal-loans","estates","dfs-enterprise"];let _=(()=>{var r;class a{constructor(e,t){this.platformId=e,this.document=t,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.isServer=(0,g.isPlatformServer)(this.platformId),this.scriptTag=this.document.createElement("script"),this.initialInteraction={save:()=>this.initialInteraction,setName:()=>this.initialInteraction},this.newRelic={setCustomAttribute:()=>{},setPageViewName:()=>{},noticeError:()=>{},interaction:()=>this.initialInteraction,addPageAction:()=>{}},this.isBrowser&&window.newrelic&&(this.newRelic=window.newrelic),this.insertScriptTag()}setCustomAttribute(e,t){if(this.isBrowser)this.newRelic.setCustomAttribute(e,t);else if(this.isServer){const i=this.sanitize(e);let n=t;"string"==typeof t&&(n=this.sanitize(t));const s=this.scriptTag.innerHTML;this.scriptTag.innerHTML="".concat(s.substring(0,s.length-5),'nr.setCustomAttribute("').concat(i,'", "').concat(n,'");\n})();')}}setPageViewName(e,t){this.newRelic.setPageViewName(e,t)}noticeError(e,t){this.newRelic.noticeError(e,t)}addPageAction(e,t){this.newRelic.addPageAction(e,t)}insertScriptTag(){if(!this.isServer)return;this.scriptTag.setAttribute("type","text/javascript"),this.scriptTag.setAttribute("id","new-relic-updates"),this.scriptTag.innerHTML="(function(){ var nr = window.newrelic; if (nr == undefined || nr.setCustomAttribute == undefined) { return; }\n})();";const e=this.document.getElementById("new-relic-init");e&&e.insertAdjacentElement("afterend",this.scriptTag)}save(e){const t=this.newRelic.interaction();return e&&t.setName(e),t.save()}sanitize(e){return e.replace(/\"/g,""").replace(/\''/g,"'").replace(/'/g,"'").replace(/"/g,""")}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();const ee=/^(\/site\/)(?!_cmsinternal\/)/;let w=(()=>{var r;class a{constructor(e,t,i,n){this.document=e,this.cmsConfig=t,this.httpClient=i,this.newrelic=n,this.headCache=new k,this.cmsInternalRegExp=/^site\/_cmsinternal\//}fileExists(e){if(this.headCache.has(e))return this.headCache.get(e);const t=new Promise(i=>{this.httpClient.head(e,{observe:"response"}).toPromise().then(s=>{i(200===(null==s?void 0:s.status))}).catch(s=>{404!==s.status&&this.newrelic.noticeError(s),i(!1)}).finally(()=>{this.headCache.delete(e)})});return this.headCache.set(e,t),t}removeHomepageChannelFromUrl(e){const t=this.extractRelativePath(e);return this.formatPath(t).startsWith("site/homepage")?e.replace("homepage/",""):e}extractHashFragment(e){return e.split(/[#]/)[0]}extractHashFragmentAndQueryParams(e){return e.split(/[?#]/)[0]}hasMatchingHost(e){return!this.isValidUrl(e)||e.includes(this.document.location.host)}extractRelativePath(e=""){if(this.isValidUrl(e)){const t=e.split(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);
1t[4]===this.document.location.host&&(e=[t[5],t[6],t[8]].filter(Boolean).join(""))}return e}isValidUrl(e){return/^(https?:\/\/)|([a-z\d]\.)+[a-z]{2,}/i.test(e)}stripLeadingAndTrailingSlash(e){return e.replace(/^\/|\/$/g,"")}convertUrlToPathToJson(e){let t=this.formatPath(e),i="";const n=-1===t.indexOf("/");this.cmsInternalRegExp.test(t)&&(i="_cmsinternal/",t=t.replace(this.cmsInternalRegExp,""));const s=this.removePreviewSuffix(t.split("/")[0]),l=n?"root":t.split("/").splice(1).join("/");return this.cmsConfig.useCache?"/assets/shell/page_models/".concat(s,"/resourceapi/").concat(l,".json"):"".concat(this.cmsConfig.live.scheme,"://").concat(this.cmsConfig.live.hostname,":").concat(this.cmsConfig.live.port,"/site/").concat(i).concat(s,"/resourceapi/").concat(l)}formatPath(e){const t=this.extractHashFragmentAndQueryParams(e);return this.stripLeadingAndTrailingSlash(t)}removeInternalPrefix(e){const t=this.extractRelativePath(e);return ee.test(t)?t.substring(5):e}removePreviewSuffix(e){const t=this.cmsConfig.live.previewSuffix;if(void 0!==t&&0===t.length)return e;const i=this.extractRelativePath(e);return i.startsWith("/"+this.cmsConfig.live.channelPath)?i.replace(t,""):e}isException(e){const t=this.extractRelativePath(e),i=this.removeInternalPrefix(t),n=this.formatPath(i);return it.some(s=>n.startsWith(s))}isInternalLink(e){var t=this;return(0,h.A)(function*(){if(e&&t.hasMatchingHost(e)){const i=t.extractRelativePath(e);if(t.isException(i))return!1;if(ee.test(i))return!0;const n=t.convertUrlToPathToJson(i);if(yield t.fileExists(n))return!0}return!1})()}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(j),o.\u0275\u0275inject(D.HttpClient),o.\u0275\u0275inject(_))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),Me=(()=>{var r;class a{constructor(e){this.newrelic=e}getComponentOffers(e){return this.getJsonOffers(e).content.filter(i=>Object.keys(i).includes(E.componentLevelTest)).flatMap(i=>{var n;return null!==(n=i.componentLevelTest)&&void 0!==n&&n.components?this.transformComponents(i.componentLevelTest.components,i.componentLevelTest.meta?i.componentLevelTest.meta:""):i.componentLevelTest?i.componentLevelTest:void 0})}transformComponents(e,t){return Array.isArray(e)?e.map(i=>({meta:t,name:i.name,variant:i.variant})):(this.newrelic.noticeError("Invalid AB test components: ".concat(JSON.stringify(e))),[])}getPageTests(e){const t=this.getJsonOffers(e);return this.parsePageOffers(t)||this.parseCardPageOffers(t)||this.parseOldPageOffers(t)}parseOldPageOffers(e){var t;const i=e.content.find(n=>{var s;return null===(s=n.sequoia)||void 0===s?void 0:s.page});return(null==i||null===(t=i.sequoia)||void 0===t?void 0:t.page)||null}parsePageOffers(e){const t=e.content.find(i=>i.pageLevelTest);return(null==t?void 0:t.pageLevelTest)||null}parseCardPageOffers(e){const t=e.content.find(i=>i.cardSiteRoute);return(null==t?void 0:t.cardSiteRoute)||null}getFeatureLevelTest(e){return this.getJsonOffers(e).content.filter(i=>Object.keys(i).includes(E.featureLevelTest)).flatMap(i=>i.featureLevelTest)}getJsonOffers(e){const t=e.find(i=>"setJson"===i.action);return this.parseJsonOffers(t)}getAllJsonOffers(e){return e.filter(t=>"setJson"===t.action).map(t=>this.parseJsonOffers(t))}parseJsonOffers(e){const t=Object.assign({content:[]},e);return Array.isArray(t.content)||(t.content=[]),t}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(_))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();const be="target-global-mbox",De={loading:!1,offers:null};let te=(()=>{var r;class a{get adobeTarget(){return this.isBrowser&&this.enableTests()&&window.adobe?adobe.target:null}constructor(e,t,i,n,s){this.platformId=e,this.document=t,this.newrelic=i,this.offerService=n,this.expConfig=s,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.testData=this.isBrowser?(0,f.fromEvent)(this.document,"siteTestDataReady").pipe((0,G.map)(l=>l.detail.siteTestData)):f.NEVER,this.pageUrl="",this.pageOffers=new Promise(()=>{}),this.analyticsServ=(0,o.inject)(T),this.isBrowser&&!this.enableTests()&&console.log("Adobe Target disabled for localhost. Add query string \"at_preview_token\" to enable. In chrome dev c
1onsole location.search += 'at_preview_token'"),this.prerenderExpConfig(),this.analyticsServ.activeABTestingPlatform=O.AdobeTarget}getAndApplyOffers(e){var t=this;return(0,h.A)(function*(){const i=yield t.getPageOffers(e);t.isBrowser&&t.document.querySelector&&t.document.querySelectorAll(".exp-min-height").forEach(n=>{n.classList.remove("exp-min-height")}),null!==i&&null!==t.adobeTarget&&(t.adobeTarget.applyOffer({mbox:be,offer:i}),t.clearGlobalData())})()}checkForInvalidTests(e){var t=this;return(0,h.A)(function*(){const i=yield t.getPageOffers(e);if(!i)return;const n=i.map(d=>JSON.parse(JSON.stringify(d))),s=[];t.offerService.getAllJsonOffers(n).forEach(d=>{d.content.forEach((v={})=>{const m=t.removeValidTests(v);Object.keys(m).length&&s.push(m)})}),s.length&&t.newrelic.noticeError("Contains Invalid AB Test: ".concat(JSON.stringify(s)))})()}removeValidTests(e){var t,i,n,s;return(Array.isArray(null==e?void 0:e.componentLevelTest)||Array.isArray(null==e||null===(t=e.componentLevelTest)||void 0===t?void 0:t.components))&&delete e.componentLevelTest,null!=e&&null!==(i=e.sequoia)&&void 0!==i&&i.page&&delete e.sequoia,null!=e&&null!==(n=e.pageLevelTest)&&void 0!==n&&n.page&&delete e.pageLevelTest,null!=e&&null!==(s=e.cardSiteRoute)&&void 0!==s&&s.route&&delete e.cardSiteRoute,e}getTestUrl(e){var t=this;return(0,h.A)(function*(){const i=yield t.getPageOffers(e),n=w.prototype.extractHashFragmentAndQueryParams(e),s=i?t.offerService.getPageTests(i):{};return s&&(s.page||s.route||s[n])||e})()}getComponentTests(e){var t=this;return(0,h.A)(function*(){const i=yield t.getPageOffers(e);if(!i)return[];const n=t.offerService.getComponentOffers(i),s=new Set;return Array.isArray(n)?n.filter(l=>null!=l&&l.name?!s.has(l.name)&&(s.add(l.name),!0):(t.newrelic.noticeError("Component test is missing name: ".concat(JSON.stringify(l))),!1)):[]})()}getPageOffers(e){return this.pageUrl!==e&&(this.pageUrl=e,this.pageOffers=this.getOffers()),this.pageOffers}getOffers(){return this.adobeTarget?new Promise((e,t)=>{const i=window._sequoia&&window._sequoia.target?window._sequoia.target:De;i.loading?(window.addEventListener("targetResolved",()=>{e(i.offers)}),window.addEventListener("targetRejected",()=>{e(null)})):i.offers?e(i.offers):this.fetchOffers(l=>{e(l)},(l,d)=>{this.newrelic.noticeError("Adobe Target GetOffer failed on ".concat(l," error: ").concat(d)),e(null)})}):(this.newrelic.noticeError("Adobe Target SDK not loaded"),Promise.resolve(null))}fetchOffers(e,t){const i={mbox:be,success:e,timeout:2e3,error:t};this.expConfig&&(i.params=this.expConfig),this.adobeTarget.getOffer(i)}prerenderExpConfig(){if(!this.isBrowser&&this.expConfig){const t=this.document.querySelector("#adobe-target-init"),i=this.document.createElement("script");var e;i.id="adobe-target-config",i.text=" function targetPageParams() {\n return ".concat(JSON.stringify(this.expConfig),";\n }\n "),t&&(null===(e=t.previousSibling)||void 0===e||e.after(i))}}clearGlobalData(){window._sequoia.target=De}enableTests(){const e=this.document.location;return"localhost"!==e.hostname||"localhost"===e.hostname&&e.search.indexOf("at_preview_token")>0}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(_),o.\u0275\u0275inject(Me),o.\u0275\u0275inject(ye,8))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();const U=new o.InjectionToken("appOwnerToken"),B=new o.InjectionToken("LobName"),re=new o.InjectionToken("oneTagAppId");let je=(()=>{var r;class a{constructor(e,t){this.platformId=e,this.appId=t,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.updateAppId(t)}canUpdateAppId(e){return this.isBrowser&&e&&window.oneTagConfig}updateAppId(e){this.canUpdateAppId(e)&&(window.oneTagConfig.app_id=e)}publishEvent(e,t){try{this.isBrowser&&window.oneTag.track(e,t)}catch(i){console.error("Error publishing to OneTag: "+i)}}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(re,8))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();var ie=function(r){return r.view="view",r.link="link",r}(ie||{}
1),Ie=function(r){return r.click="click",r.linkClick="link_click",r.navigationClick="navigation_click",r.toggleClick="toggle_click",r.change="change",r.focus="focus",r.tooltip="tooltip",r}(Ie||{});let nt=(()=>{var r;class a{constructor(e,t=""){this.document=e,this.appOwner=t,this._areLevelsWithDefaultsSet=!1,this._pageLevels={page_level_1:"",page_level_2:"",page_level_3:"",page_level_4:"",page_level_5:""},this._pageLevelsWithDefaults={page_level_1:"",page_level_2:"",page_level_3:"",page_level_4:"",page_level_5:""}}get defaultPageLevels(){const e=this.strippedPathname.split("/");return{page_level_1:this.appOwner||"enterprise",page_level_2:e[0]||"",page_level_3:this.isArticle?"article":"composed",page_level_4:e.length>1?e[e.length-1]:"",page_level_5:""}}get pageLevels(){return this._pageLevels}set pageLevels(e){e.page_level_1?(this._pageLevels.page_level_1=e.page_level_1,this._pageLevels.page_level_2=e.page_level_2,this._pageLevels.page_level_3=e.page_level_3,this._pageLevels.page_level_4=e.page_level_4,this._pageLevels.page_level_5=e.page_level_5):(this._pageLevels.page_level_1=e.level1,this._pageLevels.page_level_2=e.level2,this._pageLevels.page_level_3=e.level3,this._pageLevels.page_level_4=e.level4,this._pageLevels.page_level_5=e.level5)}get areLevelsWithDefaultsSet(){return this._areLevelsWithDefaultsSet}set areLevelsWithDefaultsSet(e){this._areLevelsWithDefaultsSet=e}get pageLevelsWithDefaults(){return this._pageLevelsWithDefaults}set pageLevelsWithDefaults(e){this.areLevelsWithDefaultsSet=!0,e.page_level_1?(this._pageLevelsWithDefaults.page_level_1=e.page_level_1,this._pageLevelsWithDefaults.page_level_2=e.page_level_2,this._pageLevelsWithDefaults.page_level_3=e.page_level_3,this._pageLevelsWithDefaults.page_level_4=e.page_level_4,this._pageLevelsWithDefaults.page_level_5=e.page_level_5):(this._pageLevelsWithDefaults.page_level_1=e.level1,this._pageLevelsWithDefaults.page_level_2=e.level2,this._pageLevelsWithDefaults.page_level_3=e.level3,this._pageLevelsWithDefaults.page_level_4=e.level4,this._pageLevelsWithDefaults.page_level_5=e.level5)}getPageLevelsConcat(e){return Object.entries(e).filter(([i,n])=>(i.includes("page_level")||i.includes("level"))&&""!==n).map(([,i])=>i).join(":")}get strippedPathname(){return this.document.location.pathname.replace(/^\/|\/$/g,"")}get isArticle(){var e,t;return"article"===(null!==(e=null===(t=this.component)||void 0===t||null===(t=t.routeData)||void 0===t?void 0:t.name)&&void 0!==e?e:null)}get component(){return this._component}set component(e){this._component=e}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(U,8))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),Ae=(()=>{var r;class a{constructor(e){var t,i;this.platformId=e,this.isBrowser=(0,g.isPlatformBrowser)(e),this.geoVars=this.isBrowser&&null!==(t=null===(i=window)||void 0===i||null===(i=i.c1GeoVars)||void 0===i?void 0:i.geoInfo)&&void 0!==t?t:{}}get countryCode(){var e,t;return(null!==(e=null===(t=this.geoVars)||void 0===t?void 0:t.country_code)&&void 0!==e?e:"us").toLowerCase()}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();var M=function(r){return r[r.ExtraSmall=368]="ExtraSmall",r[r.Small=599]="Small",r[r.Medium=767]="Medium",r[r.MediumLarge=1024]="MediumLarge",r[r.Large=1199]="Large",r[r.ExtraLarge=1919]="ExtraLarge",r[r.LargeDisplay=9999]="LargeDisplay",r}(M||{});const ot={environment:"prod"},Te=new o.InjectionToken("IsProductionDomain");let ne=(()=>{var r;class a{constructor(e,t,i,n,s){this.document=e,this.http=t,this.platformId=i,this.nodeIsProduction=n,this.isProductionDomain=s,this.environment={environment:""}}getEnvironment(){return this.environment}load(){var e=this;return(0,h.A)(function*(){if(e.isProduction())return e.environment=ot,Promise.resolve();const t=(0,g.isPlatformServer)(e.platformId)||-1===window.location.hostname.indexOf("chariotwcmspa")?"/":"";try{const i=e.http.get("".concat(t,"assets/shell/environments/environment.qa.json")),n=yield(0,f.lastValueFrom)(i);e.environment=n}catch(i){}})()}isProduction(){return(0,g.isPlatformServer)(this.platformId)?this.nodeIsProduction:this.isProductionDomain}getAppVersionId(){return this.document.body.getAttribute("data-build-sha")}getCoreVersion(){return this.document.body.getAttribute("data-core")}getTimestamp(){return this.document.body.getAttribute("data-build-ts")}getCurrentDomain(){const{hostname:e}=this.document.location,[t,i]=e.split(".").reverse();return"".concat(i,".").concat(t)}isLocal(){const{hostname:t}=this.document.location;return/localhost/.test(t)}isPreview(){const{hostname:t}=this.document.location;return/\.cloud(dqt)?\.capitalone\.com$/.test(t)}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(D.HttpClient),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject("nodeIsProduction",8),o.\u0275\u0275inject(Te))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),Oe=(()=>{var r;class a{constructor(e,t,i){this.platformId=e,this.document=t,this.environmentService=i,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId)}getGaData(){let e={};return this.isBrowser&&(e={salesforce_marketing_cloud_id:this.getSfmcId(),cms_and_site_version:this.getCommitSha(),responsive_breakpoint:this.document.documentElement.clientWidth,domain_user_device_id:this.getCookie("C1_UDID")}),e}getSfmcId(){if(this.document.URL){const e=new URL(this.document.URL).searchParams.get("sfmc_id");if(e)return e}}getCommitSha(){return this.environmentService.getAppVersionId()||void 0}getViewportSize(){const e=this.document.documentElement.clientWidth;return e<=M.ExtraSmall?"extra small":e<=M.Small?"small":e<=M.Medium?"medium":e<=M.MediumLarge?"medium large":e<=M.Large?"large":e<=M.ExtraLarge?"extra large":"large display"}getCookie(e){const i=this.document.cookie.split("; ").find(n=>n.startsWith("".concat(e,"=")));if(i)return i.split("=")[1]}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(ne))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),ke=(()=>{var r;class a{constructor(e,t){this.pageModelService=e,this.nrService=t}get insights(){const e=[],t=[];
1return[...new Set(this.extractInsights())].forEach(n=>{const s=n.split(",");e.push(s[0]),t.push(s[1])}),{contentId:this.contentId,contentMetadataId:e.join(","),contentMetadataName:t.join(",")}}get contentId(){try{var e,t,i;const n=this.pageModelService.getPageModel(),s=null===(e=n.page)||void 0===e||null===(e=e.components)||void 0===e?void 0:e.find(P=>"Page Content"===P.label),l=null===(t=n.page)||void 0===t||null===(t=t.components)||void 0===t?void 0:t.find(P=>"main"===P.name),d=null==l||null===(i=l.components)||void 0===i?void 0:i.find(P=>"Article Detail"===P.label);return this.pageModelService.getContentViaReference((s||d).models.document.$ref).id}catch(n){return this.nrService.noticeError("Content Insights: Unable to get content ID",n),""}}extractInsights(){var e;let t=[];const i=null===(e=this.pageModelService.getPageModel())||void 0===e?void 0:e.content;return i&&Object.values(i).forEach(n=>{var s;null!==(s=n.keys)&&void 0!==s&&s.length&&(t=t.concat(n.keys))}),t}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(p.PageModelService),o.\u0275\u0275inject(_))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),xe=(()=>{var r;class a{constructor(e,t,i,n,s="",l,d,v){this.platformId=e,this.document=t,this.geoVarsService=i,this.gaService=n,this.appOwner=s,this.appId=l,this.lobName=d,this.contentInsightsService=v,this.activeABTestingPlatform=O.AdobeTarget,this.pageLevelsService=(0,o.inject)(nt),this.oneTagService=(0,o.inject)(je),this.oneTagService.updateAppId(l),this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this._activeComponentTests={components:null,recipe:null}}get component(){return this.pageLevelsService.component}set component(e){this.pageLevelsService.component=e}get activeComponentTests(){return this._activeComponentTests}set activeComponentTests(e){this._activeComponentTests=e}get pageLevels(){return this.pageLevelsService.pageLevels}set pageLevels(e){this.pageLevelsService.pageLevels=e}get areLevelsWithDefaultsSet(){return this.pageLevelsService.areLevelsWithDefaultsSet}get pageLevelsWithDefaults(){return this.pageLevelsService.pageLevelsWithDefaults}set pageLevelsWithDefaults(e){this.pageLevelsService.pageLevelsWithDefaults=e}getPageLevelsConcat(e){return this.pageLevelsService.getPageLevelsConcat(e)}get gaData(){return this.gaService.getGaData()}getPageViewDataObj(e,t,i){return this.pageLevelsWithDefaults=this.getPageLevelsWithDefaults(t),(0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)({event_name:"page_view",page_language:(null==t?void 0:t.language)||"english",site_country:this.geoVarsService.countryCode,propensity_score_upmarket:this.propensityScore,twenty_group:this.twentyGroup,twenty_five_group:this.twentyFiveGroup,page_title:this.getPageLevelsConcat(this.pageLevelsWithDefaults)},this.pageLevelsWithDefaults),this.getDeviceType(e)),this.aBTestData),this.gaData),i)}publishPageViewEvent(e,t,i){const n=this.getPageViewDataObj(e,t,i);return this.publishEvent(ie.view,n)}publishEvent(e,t){t=Object.assign({},t,{lob_identifier:this.getLobName}),this.oneTagService.publishEvent(e,t)}publishTrackedEvent(e,t){if(this.areLevelsWithDefaultsSet){const n=this.getPageLevelsConcat(this.pageLevelsWithDefaults);t.page_title=n}const i=this.getPageLevelsConcat(this.pageLevels);i&&(t.full_clickstream_path="".concat(i,":").concat(t.full_clickstream_path)),this.publishEvent(e,t)}getMetadataFields(e,t=null){var i;return this.pageLevels=e,{levelFields:(0,u.A)((0,u.A)({},this.pageLevels),{},{language:null!==(i=null==e?void 0:e.language)&&void 0!==i?i:"english"}),contextFields:this.getContextData(t)}}getPageLevelsWithDefaults(e){const t=this.pageLevelsService.defaultPageLevels;return e.level1?{level1:e.level1||t.page_level_1,level2:e.level2||t.page_level_2,level3:e.level3||t.page_level_3,level4:e.level4||t.page_level_4,level5:e.level5||t.page_level_5}:{level1:e.page_level_1||t.page_level_1,level2:e.page_level_2||t.page_level_2,level3:e.page_level_3||t.page_level_3,level4:e.page_level_4||t.page_level_4,level5:e.page_level_5||t.page_level_5}}getDeviceType(e){let t={};return e&&e.deviceInfo&&""!==e.deviceInfo.type&&(t={device_type:e.deviceInfo.type}),t}get aBTestData(){const e={ab_testing:[this.siteTestData]},t=this.generateABTestData();var i;return t&&(null===(i=e.ab_testing)||void 0===i||i.push(t)),e}generateABTestData(){const{components:e,recipe:t}=this._activeComponentTests,i=e||[];if(0===i.length)return null;const n=[],s=[];
1return i.forEach(l=>{null!=l&&l.variant&&n.push(l.variant),null!=l&&l.name&&s.push(l.name)}),{ab_testing_platform:this.activeABTestingPlatform,ab_testing_id:n.join("|"),ab_testing_name:s.join("|"),ab_testing_component_level_test:t||""}}get siteTestData(){const e=[],t=[],i=[],n=[];return this.isBrowser&&window.siteTestData&&window.siteTestData.forEach(({campaign:s,campaignId:l,experience:d,experienceId:v})=>{e.push(l),t.push(s),i.push("".concat(l,":").concat(v)),n.push("".concat(s,":").concat(l,":").concat(d,":").concat(v))}),{ab_testing_id:e.join("|"),ab_testing_name:t.join("|"),ab_testing_adobe_tnt:i.join("|"),ab_testing_akamai_test:n.join("|"),ab_testing_platform:this.activeABTestingPlatform}}get getLobName(){var e;return this.lobName||(null===(e=this.pageLevels)||void 0===e?void 0:e.page_level_1)||this.appOwner||void 0}getContextData(e){return null===e?e:{page_metadata_strategy_abstracted_code:this.getMetaInfo("strategy",e.metadata),page_metadata_intent_abstracted_code:this.getMetaInfo("intent",e.metadata),page_metadata_category_abstracted_code:this.buildCompositeFields("primaryCategory","secondaryCategory",e.metadata),page_metadata_topic_abstracted_code:this.buildCompositeFields("primaryTopics","secondaryTopics",e.metadata),page_metadata_content_type_abstracted_code:this.getMetaInfo("contentType",e.metadata),page_metadata_audience_abstracted_code:this.getMetaInfo("audience",e.metadata),page_metadata_producer_abstracted_code:this.getMetaInfo("producer",e.metadata),page_metadata_product_abstracted_code:this.getMetaInfo("product",e.metadata),page_metadata_author:e.author?"true":"N/A",page_metadata_keyword:e.metaKeywords?"true":"N/A",page_metadata_use_keyword:e.keywordDriven?"true":"N/A"}}buildCompositeFields(e,t,i){let n=this.getMetaInfo(e,i);return""!==this.getMetaInfo(t,i)&&(n+="|"+this.getMetaInfo(t,i)),n}getMetaInfo(e,t){let i="";return t.forEach((n,s,l)=>{n.key===e&&null!==n.value&&n.value.forEach(v=>{i+=v.code+"|"}),i=this.removeStringEndPipe(i)}),i}removeStringEndPipe(e){for(let t=e.length-1;t>=0&&"|"===e.slice(-1);t--)e=e.substring(0,e.length-1);return e}get twentyGroup(){var e;if(!this.isBrowser)return;const t=window.siteTestData;return null==t||null===(e=t[0])||void 0===e||null===(e=e.profile)||void 0===e?void 0:e.TwentyGroup}get twentyFiveGroup(){var e;if(!this.isBrowser)return;const t=window.siteTestData;return null==t||null===(e=t[0])||void 0===e||null===(e=e.profile)||void 0===e?void 0:e.TwentyFiveGroup}get propensityScore(){var e;if(!this.isBrowser)return;const t=window.siteTestData;return null==t||null===(e=t[0])||void 0===e||null===(e=e.details)||void 0===e?void 0:e.VIP_ntile_bucket}videoPlayerStateChange(e){}videoPlayerNavigateAway(e){}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(Ae),o.\u0275\u0275inject(Oe),o.\u0275\u0275inject(U,8),o.\u0275\u0275inject(re,8),o.\u0275\u0275inject(B,8),o.\u0275\u0275inject(ke,8))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),b=(()=>{var r;class a{constructor(){this._componentMappings={},this._sharedComponentMappings={}}getSharedComponentMappings(){return this._sharedComponentMappings}getComponentMappings(){return(0,u.A)((0,u.A)({},this._componentMappings),this._sharedComponentMappings)}setComponentMappings(e){Object.entries(e).forEach(([t,i])=>{this.isSharedComponent(i)?this._sharedComponentMappings[t]=i:this._componentMappings[t]=i})}getMappedComponent(e){return this.getComponentMappings()[e]}getMappedSharedComponent(e){return this.getSharedComponentMappings()[e]}isSharedComponent(e){return e.\u0275cmp.selectors[0][0].startsWith("shared")}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),oe=(()=>{var r;class a{constructor(e,t,i,n,s,l,d,v){this.initializeSdkService=e,this.apiUrlsService=t,this.requestContextService=i,this.componentMappingsService=n,this.pageModelService=s,this.internalLinkService=l,this.document=d,this.platformId=v,this.contentCache=new k,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId)}fetchRouteData(e,t,i,n){let s;const l=e;if(n){t.live=t.live||{},e=this.internalLinkService.extractHashFragmentAndQueryParams(e);const d=null!=t&&t.useRootPath?"/":"/".concat(t.live.channelPath,"/");e="/"===e||e===d?"/root.json":e.replace(d,"/").replace(/\/$/,"")+".json",s={live:{scheme:this.document.location.protocol.replace(":",""),hostname:this.document.location.hostname,port:parseInt(this.document.location.port)||443,channelPath:t.live.channelPath,contextPath:t.live.contextPath},useRootPath:null==t?void 0:t.useRootPath}}else s=t;if(this.apiUrlsService.setApiUrls(s),this.requestContextService.parseUrlPath(e),this.componentMappingsService.setComponentMappings(i),this.initializeSdkService.initialize({initializePageModel:!1,initializeRouterEvents:!1}),n&&this.contentCache.has(l)){const d=this.contentCache.get(l);return this.pageModelService.setPageModel(d),Promise.resolve((0,p.getComponentConfiguration)("",d))}return this.pageModelService.fetchPageModel().toPromise().then(d=>(d=this.updateAssetsPaths(n,this.apiUrlsService.getApiUrls(),d),d=this.removePreviewPaths(n,this.apiUrlsService.getApiUrls(),d),this.contentCache.set(l,d),this.pageModelService.setPageModel(d),this.isBrowser&&clearTimeout(window.entShellTimeout),(0,p.getComponentConfiguration)("",d)))}updateAssetsPaths(e,t,i){if(this.isBrowser&&!e&&this.document.location.origin!==t.live.baseUrl&&i){let s=JSON.stringify(i);return s=s.replace(/("|')\/site\/binaries\//gi,"$1".concat(t.live.baseUrl,"/site/binaries/")),JSON.parse(s)}return i}removePreviewPaths(e,t,i){const{baseUrl:n,previewSuffix:s}=t.live;if(this.isBrowser&&!e&&this.document.location.origin!==n&&i&&s&&s.length){const d=new RegExp("(\"|')/site/([a-z-]+)".concat(s,"/"),"ig");let v=JSON.stringify(i);return v=v.replace(d,m=>m.replace(s,"")),JSON.parse(v)}return i}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(p.InitializeSdkService),o.\u0275\u0275inject(p.ApiUrlsService),o.\u0275\u0275inject(p.RequestContextService),o.\u0275\u0275inject(b),o.\u0275\u0275inject(p.PageModelService),o.\u0275\u0275inject(w),o.\u
10275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(o.PLATFORM_ID))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();const Le=new o.InjectionToken("component-registry"),Re=new o.InjectionToken("app-component-registry");let Fe=(()=>{var r;class a{constructor(e,t,i,n,s){this.pageModelService=e,this.breMappingsService=t,this.newRelic=i,this.sharedCompModulePaths=n,this.appCompModulePaths=s,this.componentModulePaths=void 0!==s?(0,u.A)((0,u.A)({},n),s):n}resolve(){var e=this;return(0,h.A)(function*(){const t=yield(0,f.firstValueFrom)(e.pageModelService.pageModelSubject.pipe((0,f.filter)(n=>null==n?void 0:n.page)));if(null==t||!t.page)return[];const i=e.getPageComponentList(t.page);return Promise.all(i.map(n=>{var s;const l=(null===(s=n._meta.paramsInfo)||void 0===s?void 0:s.layout)||"default";return e.loadModule(n.label,l)}))})()}loadModule(e,t){var i=this;return(0,h.A)(function*(){if(e in i.componentModulePaths)try{const n=yield i.componentModulePaths[e].importModule(t);if(n.componentMapping){const s=n.componentMapping[e];i.registerComponent({[e]:s})}else if(n.\u0275cmp){const s=n;i.registerComponent({["".concat(e,": ").concat(t)]:s})}else i.registerComponentLegacy(n)}catch(n){i.newRelic.noticeError("Component module load failed",n)}})()}getPageComponentList(e){return((null==e?void 0:e.components)||[]).reduce((t,{components:i})=>t.concat(i||[]),[])}registerComponent(e){this.breMappingsService.setComponentMappings(Object.assign({},this.breMappingsService.getComponentMappings(),e))}registerComponentLegacy(e){const t=(0,o.createNgModule)(e),i=this.breMappingsService.getComponentMappings();return this.breMappingsService.setComponentMappings((0,u.A)((0,u.A)({},i),null==t?void 0:t.instance.constructor.\u0275inj.providers.filter(n=>{var s;return"componentMappings"===(null==n||null===(s=n.provide)||void 0===s?void 0:s._desc)})[0].useValue)),t}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(p.PageModelService),o.\u0275\u0275inject(b),o.\u0275\u0275inject(_),o.\u0275\u0275inject(Le),o.\u0275\u0275inject(Re,8))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();function z(r){var a,c,e;null!==(a=r)&&void 0!==a&&a.page&&(r=null===(e=r)||void 0===e?void 0:e.page);const i=((null===(c=r)||void 0===c?void 0:c.components)||[]).find(s=>"CONTAINER_COMPONENT"===s.type&&"Main Container"===s.label);return(null==i?void 0:i.components)||[]}function ae(r){var a,c;return null!==(a=null==r||null===(c=r.models)||void 0===c?void 0:c.alternates)&&void 0!==a?a:[]}function se(r,a){return r.find(c=>c.name===a)}function Ee(r,a,c){const e={models:(0,u.A)({},Ue(c,a)),_meta:{params:a,paramsInfo:(0,u.A)((0,u.A)({},st(a)),{},{variantID:a.variantId})}};return Object.assign({},r,e)}function st(r){return Object.entries(r).reduce((a,[c,e])=>{if("off"===e)a[c]=!1;else if("on"===e)a[c]=!0;else{if("document"===c)return a;a[c]=e}return a},{})}function Ue(r,a){return Object.entries(a).reduce((c,[e,t])=>(c[e]=["document","contentList","list","featuredArticle"].includes(e)?(0,u.A)((0,u.A)({},t),Ue(r,Be(r,t))):"documents"===e&&t?t.reduce((i,n)=>(i.push((0,u.A)((0,u.A)({},n),Be(r,n))),i),[]):t,c),{})}function Be(r,a){return a.$ref.split("/").reduce((c,e)=>e?null==c?void 0:c[e]:r,r)}let V=(()=>{var r;class a{constructor(e,t){if(this.platformId=e,this.newRelic=t,this.cacheDuration=864e5,this.storagePrefix="enterprise",(0,g.isPlatformBrowser)(this.platformId))try{this.storage=window.localStorage}catch(i){}}createCache(e,t){if(!this.storage)return;const i=Date.now(),n=i+this.cacheDuration,s="".concat(this.storagePrefix,".").concat(e),l=this.generateCacheObj(t,i,i,n);this.storage.setItem(s,JSON.stringify(l))}cacheExists(e){var t;const i="".concat(this.storagePrefix,".").concat(e);return!(null===(t=this.storage)||void 0===t||!t.getItem(i))}cacheIsValid(e){var t;const i="".concat(this.storagePrefix,".").concat(e),n=null===(t=this.storage)||void 0===t?void 0:t.getItem(i);return!(!n||"string"!=typeof n)&&JSON.parse(n).expires>Date.now()}getExistingCache(e){var t;const i="".concat(this.storagePrefix,".").concat(e),n=null===(t=this.storage)||void 0===t?void 0:t.getItem(i);try{return n?JSON.parse(n):null}catch(s){return this.newRelic.noticeError("Unable to parse JSON string: ".concat(n)),console.warn(s),null}}updateCache(e,t,i){if(!this.storage)return;const n=Date.now(),s=n+this.cacheDuration;if(this.cacheExists(e)){const l=this.getExistingCache(e),d="".concat(this.storagePrefix,".").concat(e),v=this.generateCacheObj(t,i?n:l.created,n,i?s:l.expires);this.storage.setItem(d,JSON.stringify(v))}else this.createCache(e,t)}deleteExpired(e){if(!this.storage)return;const t=Date.now(),i="".concat(this.storagePrefix,".").concat(e),n=this.getExistingCache(e);n&&n.expires<=t&&this.storage.removeItem(i)}generateCacheObj(e,t,i,n){return{created:t,accessed:i,expires:n,value:e}}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(_))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),ze=(()=>{var r;class a{constructor(e,t,i){this.localStorageService=e,this.platformId=t,this.document=i,this.storageKey="page_view_history",this.durationDays=30}get pageViewHistory(){var e;const t=null===(e=this.localStorageService.getExistingCache(this.storageKey))||void 0===e?void 0:e.value,i=t?JSON.parse(t):{};return this.removeExpiredPageViews(i)}set pageViewHistory(e){const t=this.removeExpiredPageViews(e);this.localStorageService.updateCache(this.storageKey,JSON.stringify(t),!0)}trackRoute(){if((0,g.isPlatformServer)(this.platformId))return;const{pathname:e,search:t}=this.document.location;this.pageViewHistory=(0,u.A)((0,u.A)({},this.pageViewHistory),{},{[e+t]:Date.now()})}getPageViews(e){const t=e&&e>=0?this.filterPageViewsByWindow(this.pageViewHistory,e):this.pageViewHistory;return Object.entries(t).sort(([,i],[,n])=>n-i).map(([i])=>i)}removeExpiredPageViews(e){return this.filterPageViewsByWindow(e,this.durationDays)}filterPageViewsByWindow(e,t){const i=1e3*t*60*60*24,n=Date.now();return Object.entries(e).reduce((s,[l,d])=>(n-d<i&&(s[l]=d),s),{})}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(V),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),N=(()=>{var r;class a{constructor(e){this.pageViewHistoryService=e,this.pageViewHistoryWindow=14}getPersonalization(e){const t=this.formatRoutes(this.pageViewHistoryService.getPageViews(this.pageViewHistoryWindow)),i=e.reduce((n,s)=>(0,u.A)((0,u.A)({},n),{},{[s.characteristicValue]:s}),{});for(const n of t){const s=i[n];if(s)return s}}formatRoutes(e){return e.map(t=>t.toLowerCase().replace(/[^a-z0-9]/g,""))}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(ze))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();var x=function(r){return r.PageViews="pageviews",r.TimeOfDay="time",r.Viewportsize="viewportsize",r}(x||{}),C=function(r){return r.EarlyMorning="earlymorning",r.Morning="morning",r.Midday="midday",r.EarlyAfternoon="earlyafternoon",r.LateAfternoon="lateafternoon",r.EarlyEvening="earlyevening",r.LateEvening="lateevening",r.Night="night",r}(C||{});let $=(()=>{var r;class a{get timeOfDay(){const e=(new Date).getHours();return e>=7&&e<9?C.EarlyMorning:e>=9&&e<11?C.Morning:e>=11&&e<13?C.Midday:e>=13&&e<15?C.EarlyAfternoon:e>=15&&e<17?C.LateAfternoon:e>=17&&e<19?C.EarlyEvening:e>=19&&e<21?C.LateEvening:C.Night}getPersonalization(e){const t=this.timeOfDay;return e.find(i=>i.characteristicValue===t)}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();var W=function(r){return r.Mobile="mobile",r.Tablet="tablet",r.Desktop="desktop",r}(W||{}),ce=function(r){return r.small="(max-width: 599px)",r.smallMedium="(max-width: 767px)",r.medium="(min-width: 600px) and (max-width: 1023px)",r.large="(min-width: 1024px)",r}(ce||{});let H=(()=>{var r;class a{constructor(e){this.breakpointObserver=e}getDeviceSize(){return this.breakpointObserver.isMatched(ce.large)?W.Desktop:this.breakpointObserver.isMatched(ce.medium)?W.Tablet:W.Mobile}getPersonalization(e){const t=this.getDeviceSize();return e.find(i=>i.characteristicValue===t)}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(tt.B))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),q=(()=>{var r;class a{constructor(){this.platformId=(0,o.inject)(o.PLATFORM_ID),this.pageViewPersonalizationStrategy=(0,o.inject)(N),this.timeOfDayPersonalizationStrategy=(0,o.inject)($),this.viewportPersonalizationStrategy=(0,o.inject)(H)}getPersonalization(e){if(!(0,g.isPlatformServer)(this.platformId)&&e.length)return e.find(t=>{if(t.characteristicName)switch(t.characteristicName){case x.PageViews:return this.pageViewPersonalizationStrategy.getPersonalization([t]);case x.TimeOfDay:return this.timeOfDayPersonalizationStrategy.getPersonalization([t]);case x.Viewportsize:return this.viewportPersonalizationStrategy.getPersonalization([t]);default:return}})}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();const Ve="ssc:";let K=(()=>{var r;class a{constructor(e,t,i,n,s){this.requestContextService=e,this.pageModelService=t,this.newrelic=i,this.analyticsService=n,this.personalizationStrategyService=s,this.activeTests=null,this._recipe=null}get recipe(){return this._recipe}set recipe(e){this.newrelic.setCustomAttribute("componentTests",e||""),this._recipe=e}resetState(){this.recipe=null,this.activeTests=null}setState(e){this.recipe=this.generateComponentRecipe(e),this.activeTests=e,this.analyticsService.activeComponentTests={components:this.activeTests,recipe:this.recipe}}executeComponentLevelTests(e,t){if(this.resetState(),this.requestContextService.isPreviewRequest())return e;const i=z(e),n=this.getValidTests(i,t);return this.setState(n),this.applyComponentTests(e,n)}getValidTests(e,t){const i=this.getExperimentationTests(e,t);if(i.length>0)return i;const n=this.getPersonalizationTests(e);return n.length>0?n:[]}getExperimentationTests(e,t){return(null==t?void 0:t.length)>0?this.filterInvalidTests(e,t):[]}getPersonalizationTests(e){return e.reduce((t,i)=>{const n=ae(i),s=this.personalizationStrategyService.getPersonalization(n);return s?[...t,{name:i.name,variant:s.characteristicValue,meta:Ve.concat(s.characteristicName)}]:t},[])}applyComponentTests(e,t){const i=z(e);return t.filter(n=>
1!this.isControl(n)).forEach(n=>{const d=Ee(se(i,n.name),this.findAlternate(i,n.name,n.variant),this.pageModelService.getPageModel());z(e)[this.getIndex(i,n.name)]=d}),e}getIndex(e,t){return e.findIndex(i=>i.name===t)}filterInvalidTests(e,t){return t.reduce((i,n)=>this.isControl(n)||this.findAlternate(e,n.name,n.variant)?[...i,n]:i,[])}isControl(e){return"control"===e.variant}findAlternate(e,t,i){return ae(se(e,t)).find(l=>l.characteristicValue===i)}generateComponentRecipe(e){return e.map(t=>"".concat(t.meta,"%").concat(t.name,"%").concat(t.variant)).join("|")}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(p.RequestContextService),o.\u0275\u0275inject(p.PageModelService),o.\u0275\u0275inject(_),o.\u0275\u0275inject(T),o.\u0275\u0275inject(q))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();const le=new o.InjectionToken("componentMappings");let Ne=(()=>{var r;class a{constructor(e,t,i,n,s,l,d,v,m){this.cmsSdkService=e,this.cookieService=t,this.experimentationService=i,this.cmsConfig=n,this.componentMappings=s,this.router=l,this.componentTestService=d,this.newrelic=v,this.document=m}resolve(e,t){var i=this;return(0,h.A)(function*(){const n=e.params["content-channel"]||e.parent&&e.parent.params["content-channel"];i.cmsConfig.live&&n&&(i.cmsConfig.live.channelPath=n+(i.cmsConfig.useCache?"":i.cmsConfig.live.previewSuffix)),i.cmsConfig.preview&&n&&(i.cmsConfig.preview.channelPath=n+(i.cmsConfig.useCache?"":i.cmsConfig.preview.previewSuffix));let s=yield i.experimentationService.getTestUrl(t.url);const l=yield i.experimentationService.getComponentTests(t.url);s=i.removeChannelForPreview(s,i.cmsConfig);const d=Object.assign({},...i.componentMappings),v=yield i.cmsSdkService.fetchRouteData(s,i.cmsConfig,d,!!i.cmsConfig.useCache).catch(m=>{console.error("Failed to fetch route data",m),i.newrelic.noticeError(m),i.router.navigateByUrl("/page-not-found/")});return i.sendMetadataToNR(t,s),i.experimentationService.checkForInvalidTests(t.url),i.componentTestService.executeComponentLevelTests(v,l)})()}sendMetadataToNR(e,t){const i=this.cookieService.get("C1_CCID");this.newrelic.setPageViewName(e.url,this.document.location.origin),this.newrelic.setCustomAttribute("channel",this.cmsConfig.live?this.cmsConfig.live.channelPath:""),this.newrelic.setCustomAttribute("variantUrl",t),i&&this.newrelic.setCustomAttribute("C1_CCID",i)}removeChannelForPreview(e,t){if(e&&t.live&&t.live.channelPath&&t.live.previewSuffix){const i="/"+t.live.channelPath.replace(t.live.previewSuffix,"")+"/";e.startsWith(i)&&!t.useRootPath&&(e=e.substring(i.length-1))}return e}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(oe),o.\u0275\u0275inject(Ce.O),o.\u0275\u0275inject(A),o.\u0275\u0275inject(j),o.\u0275\u0275inject(le),o.\u0275\u0275inject(y.Router),o.\u0275\u0275inject(K),o.\u0275\u0275inject(_),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),$e=(()=>{var r;class a extends y.DefaultUrlSerializer{serialize(e){const t=super.serialize(e),i=t.indexOf("?")>-1?"?":"#",n=t.split(i);return n[0]&&!n[0].endsWith("/")&&(n[0]+="/"),n.join(i)}}return(r=a).\u0275fac=(()=>{let c;return function(t){return(c||(c=o.\u0275\u0275getInheritedFactory(r)))(t||r)}})(),r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),ct=(()=>{var r;class a{static forRoot(){return{ngModule:a,providers:[w,q,N,$,H,{provide:y.UrlSerializer,useClass:$e},(0,o.provideAppInitializer)(()=>function at(r){return()=>r.load()}((0,o.inject)(ne))())]}}static forLOB(e){return{ngModule:a,providers:[oe,w,K,{provide:T,useClass:xe},{provide:A,useClass:te},{provide:B,useValue:e},{provide:U,useValue:rt[e]||"enterprise"},Ne,Pe,Fe,q,N,$,H,b]}}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275mod=o.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=o.\u0275\u0275defineInjector({}),a})(),Q=(()=>{var r;class a{constructor(e,t,i){this.internalLinkService=e,this.originalCmsConfig=t,this.document=i,this.config=Object.assign({},this.originalCmsConfig,{routeUrl:"",cacheKey:""})}updateCmsConfig(e,t){return this.config.routeUrl=t,this.setContentOnlyChannelPath(e),this.removeChannelNameForPreview(),this.cacheUpdates(),this.config.contentManagementEnvironment&&(this.config.contentManagementIndex="wcm-init"),this.config}get channelPath(){var e;return(null===(e=this.config.live)||void 0===e?void 0:e.channelPath)||""}get urlToFetch(){return this.config.cacheKey}get routeUrl(){return this.config.routeUrl||""}get cmsConfig(){return this.config}updateChannelPath(e){if(!e)return;const{live:t,preview:i}=this.config;t&&(t.channelPath=this.getChannelPath(e,t.previewSuffix)),i&&(i.channelPath=this.getChannelPath(e,i.previewSuffix)),this.config=Object.assign({},this.config,{live:t,preview:i})}setContentOnlyChannelPath(e){this.updateChannelPath(e.params["content-channel"]||e.parent&&e.parent.params["content-channel"])}getChannelPath(e,t){return e.concat(this.config.useCache?"":t)}removeChannelNameForPreview(){const{routeUrl:e,live:t,useRootPath:i}=this.config;if(!e||null==t||!t.channelPath||null==t||!t.previewSuffix)return;const n="/".concat(t.channelPath.replace(t.previewSuffix,""),"/");e.startsWith(n)&&!i&&(this.config.routeUrl=e.substring(n.length-1))}cacheUpdates(){this.setCacheKey(),this.config=Object.assign({},this.config,{routeUrl:this.cleanedRouteUrl}),this.config.useCache&&(this.updateRouteUrlForCache(),this.updateEnvironmentApiUrlsForCache())}get cleanedRouteUrl(){return this.config.useCache?this.internalLinkService.extractHashFragmentAndQueryParams(this.config.routeUrl):this.internalLinkService.extractHashFragment(this.config.routeUrl)}setCacheKey(){this.config=Object.assign({},this.config,{cacheKey:this.config.routeUrl})}updateRouteUrlForCache(){let{routeUrl:e}=this.config;const{useRootPath:t,live:i}=this.config,n=t?"/":"/".concat(null==i?void 0:i.channelPath,"/");e=e===n||"/"===e?"/root.json":e.replace(n,"/").replace(/\/$/,"")+".json",this.config=Object.assign({},this.config,{routeUrl:e})}updateEnvironmentApiUrlsForCache(){let{live:e}=this.config;e=Object.assign({},e,{scheme:this.document.location.protocol.replace(":",""),hostname:this.document.location.hostname,port:parseInt(this.document.location.port)||443}),this.config=Object.assign({},this.config,{live:e})}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(w),o.\u
10275\u0275inject(j),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),L=(()=>{var r;class a{}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),lt=(()=>{var r;class a extends Q{constructor(e,t,i){super(e,t,i)}updateChannelPath(){}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(w),o.\u0275\u0275inject(j),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),dt=(()=>{var r;class a extends Q{constructor(e,t,i){super(e,t,i)}updateCmsConfig(e,t){const i=super.updateCmsConfig(e,t);return i.contentManagementIndex="wcm",i.resolveReferences=!0,i}updateChannelPath(){}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(w),o.\u0275\u0275inject(j),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),de=(()=>{var r;class a{constructor(e){this.http=e}fetchPageModelFromCache({channelPath:e,routeUrl:t}){const i="assets/shell/page_models/".concat(e,"/resourceapi"),n="/".concat(i,"/").concat(t);return this.http.get(n)}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(D.HttpClient))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),ue=(()=>{var r;class a{constructor(e,t,i,n,s,l,d,v){this.apiUrlsService=e,this.requestContextService=t,this.componentMappingsService=i,this.initializeSdkService=n,this.pageModelService=s,this.imageUrlService=l,this.platformId=d,this.document=v,this.contentCache=new k,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId)}get isPlatformBrowser(){return this.isBrowser}fetchRouteData(e,t){var i=this;return(0,h.A)(function*(){let n;return i.cmsSetup(e,t),e.useCache&&i.contentCache.has(e.cacheKey)?n=i.contentCache.get(e.cacheKey):(n=yield i.getPageModelFromCms(e),i.contentCache.set(e.cacheKey,n)),i.pageModelService.setPageModel(n),i.isBrowser&&clearTimeout(window.entShellTimeout),(0,p.getComponentConfiguration)("",n)})()}cmsSetup(e,t){const i=e.routeUrl,n=Object.assign({},...t);this.apiUrlsService.setApiUrls(e),this.requestContextService.parseUrlPath(i),this.componentMappingsService.setComponentMappings(n),this.initializeSdkService.initialize({initializePageModel:!1,initializeRouterEvents:!1})}getPageModelFromCms(e){var t=this;return(0,h.A)(function*(){let i=yield t.fetchPageModel(e);const n=t.getApiUrls(e);return t.isBrowser&&!e.useCache&&t.isBrowser&&t.document.location.origin!==n.live.baseUrl&&(i=function ut(r,a){if(!r.useCache&&a){var c;let e=JSON.stringify(a);return e=e.replace(/("|')\/site\/binaries\//gi,"$1".concat(null===(c=r.live)||void 0===c?void 0:c.baseUrl,"/site/binaries/")),JSON.parse(e)}return a}(n,i),i=function vt(r,a){const{previewSuffix:c}=r.live;if(a&&!r.useCache&&(null==c?void 0:c.length)){const t=new RegExp("(\"|')/site/([a-z-]+)".concat(c,"/"),"ig");let i=JSON.stringify(a);return i=i.replace(t,n=>n.replace(c,"")),JSON.parse(i)}return a}(n,i)),i})()}fetchPageModel(e){var t=this;return(0,h.A)(function*(){return e.useCache&&(t.pageModelService.httpGetOptions=(0,u.A)((0,u.A)({},t.pageModelService.httpGetOptions),{},{withCredentials:!1})),yield t.pageModelService.fetchPageModel().toPromise()})()}getPageModel(){return this.pageModelService.getPageModel()}getContentViaReference(e){return this.pageModelService.getContentViaReference(e)}getPageModelSubject(){return this.pageModelService.getPageModelSubject()}getImageUrl(e,t){return this.imageUrlService.getImageUrl({$ref:e},t)}getComponentConfiguration(e,t){return(0,p.getComponentConfiguration)(e,t)}isPreviewRequest(){return this.requestContextService.isPreviewRequest()}getApiUrls(e){const t=this.apiUrlsService.getApiUrls();return Object.assign({},e,t)}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(p.ApiUrlsService),o.\u0275\u0275inject(p.RequestContextService),o.\u0275\u0275inject(b),o.\u0275\u0275inject(p.InitializeSdkService),o.\u0275\u0275inject(p.PageModelService),o.\u0275\u0275inject(p.ImageUrlService),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();function ve(r){const{live:a,useRootPath:c,routeUrl:e}=r,[t]=e.split("?"),i=c?"/":"/".concat(null==a?void 0:a.channelPath,"/");return t===i||"/"===e||"/"===t?"root":e.replace(i,"/").split("?")[0].slice(1).replace(/\/$/,"")}let he=(()=>{var r;class a{constructor(e,t){this.http=e,this.localStorage=t}fetchPageModelFromApi(e){var t=this;return(0,h.A)(function*(){const i=t.getRequestUrl(e),n=yield t.getHeaders(e),s=t.getRequestParam
1s(e);return yield(0,f.lastValueFrom)(t.http.get(i,{headers:n,params:s}))})()}getRequestUrl(e){const t="content-hub/enterprise/content-management/documents",{contentHubHost:i,usePreviewProxy:n}=e;return n?"https://".concat(i,"/").concat(t):"/".concat(t)}getHeaders(e){return(0,h.A)(function*(){var t;const i=e.contentManagementEnvironment||"",n=e.contentManagementIndex||"";return{"Accept-Encoding":"application/zip","Content-Management-Domain":(e.live.channelPath||"").replace((null===(t=e.live)||void 0===t?void 0:t.previewSuffix)||"",""),"Content-Management-Environment":i,"Content-Type":"application/json;v=7","Content-Management-Index":n,"Content-Management-Cache":"bypass",Accept:"application/json;v=7"}})()}getRequestParams(e){const t=ve(e),i=function ht(r){var a;const[c,e]=(null==r||null===(a=r.routeUrl)||void 0===a?void 0:a.split("?"))||[],t=(null==e?void 0:e.split("&"))||[];if(null!=t&&t.length){var i;const n=t.findIndex(d=>null==d?void 0:d.includes("experimentPath")),[s,l]=n>-1&&(null===(i=t[n])||void 0===i?void 0:i.split("="))||[];if(l)return l}return""}(e);let n=(new D.HttpParams).appendAll({documentPath:t,resolveReferences:!0});return i&&(n=n.set("experimentPath",i)),n}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(D.HttpClient),o.\u0275\u0275inject(V))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),pt=(()=>{var r;class a extends ue{constructor(e,t,i,n,s,l,d,v,m,P){super(e,t,i,n,s,l,d,v),this.contentHubFetchService=m,this.assetsFolderFetchService=P}fetchPageModel(e){var t=()=>super.fetchPageModel,i=this;return(0,h.A)(function*(){var n;if(i.isPreviewRequest()||!i.isPlatformBrowser||!e.contentManagementEnvironment)return yield t().call(i,e);const s=null===(n=e.live)||void 0===n?void 0:n.channelPath;return null!=e&&e.routeUrl&&s?e.useCache?yield i.fetchFromAssetsFolder(e):yield i.fetchFromApi(e):Promise.reject("Config values are missing: routeUrl: ".concat(null==e?void 0:e.routeUrl,", channelPath: ").concat(s))})()}fetchFromApi(e){var t=this;return(0,h.A)(function*(){const i=yield t.contentHubFetchService.fetchPageModelFromApi(e);return t.convertContentHubResponse(i)})()}fetchFromAssetsFolder(e){var t=this;return(0,h.A)(function*(){var i;const n=ve(e),s=(null===(i=e.live)||void 0===i?void 0:i.channelPath)||"";return yield t.assetsFolderFetchService.fetchPageModelFromCache({channelPath:s,routeUrl:n}).pipe((0,G.map)(l=>n.includes("stubs/pageModelStub.json")?l:t.convertContentHubResponse(l))).toPromise()})()}convertContentHubResponse(e){let t=e;var i;return null!=e&&e.documents&&(t=null==e||null===(i=e.documents)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.documentStructure)||void 0===i||null===(i=i.documentStructurePayload)||void 0===i||null===(i=i.bloomreachContent)||void 0===i?void 0:i.content),t}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(p.ApiUrlsService),o.\u0275\u0275inject(p.RequestContextService),o.\u0275\u0275inject(b),o.\u0275\u0275inject(p.InitializeSdkService),o.\u0275\u0275inject(p.PageModelService),o.\u0275\u0275inject(p.ImageUrlService),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(he),o.\u0275\u0275inject(de))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),R=(()=>{var r;class a{}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a}
1)(),ft=(()=>{var r;class a{constructor(e,t,i,n){this.assetsFolderFetchService=e,this.componentMappingsService=t,this.platformId=i,this.contentHubFetchService=n,this.contentCache=new k,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.pageModel={},this.pageModelSubject=new f.BehaviorSubject(this.pageModel)}get isPlatformBrowser(){return this.isBrowser}fetchRouteData(e,t){var i=this;return(0,h.A)(function*(){const n=Object.assign({},...t);if(i.componentMappingsService.setComponentMappings(n),e.useCache&&i.contentCache.has(e.cacheKey))return i.contentCache.get(e.cacheKey);if(e.useCache)return yield i.fetchFromAssetsFolder(e);const s=yield i.contentHubFetchService.fetchPageModelFromApi(e),l=i.convertContentHubResponse(s);return i.contentCache.set(e.cacheKey,l),i.pageModel=l,i.pageModelSubject.next(l),l})()}getPageModel(){return this.pageModel}getPageModelSubject(){return this.pageModelSubject}convertContentHubResponse(e){let t=e;var i;return null!=e&&e.documents&&(t=null==e||null===(i=e.documents)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.documentStructure)||void 0===i?void 0:i.documentStructurePayload),t}fetchFromAssetsFolder(e){var t=this;return(0,h.A)(function*(){var i;const n=ve(e),s=(null===(i=e.live)||void 0===i?void 0:i.channelPath)||"",l=yield(0,f.firstValueFrom)(t.assetsFolderFetchService.fetchPageModelFromCache({channelPath:s,routeUrl:n}));return n.includes("stubs/pageModelStub.json"),l})()}getContentViaReference(e){throw new Error("getContentViaReference method not implemented for ecm page models.")}getImageUrl(e,t){throw new Error("getImageUrl method not implemented for ecm page models.")}getComponentConfiguration(e,t){throw new Error("getComponentConfiguration method not implemented for ecm page models.")}isPreviewRequest(){throw new Error("isPreviewRequest method not implemented for ecm page models.")}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(de),o.\u0275\u0275inject(b),o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(he))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),pe=(()=>{var r;class a{constructor(e,t,i,n,s,l,d,v,m){this.cookieService=e,this.experimentationService=t,this.sharedCmsSdkService=i,this.sharedCmsConfigService=n,this.router=s,this.componentTestService=l,this.newrelic=d,this.componentMappings=v,this.document=m}resolve(e,t){var i=this;return(0,h.A)(function*(){const n=yield i.experimentationService.getTestUrl(t.url),s=yield i.experimentationService.getComponentTests(t.url),l=i.sharedCmsConfigService.updateCmsConfig(e,n),d=yield i.fetchRouteData(l);return i.sendMetadataToNR(t),i.componentTestService.executeComponentLevelTests(d,s)})()}fetchRouteData(e){var t=this;return(0,h.A)(function*(){try{return yield t.sharedCmsSdkService.fetchRouteData(e,t.componentMappings)}catch(n){var i;if(console.error("Failed to fetch route data",n),null!=n&&null!==(i=n.url)&&void 0!==i&&i.includes("page-not-found"))return;t.router.navigateByUrl("/page-not-found/")}})()}sendMetadataToNR(e){const t=this.cookieService.get("C1_CCID");this.newrelic.setPageViewName(e.url,this.document.location.origin),this.newrelic.setCustomAttribute("channel",this.sharedCmsConfigService.channelPath),this.newrelic.setCustomAttribute("variantUrl",this.sharedCmsConfigService.urlToFetch),t&&this.newrelic.setCustomAttribute("C1_CCID",t),this.experimentationService.checkForInvalidTests(e.url)}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(Ce.O),o.\u0275\u0275inject(A),o.\u0275\u0275inject(R),o.\u0275\u0275inject(L),o.\u0275\u0275inject(y.Router),o.\u0275\u0275inject(K),o.\u0275\u0275inject(_),o.\u0275\u0275inject(le),o.\u0275\u0275inject(o.DOCUMENT))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();const fe=[{provide:R,useClass:ue},{provide:L,useClass:Q}],ge=[...fe,pe],We=[{provide:R,useClass:pt},he,de,pe],gt=[...We,{provide:L,useClass:lt}],mt=[...We,{provide:L,useClass:dt},{provide:R,useClass:ft}];let St=(()=>{var r;class a{static forRoot(){return{ngModule:a,providers:ge}}static forRouteData(e,t=!1){return{ngModule:a,providers:ge}}static forCmsMethod(e="bre"){let t;switch(e){case"bre-content-hub":t=gt;break;case"ecm-content-hub":t=mt;break;default:t=ge}return{ngModule:a,providers:t}}static getCmsProviders(e="bre"){let t;return t=fe,t}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275mod=o.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=o.\u0275\u0275defineInjector({imports:[g.CommonModule,y.RouterModule,p.BloomreachExperienceNgSdkModule]}),a})();const _t=(r,a)=>{const c={article:"min read",video:"min video",audio:"min listen"};
1return r&&a&&c[a]&&a?"".concat(r," ").concat(c[a]):r||""},Ct=r=>null!=r&&{article:"Read More",audio:"Listen Now",video:"Watch Now"}[r]||"Read More";var He=function(r){return r.PageView="page_view",r.Conversion="conversion",r.ConversionIntent="conversion_intent",r.DownloadClick="download_click",r.NavigationClick="navigation_click",r.CtaClick="cta_click",r.ApplicationStart="application_start",r.ApplicationStepView="application_step_view",r.ApplicationSubmitAttempt="application_submit_attempt",r.ApplicationSubmitFailure="application_submit_failure",r.ApplicationSubmitComplete="application_submit_complete",r.EmailLink="email_link",r.PhoneLink="phone_link",r.SocialLink="social_link",r.ExternalLink="external_link",r.SiteSearch="site_search",r.RegistrationAttempt="registration_attempt",r.RegistrationFailure="registration_failure",r.RegistrationComplete="registration_complete",r.LoginAttempt="login_attempt",r.LoginFail="login_fail",r.LoginComplete="login_complete",r.SocialShare="social_share",r.AppStoreLinkClick="app_store_link_click",r.Error404="404_error",r.FormStart="form_start",r.FormComplete="form_complete",r.SendAdditionalData="send_additonal_data",r}(He||{}),qe=function(r){return r.Download="download",r.Navigation="navigation",r.ConversionIntent="conversion intent",r.Application="application",r.ExternalLink="external link",r.SiteSearch="site search",r.Registration="registration",r.Login="login",r.Error="error",r.Form="form",r.Cta="cta",r.SendAdditionalData="send additional data",r}(qe||{}),Ke=function(r){return r.Conversion="GA Event - Conversion Intent",r.ConversionIntent="conversion_GA Event - Conversion Intent",r.DownloadClick="GA Event - Download Click",r.NavigationClick="GA Event - Navigation Click",r.CtaClick="GA Event - CTA Click",r.ApplicationSubmit="GA Event - Application Submit",r.EmailLink="GA Event - External Email Link Click",r.PhoneLink="GA Event - External Phone Link Click",r.SocialLink="GA Event - External Social Link Click",r.ExternalLink="GA Event - External General Link Click",r.SiteSearch="GA Event - Site Search",r.Registration="GA Event - Registration",r.Login="GA Event - Login",r.SocialShare="GA Event - Social Share Link",r.AppStoreLinkClick="GA Event - App Store Link Click",r.Error404="GA Event - 404 Error Page View",r.Form="GA Event - Forms",r.SendAdditionalData="GA Event - Send Additional Data",r}(Ke||{}),Qe=function(r){return r.ApplicationStart="start",r.ApplicationAttempt="submit attempt",r.ApplicationComplete="submit complete",r.EmailLink="email link",r.PhoneLink="phone link",r.SocialLink="social link",r.GeneralLink="general link",r.RegistrationAttempt="attempt",r.RegistrationComplete="complete",r.LoginAttempt="login_attempt",r.LoginComplete="login_complete",r.SocialShare="social share intent",r.AppStoreLink="app store link",r.FormStart="form_start",r.FormComplete="form_complete",r.Error404="error 404",r.CaptureGaCid="capture ga cid",r}(Qe||{}),Je=function(r){return r.Registration="username registration",r.Login="username login",r}(Je||{});const Pt=r=>{const a={};return Array.isArray(r)&&r.forEach(({key:c,value:e}={})=>{if(Array.isArray(e)){const{name:t}=e[0];a[c]=t}}),a},yt="/tests/",wt="/article-tests/";var F=function(r){return r.AdobeTarget="target",r.Optimizely="optimizely",r}(F||{});let Mt=(()=>{var r;class a{constructor(){}getTopicLabel(e){if(!e)return"";const t=e.split("/");let i=t[t.length-2].replace(/-/g," ").toLowerCase()||"";return-1!==["tech innovation","privacy security"].indexOf(i)&&(i=i.replace(" "," & ")),i}getTopicUrl(e){if(!e)return e;const t=e.split("/");return"".concat(t.length<4?t.join("/"):t.slice(0,-1).join("/"),"/")}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();function bt(r,a,c=null){return a.reduce((e,t)=>e&&e[t]?e[t]:c,r)}var J=function(r){return r.left="grv-row--sm-start",r.center="grv-row--sm-center",r.right="grv-row--sm-end",r}(J||{});let Dt=(()=>{var r;class a{getGrvAlignmentClass(e){return e&&J.hasOwnProperty(e)?this.getGravityAlignmentClass(e):J.left}getGravityAlignmentClass(e){return J[e]}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();const Ye={};let jt=(()=>{var r;
1class a{constructor(){this.pageComponents$=new f.BehaviorSubject([])}setValue(e,t){Ye[e]=t}getValue(e){return Ye[e]}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),It=(()=>{var r;class a{constructor(){this.actionAlertSource=new f.Subject,this.topicPageFilterState=new f.BehaviorSubject(!1),this.filterArrayObserver=new f.BehaviorSubject([]),this.blogFiltersObserver=new f.BehaviorSubject({topics:[],technologies:[],disciplines:[],count:0}),this.articlesCountObserver=new f.BehaviorSubject(0),this.isBlogFilterObserver=new f.BehaviorSubject(!1),this.actionAlert$=this.actionAlertSource.asObservable(),this.topicPageFilterState$=this.topicPageFilterState.asObservable(),this.filterArray$=this.filterArrayObserver.asObservable(),this.blogFilters$=this.blogFiltersObserver.asObservable(),this.matchedArticlesCount$=this.articlesCountObserver.asObservable(),this.isBlogFilter$=this.isBlogFilterObserver.asObservable()}sendAlert(e){this.actionAlertSource.next(e)}toggleTopicPageFilterClass(){!1===this.topicPageFilterState.getValue()?this.topicPageFilterState.next(!0):this.topicPageFilterState.next(!1)}filterArraySend(e){this.filterArrayObserver.next(e)}setActiveFilters(e){this.blogFiltersObserver.next(e)}setMatchedArticlesCount(e){this.articlesCountObserver.next(e)}sendIsBlogFilter(e){this.isBlogFilterObserver.next(e)}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();const Xe=new o.InjectionToken("queryParams"),At=new o.InjectionToken("appRoutesToken"),Tt=new o.InjectionToken("domainToken"),Ot=new o.InjectionToken("contentServiceProviderToken"),kt=new o.InjectionToken("Query Param Extender");let xt=(()=>{var r;class a{constructor(e){this.platformId=e,this.videoComponentRefs=[],this._isScriptInjected=!1,this.isServer=(0,g.isPlatformServer)(this.platformId),this.windowYouTubeProperty="YT"}get isScriptInjected(){return this._isScriptInjected}set isScriptInjected(e){this._isScriptInjected=e}static getVideoReference(e,t){return t.reduce((i,n)=>null==i?void 0:i[n],e)}static extractVideoId(e){const i=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return-1!==e.indexOf("http")&&null!==i&&i.length?i[2]:e}static onPlayerStateChange(e,t,i){t.playerEvents=e,t.videoTime=e.target.getCurrentTime(),t.videoLength=e.target.getDuration(),i.videoPlayerStateChange(t)}static unloadHandler(e,t,i,n){t.playerEvents=window["player-".concat(i)],t.videoTime=window["player-".concat(i)].getCurrentTime(),t.videoLength=window["player-".concat(i)].getDuration(),n.videoPlayerNavigateAway(t)}static getPlayerConfig(e){return e.isBrowser&&e.videoId?{height:"100%",width:"100%",videoId:e.videoId,playerVars:{rel:0,controls:2,enablejsapi:1},host:"https://www.youtube-nocookie.com",events:{onStateChange:e.onPlayerStateChange.bind(e),onReady:e.onPlayerReady.bind(e)}}:null}addComponentRef(e){this.videoComponentRefs.push(e)}insertIframes(){if(!this.isServer){if(window[this.windowYouTubeProperty])return void this.createYouTubePlayer();window.onYouTubeIframeAPIReady=()=>{this.createYouTubePlayer()}}}setYouTubeSDK(){this.isScriptInjected=!0;const e=window.document,t=e.createElement("script");t.type="text/javascript",t.src="//www.youtube.com/iframe_api",e.head.appendChild(t)}videoSetup(e,t,i){e&&t&&!this.isScriptInjected&&this.setYouTubeSDK(),t&&this.addComponentRef(i),this.insertIframes()}createYouTubePlayer(){this.isServer||this.videoComponentRefs.forEach(e=>{const t=a.getPlayerConfig(e);t&&(window["player-".concat(t.videoId)]=new window.YT.Player(t.videoId,t))})}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),Lt=(()=>{var r;class a extends o.ErrorHandler{constructor(e){super(),this.newRelic=e}handleError(e){this.newRelic.noticeError(this.getErrorMessage(e),(0,u.A)({},e)),console.warn(e)}getErrorMessage(e){if("object"==typeof e&&null!==e){const t=["rejection","message"],i=Object.keys(e).find(n=>t.includes(n));return i?e[i]:e}return e}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(_))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),Rt=(()=>{var r;class a{constructor(e,t,i,n){this.activeRoute=e,this.cacheStorage=t,this.lobName=i,this.persistedQueryParams=n,this.parameterMapKey="parameterMap",t.storagePrefix=this.lobName}initializeLocalStorage(){this.cacheStorage.deleteExpired(this.parameterMapKey),this.storeQueryParams()}getQueryParams(){return this.storeQueryParams(),this.getCachedParams()}getQueryParamString(){return this.generateQueryParamString(this.getQueryParams())}getSpecificQueryParam(e,t=""){return this.getQueryParams()[e]||t}
1removeKeysFromCache(e){if(this.cacheStorage.cacheExists(this.parameterMapKey)){const t=this.getCachedParams(),i=Object.entries(t).reduce((n,[s,l])=>(e.includes(s)||(n[s]=l),n),{});this.cacheStorage.createCache(this.parameterMapKey,i)}}getCachedParams(){var e;const t=null===(e=this.cacheStorage.getExistingCache(this.parameterMapKey))||void 0===e?void 0:e.value;return t?this.getPersistedQueryParams(t):{}}storeQueryParams(){const e=this.getPersistedQueryParams(this.activeRoute.snapshot.queryParams);if(this.shouldPersistQueryParams(e)){const t=this.getCachedParams(),i=(0,u.A)((0,u.A)({},t),e);this.cacheStorage.updateCache(this.parameterMapKey,i,!0)}}getPersistedQueryParams(e){return Object.keys(e).filter(t=>this.persistedQueryParams.includes(t)).reduce((t,i)=>(t[i]=e[i],t),{})}shouldPersistQueryParams(e){return 0!==Object.keys(e).length}generateQueryParamString(e){const t=new D.HttpParams({fromObject:e});return t.keys().length?"?".concat(t.toString()):""}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(y.ActivatedRoute),o.\u0275\u0275inject(V),o.\u0275\u0275inject(B),o.\u0275\u0275inject(Xe))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})(),Ft=(()=>{var r;class a{constructor(e,t,i,n){this.pageModelService=e,this.imageUrlService=t,this.requestContextService=i,this.apiUrlsService=n}getDocContentViaRef(e,t){var i,n;const s=t||(null==e?void 0:e.$ref)||(null==e||null===(i=e.models)||void 0===i||null===(i=i.document)||void 0===i?void 0:i.$ref)||(null==e||null===(n=e.models)||void 0===n||null===(n=n.content)||void 0===n?void 0:n.$ref);return this.pageModelService.getContentViaReference(s)}getImageUrlByPath(e){var t,i;if(!e||e.match("^https?://"))return e;const n=this.requestContextService.isPreviewRequest(),s=this.apiUrlsService.getApiUrls(),l=n?null===(t=s.preview)||void 0===t?void 0:t.baseUrl:null===(i=s.live)||void 0===i?void 0:i.baseUrl;return"".concat(l).concat(e)}getImageUrl(e,t){if(!e)return"";const i=this.imageUrlService.getImageUrl(e)||"",n=this.imageUrlService.getImageUrl(e,t),s=!i.includes(".gif")&&this.imageUrlService.getImageUrl(e,"rdesktop");return t?n:s||i}getPageModelData(){return this.pageModelService.pageModel}getPageModelSubject(){return this.pageModelService.pageModelSubject}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(p.PageModelService),o.\u0275\u0275inject(p.ImageUrlService),o.\u0275\u0275inject(p.RequestContextService),o.\u0275\u0275inject(p.ApiUrlsService))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})(),Et=(()=>{var r;class a{constructor(){}mask(e,t){let i="";const s=(0,u.A)((0,u.A)({},{npi:"mask",injection:"sanitize"}),t),l=I=>I.replace(/\d/g,"x").replace(Se,"x".repeat(I.length)),d=I=>I.replace(/\d/g,"").replace(Se,""),Se=/(<|<)[^>]*?(>|>)/g,$t={npi:[/[2-6]\d{3}.?\d{4}.?\d{4}.?\d{4}/g,/[2-6]\d{3}.?\d{6}.?\d{5}/g,/\d{9,14}/g],injection:[Se]};for(const[I,X]of Object.entries(s)){if("ignore"===X)continue;const Wt="mask"===X?l:d;i=$t[I].reduce((Ht,qt)=>Ht.replace(qt,Wt),i||e)}return i||""}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),a})();const Ut={pageTest:null,componentTests:[]};let Ze=(()=>{var r;class a{constructor(e,t,i,n){var s=this;this.platformId=e,this.document=t,this.newRelicService=i,this.isBrowser=(0,g.isPlatformBrowser)(this.platformId),this.winRef=this.isBrowser?window:null,this._optimizelyRef=new f.Subject,this.optimizelyRef$=this._optimizelyRef.asObservable(),this._globalOptimizelyRef=void 0,this._isInitialized=!1,this.optimizely=(0,h.A)(function*(){return yield s.initializeOptimizely(),s._globalOptimizelyRef}),this.isBrowser&&!this.enableTests()&&console.log('Optimizely disabled for localhost. Add query string "optimizely_token" to enable.'),n.activeABTestingPlatform=O.Optimizely}initializeOptimizely(){var e=this;return(0,h.A)(function*(){var t;if(!e._isInitialized){if(e._isInitialized=!0,!0===(null===(t=e.winRef)||void 0===t||null===(t=t._sequoia)||void 0===t||null===(t=t.optimizely)||void 0===t?void 0:t.loading)&&e.isBrowser)(0,f.fromEvent)(e.winRef,"optimizelyResolved",{once:!0}).subscribe(()=>{(0,f.timer)(0).subscribe(()=>{var s;e._optimizelyRef.next(null===(s=e.winRef)||void 0===s?void 0:s.optimizely)})});else{var i,n;if("function"==typeof(null===(i=e.winRef)||void 0===i||null===(i=i.optimizely)||void 0===i?void 0:i.get)||!e.isBrowser||(null===(n=e.winRef)||void 0===n||null===(n=n._sequoia)||void 0===n?void 0:n.experimentationVendor)!==F.Optimizely)return(0,f.timer)(0).subscribe(()=>{var s;return e._optimizelyRef.next(null===(s=e.winRef)||void 0===s?void 0:s.optimizely)}),void(e._globalOptimizelyRef=yield(0,f.firstValueFrom)(e.optimizelyRef$));e.isBrowser&&(0,f.fromEvent)(e.winRef,"experimentationVendorResolved",{once:!0}).subscribe(()=>{(0,f.timer)(0).subscribe(()=>{var s;return e._optimizelyRef.next(null===(s=e.winRef)||void 0===s?void 0:s.optimizely)})})}e._globalOptimizelyRef=yield(0,f.firstValueFrom)(e.optimizelyRef$.pipe((0,f.timeout)({first:2e3}),(0,f.catchError)(()=>
1(e.newRelicService.noticeError("Optimizely not loaded"),console.log("Optimizely not loaded"),(0,f.of)(void 0)))))}})()}enableTests(){const e=this.document.location;return"localhost"!==e.hostname||"localhost"===e.hostname&&e.search.indexOf("optimizely_token")>0}getAndApplyOffers(e){var t=this;return(0,h.A)(function*(){if(yield t.getOffers(),t.isBrowser){var i;null===(i=t.document)||void 0===i||i.querySelectorAll(".exp-min-height").forEach(s=>{s.classList.remove("exp-min-height")});const n=yield t.siteTestData();n.length>0&&n.forEach(s=>{t.newRelicService.addPageAction("webExperimentApplied",(0,u.A)((0,u.A)({},s),{},{experimentationVendor:F.Optimizely}))})}})()}getTestUrl(e){var t=this;return(0,h.A)(function*(){const i=yield t.getOffers();return null!=i&&i.pageTest?i.pageTest:e})()}getComponentTests(e){var t=this;return(0,h.A)(function*(){const i=yield t.getOffers();return null!=i&&i.componentTests?i.componentTests:[]})()}checkForInvalidTests(e){return(0,h.A)(function*(){})()}siteTestData(){var e=this;return(0,h.A)(function*(){var t;const i=yield e.optimizely(),n=null==i||null===(t=i.get("state"))||void 0===t?void 0:t.getCampaignStates({isActive:!0}),s=[];return e.isBrowser&&n&&Object.entries(n).forEach(([l,d,v])=>{d&&s.push({campaignId:d.experiment.id,campaign:d.experiment.name,experience:d.isInCampaignHoldback?"Holdback_experience":d.variation.name,experienceId:d.isInCampaignHoldback?"Holdback_variant":d.variation.id})}),s})()}getOffers(){var e=this;return(0,h.A)(function*(){if(!e.isBrowser||!e.enableTests())return null;const t=yield e.siteTestData();return new Promise((i,n)=>{var s;const l=(null===(s=window)||void 0===s||null===(s=s._sequoia)||void 0===s?void 0:s.optimizely)||Ut;window.siteTestData=t,i({pageTest:l.pageTest||null,componentTests:l.componentTests||[]})})})()}}return(r=a).\u0275fac=function(e){return new(e||r)(o.\u0275\u0275inject(o.PLATFORM_ID),o.\u0275\u0275inject(o.DOCUMENT),o.\u0275\u0275inject(_),o.\u0275\u0275inject(T))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})();function Bt(r,a){Object.entries(a).forEach(([c,e])=>{r.setInput(c,e);const t=r.instance;if("function"!=typeof t[c])try{t[c]=e}catch(i){}})}const zt=()=>{var r;return(null===(r=globalThis._sequoia)||void 0===r?void 0:r.experimentationVendor)===F.Optimizely?(0,o.inject)(Ze):(0,o.inject)(te)};var me=function(r){return r.approvedProduct="approvedProduct",r.approvedProducts="approvedProducts",r.approvedOffer="approvedOffer",r.autoRefi="auto_refi",r.contract="contract",r.contractWithBrandName="contract-with-brand-name",r.contractWithFootnote="contract-with-footnote",r.contractWithFootnoteAndDynamicBrand="contract-with-footnote-and-dynamic-brand",r.counterOfferApprovedProductWithAdjustedSuffix="counter-offer-approved-product-with-adjusted-suffix",r.counterOfferApprovedProductWithSuffix="counter-offer-approved-product-with-suffix",r.counterOfferDeclinedProductWithSuffix="counter-offer-declined-product-with-suffix",r.credit="credit",r.creditOffer="credit-offer",r.creditOffersFootnote="credit-offers-footnote",r.creditOffersFootnoteSnippet="credit-offers-footnote-snippet",r.date="date",r.dynamicField="dynamicField",r.dynamicFootnote="dynamic-footnote",r.footnote="footnote",r.form="form",r.location="location",r.modal="modal",r.modalLink="modal-link",r.offers="offers",r.product="product",r.rates="rates",r.scroll="scroll",r.tooltip="tooltip",r.referrals="referrals",r.dynamicProductSnippet="dynamicProductSnippet",r.ltoText="lto-text",r.offerAcceptProduct="offerAcceptProduct",r.approvedDisclosuresFootnote="approvedDisclosuresFootnote",r.rateAndFeeModalLink="rate-and-fee-modal-link",r}(me||{});class Ge{constructor(a){this.source="";const[c,e,...t]=a.split(":");this.validateTag(c,e),this.source=a,this.tagType=c,this.value=e,this.extras=t}validateTag(a,c){a&&c?Object.values(me).includes(a)||console.error('Tag type "'.concat(a,'" not recognized. Please only use supported tag types')):console.error("Invalid dynamic data format: tagType:".concat(a," value:").concat(c,". Are you prefixing your dynamic data snippet with the correct tag type? (e.g. ${modal:/your-route/})"))}}function et(r,a){return(r||"").replace(/[$@]{(.*?)}/g,(c,e)=>a(new Ge(e)))}function Y(r){return!!r&&/[$@]{(.*?)}/.test(r)}let Vt=(()=>{var r;class a{dataSourceForSnippet$(e){return this.dataSource$()}getSubstitutionResult(e,t,i){return e||"${".concat(t.source,"}")}updateInnerHtml(e,t){e.nativeElement.innerHTML=Y(t)?"":t}updateInputValue(e,t){e.nativeElement.value=Y(t)?"":t}updateAlt(e,t){e.nativeElement.alt=Y(t)?"":t}transformSnippet(e,t){return et(e,i=>this.substituteValue(i,t))}}return(r=a).\u0275fac=function(e){return new(e||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),a})()}}]); 2//# sourceMappingURL=8133.410f3d4e6c0d3378.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.