PageSourceSearch

https://www.base.be/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-E4ZKWP6L.js

js base.be collected 2026-09-24 09:32:31 UTC 48,860 bytes, 1 lines download raw bytes

1import{b as W,c as G}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-S6HKPML2.js";import{a as Y}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-PDOW5HKF.js";import{a as j}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-2VC3GU3K.js";import{d as H}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ILERZBX3.js";import{j as B}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-3SUTNENN.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-HIN7FM5G.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-UKWSJFPI.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-RL4ODNTR.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-7NUKZQYM.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-TD5QIOTL.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-IGZIRJQN.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-DIOHHI3M.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-VXQ22NXX.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-IIEKFVOQ.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-IQPPX6NZ.js";import{a as x}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-R6ATEHOJ.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ZYTMMI5R.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ME6OOKIW.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-TZWBTES7.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ALL77O67.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-X6HZOHA2.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-55LBUOLS.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-2IMUUWJB.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-HV7NZ3T3.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ASPNFSTE.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-OTH5IOCH.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-5FXY6EHC.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-UYV7J5M3.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-FJVWFSSK.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-WSQHVBSB.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-KHZYCMEO.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-LUVC62E7.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ZOQH4BRJ.js";import{Ya as U,p as f}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-AKPUID3S.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-3KHHOKR7.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-NJNVRHKN.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ODNOXG5K.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-BYG2IWSB.js";import{j as g,o as b,p as k,r as M,s as D,u as O,v as P,w as V}from"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-FTWOOITD.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-LBCPBUBK.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-ILLEOMOT.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-KFW34AI3.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-G3XYAJPK.js";import"/etc/designs/aff-telenetgroup/ng/dist/telenetgroup-app/chunk-WXUJ2XVZ.js";import"@angular/core";import{CommonModule as Jt}from"@angular/common";import"@angular/core";var c=(()=>{class n{static{this.MESSAGE_GROUP="intent-finder"}static{this.NO_TAG="no-tag"}static{this.TAG_REQUEST_KEY="tag"}static{this.TAG_QUERY_URL_SELECTOR=".tagbasedquery.json"}static{this.HEADER_IMG="logo-yellow-fellow.svg"}static{this.EXPERIENCE_TAG_PARAM="experience_tag"}static{this.SEARCH_TERM_PARAM="search_term"}static{this.INTERNET_NOT_WORKING_TAG="IntentFinder:Internet/mijnthuisnetwerkwifi/Werktniet"}static{this.NETWORK_OUTAGE_LINK_LABEL="scheduled-outage-link"}}return n})();import"@angular/core";import"@ngx-translate/core";import*as S from"@angular/core";import*as K from"@ngx-translate/core";var v=(()=>{class n{constructor(e){this.translateService=e}getLabel(e,i){let r=i?[i,e].join("."):e;return f.getLabelKeyWithTypeLabel(this.joinValues([c.MESSAGE_GROUP,f.normalizeKey(r)]))}getTitle(e,i){let r=this.getNormalizedTitle(e,i);return this.translate(r)===r?this.getNormalizedTitle(e):r}getNormalizedTitle(e,i){let r=i?[i,e].join("."):e;return f.getLabelKeyWithTypeTitle(this.joinValues([c.MESSAGE_GROUP,f.normalizeKey(r)]))}joinValues(e){return e.join(".")}translate(e){return this.translateService.instant(e)}static{this.\u0275fac=function(i){return new(i||n)(S.\u0275\u0275inject(K.TranslateService))}}static{this.\u0275prov=S.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();import"@angular/core";import{map as X}from"rxjs";import"@angular/common/http";import"@angular/platform-browser";var h=(function(n){return n.CATEGORY="category",n.SUBJECT="subject",n.PROBLEM_STATE
1MENT="problem-statement",n})(h||{});var N=class{getParentTagId(){if(this.tagId&&this.tagId.split("/").length>1){let l=this.tagId.split("/");return l.splice(0,l.length-1).join("/")}else return c.NO_TAG}hasChildren(){return this.children.length>0}getFirstLevelTagId(){if(this.tagId)return this.tagId.split("/")[0].split(":")[1]}getIntentLevel(){return this.tagId.includes("/")?this.tagId.split("/").length>2?h.PROBLEM_STATEMENT:h.SUBJECT:h.CATEGORY}getTagIdTail(){if(this.tagId.includes(":")&&this.tagId.includes("/")){let l=this.tagId.split(":"),e=this.tagId.split("/");return[l[0],e[e.length-1]].join(":")}else return this.tagId}};import"@angular/core";import{OcapiCallConfig as pt}from"@telenet/ng-lib-ocapi";import"@angular/core";import*as $ from"@angular/core";var Q=(()=>{class n{toModel(e){let i=e?.modems,r=i?.length&&this.mapNetworkStatus(i);return{modems:i,networkStatus:r}}mapNetworkStatus(e){let i=e.map(this.mapModemStatus);return this.combineNetworkStatus(i)}mapModemStatus({modem:e,network:i}){let r={incident:i.incident.active,change:i.change.active},a=r.incident&&!r.change,d=!r.incident&&!r.change,m=!r.incident&&r.change,_=d&&!e.inservice;return{isNetworkUp:d,isMajorOutage:a,isPlannedMaintenanceInProgress:m,isModemUnreachable:_}}combineNetworkStatus(e){let i=Object.keys(e[0]),r={};return i.forEach(a=>r[a]=e.some(d=>d[a])),r}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=$.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();import*as I from"@angular/core";import*as q from"@telenet/ng-lib-ocapi";var J=(()=>{class n{constructor(e,i){this.ocapiService=e,this.modemsMapper=i,this.PROPERTY_URL="/public/?p=modems"}getModems(e){return this.ocapiService.doGet(this.getOcapiCallConfig(e))}getOcapiCallConfig(e){return new pt(e,this.PROPERTY_URL,this.modemsMapper,void 0,void 0,!1,void 0,!0)}static{this.\u0275fac=function(i){return new(i||n)(I.\u0275\u0275inject(q.OcapiService),I.\u0275\u0275inject(Q))}}static{this.\u0275prov=I.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();import*as E from"@angular/core";import*as Z from"@angular/common/http";import*as tt from"@angular/platform-browser";var et=(()=>{class n{constructor(e,i,r){this.httpClient=e,this.sanitizer=i,this.networkService=r}getModems(e){return this.networkService.getModems(e)}buildIntents(e){let i=[];if(e)for(let r of e){let a=new N;a.tagId=r.tagId,a.title=r.title,a.description=r.description,r.children&&(a.children=this.buildIntents(r.children)),i.push(a)}return i}getIntentByTagId(e,i){let r=a=>d=>d.reduce((m,_)=>m||(_.tagId===a?_:r(a)(_.children||[])),void 0);return r(e)(i)}getTagIdsForDisplay(e,i){let r=[];for(r.push(e);e!=="";)e=this.getPreviousTag(e),r.push(e);return r&&r.filter(a=>a).sort((a,d)=>a.length-d.length).map(a=>this.getIntentByTagId(a,i)?this.getIntentByTagId(a,i).title:"").join(" - ")}fetchIntentResults(e){return this.httpClient.get(e).pipe(X(i=>i))}getContentFromLink(e){return this.httpClient.get(e,{responseType:"text"}).pipe(X(i=>this.sanitizer.bypassSecurityTrustHtml(i)))}getPreviousTag(e){let i=e.split("/");return i.splice(0,i.length-1).join("/")}static{this.\u0275fac=function(i){return new(i||n)(E.\u0275\u0275inject(Z.HttpClient),E.\u0275\u0275inject(tt.DomSanitizer),E.\u0275\u0275inject(J))}}static{this.\u0275prov=E.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();import"@angular/platform-browser";import{EventCategoryEnum as ut}from"@telenet/ng-lib-datalayer";import"@angular/core";var o=(()=>{class n{static{this.ATTRIBUTES_ITEM_NAME="itemName"}static{this.ATTRIBUTES_STEP_ID="stepId"}static{this.ATTRIBUTES_INTENT="intent"}static{this.ATTRIBUTES_FLOW_TYPE="flowType"}static{this.ATTRIBUTES_SOURCE="source"}static{this.ATTRIBUTES_FLOW_TYPE_SIMULATION="simulation"}static{this.ATTRIBUTES_ITEM_DATA="itemData"}static{this.ATTRIBUTES_INTENT_VALUE="intent finder"}static{this.ATTRIBUTES_INTENT_FINDER_SEARCH="intent finder search"}static{this.ATTRIBUTES_READ_ALL_ARTICLES="Read all articles about "}static{this.ATTRIBUTES_ON_SITE_SEARCH_TERM="onsiteSearchTerm"}static{this.EVENT_TYPE_CLICK="click"}static{this.EVENT_TYPE_SIMULATION_FLOW_START="simulation-flow-start"}static{this.EVENT_TYPE_SIMULATION_FLOW_END="simulation-flow-end"}static{this.EVENT_TYPE_IMPRESSION="impression"}static{this.EVENT_TYPE_ON_SITE_SEARCH="on-site-search"}static{this.EVENT_TYPE_NETWORK_STATUS_PLM="planned maintenance (PLM)"}static{this.EVENT_TYPE_NETWORK_STATUS_MO="major outage (MO)"}static{this.EVENT_TYPE_NETWORK_STATUS_OK="no planned maintenance or major outages"}static{this.EVENT_TYPE_NETWORK_STATUS_UNAUTHORIZED="login needed for planned works"}static{this.EVENT_TYPE_NOTIFICATION_ACTION_LOGIN="login"}static{this.EVENT_TYPE_NOTIFICATION_ACTION_VIEW_STATUS="view network status"}static{this.EVENT_NAME_STEP_CATEGORY_CHOICE="step - category choice"}static{this.EVENT_NAME_STEP_SUBJECT_CHOICE="step - subject choice"}
1static{this.EVENT_NAME_STEP_PROBLEM_STATEMENT="step - problem statement"}static{this.EVENT_NAME_STEP_RESULTS="step - results"}static{this.EVENT_NAME_STEP_RESULT_DETAIL="step - result detail"}static{this.EVENT_NAME_STEP_ANSWER_HELPFUL="step - answer helpful"}static{this.EVENT_NAME_INTENT_FINDER_STARTED="intent finder started"}static{this.EVENT_NAME_INTENT_FINDER_COMPLETED="intent finder completed"}static{this.EVENT_NAME_INTENT_FINDER_RESTARTED="intent finder restarted"}static{this.EVENT_NAME_OPTION_SELECTED="option selected"}static{this.EVENT_NAME_READ_ALL_ARTICLES="read all articles"}static{this.EVENT_NAME_ON_SITE_SEARCH_MADE="on-site search made"}static{this.EVENT_NAME_RESULT_ARTICLE_VIEWED="result article viewed"}static{this.EVENT_NAME_CLOSE_ICON_CLICKED="close icon clicked"}static{this.EVENT_NAME_ANSWER_HELPFUL_CLICKED="answer helpful button clicked"}static{this.EVENT_NAME_ANSWER_NOT_HELPFUL_CLICKED="answer not helpful button clicked"}static{this.EVENT_NAME_NETWORK_NOTIFICATION_VIEWED="intent finder notification viewed"}static{this.EVENT_NAME_NETWORK_NOTIFICATION_CLICKED="intent finder notification clicked"}static{this.EVENT_SOURCE_BRAND="telenet"}static{this.NAMESPACE_INTENTFINDER="intentfinder"}}return n})();import*as C from"@angular/core";import*as it from"@telenet/ng-lib-datalayer";var L=(()=>{class n{constructor(e){this.dataLayerService=e}pushPageStepDataToAnalytics(e,i){let r={};r[o.ATTRIBUTES_STEP_ID]=i,r[o.ATTRIBUTES_INTENT]=o.ATTRIBUTES_INTENT_VALUE,r[o.ATTRIBUTES_FLOW_TYPE]=o.ATTRIBUTES_FLOW_TYPE_SIMULATION,r[o.ATTRIBUTES_SOURCE]=this.getSource(e),this.dataLayerService.addStepViewEvent(r)}pushEventDataToAnalytics(e,i,r,a,d,m){let _=this.dataLayerService.createEventInfo(i,r,[c.MESSAGE_GROUP]),y=this.dataLayerService.createCategory(ut.PRIMARY_CATEGORY_CARE),p={};p[o.ATTRIBUTES_ITEM_NAME]=a,p[o.ATTRIBUTES_ITEM_DATA]=d,p[o.ATTRIBUTES_ON_SITE_SEARCH_TERM]=m,p[o.ATTRIBUTES_INTENT]=o.ATTRIBUTES_INTENT_VALUE,p[o.ATTRIBUTES_FLOW_TYPE]=o.ATTRIBUTES_FLOW_TYPE_SIMULATION,p[o.ATTRIBUTES_SOURCE]=this.getSource(e),this.dataLayerService.addEvent(_,p,y)}getBrand(){return`${o.ATTRIBUTES_INTENT_VALUE}: ${o.EVENT_SOURCE_BRAND}`}getSource(e){return e.toLowerCase()===o.NAMESPACE_INTENTFINDER?`${this.getBrand()}`:`${this.getBrand()}: ${e}`}sendStartEventToAnalytics(e,i,r){i&&this.pushEventDataToAnalytics(e,o.EVENT_NAME_INTENT_FINDER_STARTED,o.EVENT_TYPE_SIMULATION_FLOW_START),r&&this.pushEventDataToAnalytics(e,o.EVENT_NAME_INTENT_FINDER_RESTARTED,o.EVENT_TYPE_CLICK)}sendSearchEventToAnalytics(e,i,r){if(i){let a=o.ATTRIBUTES_READ_ALL_ARTICLES+r;this.pushEventDataToAnalytics(e,o.EVENT_NAME_READ_ALL_ARTICLES,o.EVENT_TYPE_CLICK,a)}this.pushEventDataToAnalytics(e,o.EVENT_NAME_ON_SITE_SEARCH_MADE,o.EVENT_TYPE_ON_SITE_SEARCH,o.ATTRIBUTES_INTENT_FINDER_SEARCH,null,r)}sendStepDataToAnalytics(e,i){let r;i&&i.tagId?r=i.getIntentLevel()===h.PROBLEM_STATEMENT?o.EVENT_NAME_STEP_PROBLEM_STATEMENT:o.EVENT_NAME_STEP_SUBJECT_CHOICE:r=o.EVENT_NAME_STEP_CATEGORY_CHOICE,this.pushPageStepDataToAnalytics(e,r)}sendResultStepDataToAnalytics(e,i){let r=i?o.EVENT_NAME_STEP_ANSWER_HELPFUL:o.EVENT_NAME_STEP_RESULTS;this.pushPageStepDataToAnalytics(e,r)}sendResultDetailsViewEventToAnalytics(e,i){this.pushPageStepDataToAnalytics(e,o.EVENT_NAME_STEP_RESULT_DETAIL),this.pushEventDataToAnalytics(e,o.EVENT_NAME_RESULT_ARTICLE_VIEWED,o.EVENT_TYPE_IMPRESSION,i.pageTitle,i.pageUrl),this.pushEventDataToAnalytics(e,o.EVENT_NAME_INTENT_FINDER_COMPLETED,o.EVENT_TYPE_SIMULATION_FLOW_END)}sendFeedbackInfoToAnalytics(e,i,r){let a=r?o.EVENT_NAME_ANSWER_HELPFUL_CLICKED:o.EVENT_NAME_ANSWER_NOT_HELPFUL_CLICKED;this.pushEventDataToAnalytics(e,a,o.EVENT_TYPE_CLICK,i.pageTitle,i.pageUrl)}sendOptionSelectEventToAnalytics(e,i){this.pushEventDataToAnalytics(e,o.EVENT_NAME_OPTION_SELECTED,o.EVENT_TYPE_CLICK,i)}sendNetworkInfoToAnalytics(e,i,r){let a=o.EVENT_NAME_NETWORK_NOTIFICATION_VIEWED,d=o.EVENT_TYPE_IMPRESSION;r&&(a=o.EVENT_NAME_NETWORK_NOTIFICATION_CLICKED,d=o.EVENT_TYPE_CLICK),this.pushEventDataToAnalytics(e,a,d,i)}static{this.\u0275fac=function(i){return new(i||n)(C.\u0275\u0275inject(it.DataLayerService))}}static{this.\u0275prov=C.\u0275\u0275defineInjectable({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();import"@telenet/ng-lib-ocapi";import*as t from"@angular/core";import*as ot from"@angular/platform-browser";import*as at from"@telenet/ng-lib-ocapi";import*as T from"@angular/common";import*as u from"@angular/forms";import{EventEmitter as ht}from"@angular/core";import"@ngx-translate/core";import"@telenet/ng-lib-ocapi";import*as s from"@angular/core";import*as A from"@ngx-translate/core";import*as rt from"@angular/common";function Et(n,l){if(n&1){let e=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",5),s.\u0275\u0275element(1,"span",6),s.\u0275\u0275pipe(2,"translate"),s.\u0275\u0275elementStart(3,"div",7),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(e);let r=s.\u0275\u0275nextContext(2);
1return s.\u0275\u0275resetView(r.onCloseNotification())}),s.\u0275\u0275elementEnd()()}if(n&2){let e=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(),s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind1(2,1,e.getLabel("no-outage")),s.\u0275\u0275sanitizeHtml)}}function ft(n,l){if(n&1){let e=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",8),s.\u0275\u0275element(1,"span",9),s.\u0275\u0275pipe(2,"translate"),s.\u0275\u0275elementStart(3,"a",10),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(e);let r=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(r.onRedirectToCheckStatus())}),s.\u0275\u0275elementStart(4,"u"),s.\u0275\u0275text(5),s.\u0275\u0275pipe(6,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(7,"div",7),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(e);let r=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(r.onCloseNotification())}),s.\u0275\u0275elementEnd()()}if(n&2){let e=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(),s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind1(2,2,e.getLabel("scheduled-outage")),s.\u0275\u0275sanitizeHtml),s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(6,4,e.getLabel("scheduled-outage-link-text")))}}function It(n,l){if(n&1){let e=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",11),s.\u0275\u0275element(1,"span",12),s.\u0275\u0275pipe(2,"translate"),s.\u0275\u0275elementStart(3,"div",7),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(e);let r=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(r.onCloseNotification())}),s.\u0275\u0275elementEnd()()}if(n&2){let e=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(),s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind1(2,1,e.getLabel("general-outage")),s.\u0275\u0275sanitizeHtml)}}function gt(n,l){if(n&1&&(s.\u0275\u0275elementStart(0,"div",2),s.\u0275\u0275template(1,Et,4,3,"div",3)(2,ft,8,6,"div",1)(3,It,4,3,"div",4),s.\u0275\u0275elementEnd()),n&2){let e=s.\u0275\u0275nextContext();s.\u0275\u0275advance(),s.\u0275\u0275property("ngIf",e.isNetworkUp&&e.isInternetNotWorkingTagSelected),s.\u0275\u0275advance(),s.\u0275\u0275property("ngIf",e.isPlannedMaintenanceOn),s.\u0275\u0275advance(),s.\u0275\u0275property("ngIf",e.networkStatus==null?null:e.networkStatus.isMajorOutage)}}function St(n,l){if(n&1){let e=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",8),s.\u0275\u0275element(1,"span",13),s.\u0275\u0275pipe(2,"translate"),s.\u0275\u0275elementStart(3,"a",10),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(e);let r=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(r.onLogin())}),s.\u0275\u0275elementStart(4,"u"),s.\u0275\u0275text(5),s.\u0275\u0275pipe(6,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275element(7,"span",14),s.\u0275\u0275pipe(8,"translate"),s.\u0275\u0275elementStart(9,"div",7),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(e);let r=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(r.onCloseNotification())}),s.\u0275\u0275elementEnd()()}if(n&2){let e=s.\u0275\u0275nextContext();s.\u0275\u0275advance(),s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind1(2,3,e.getLabel("not-logged-in")),s.\u0275\u0275sanitizeHtml),s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(6,5,e.getLabel("signup"))),s.\u0275\u0275advance(2),s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind1(8,7,e.getLabel("check-out")),s.\u0275\u0275sanitizeHtml)}}var st=(()=>{class n{constructor(e,i,r,a){this.intentFinderLabelService=e,this.intentFinderDatalayerService=i,this.translateService=r,this.window=a,this.login=new ht,this.isLoggedIn=!1,this.showNotification=!0}ngOnChanges(){this.isLoggedIn=this.loginDetails&&this.loginDetails.isLoggedIn(),this.setNetworkStatus(this.networkStatus)}getLabel(e){return this.intentFinderLabelService.getLabel(e)}onCloseNotification(){this.showNotification=!1}onLogin(){this.trackEvent(o.EVENT_TYPE_NOTIFICATION_ACTION_LOGIN,!0),this.login.emit(this.tagId)}onRedirectToCheckStatus(){let e=this.getLabel(c.NETWORK_OUTAGE_LINK_LABEL),i=this.translateService.instant(e);this.trackEvent(o.EVENT_TYPE_NOTIFICATION_ACTION_VIEW_STATUS,!0),this.window.location.href=i}get isInternetNotWorkingTagSelected(){return this.tagId&&this.tagId===c.INTERNET_NOT_WORKING_TAG}
1get showLogin(){let e=!this.loginDetails.isLoggedIn()&&this.isInternetNotWorkingTagSelected&&this.showNotification&&this.isIntentResultsShown;return e&&this.trackEvent(o.EVENT_TYPE_NETWORK_STATUS_UNAUTHORIZED,!1),e}setNetworkStatus(e){e&&(this.isNetworkUp=e.isNetworkUp,this.isPlannedMaintenanceOn=e.isPlannedMaintenanceInProgress,this.networkStatusText&&this.trackEvent(this.networkStatusText,!1))}trackEvent(e,i){this.intentFinderDatalayerService.sendNetworkInfoToAnalytics(this.rootNameSpace,e,i)}get networkStatusText(){if(this.networkStatus&&this.loginDetails&&this.loginDetails.isLoggedIn()){if(this.isNetworkUp&&this.isInternetNotWorkingTagSelected)return o.EVENT_TYPE_NETWORK_STATUS_OK;if(this.isPlannedMaintenanceOn)return o.EVENT_TYPE_NETWORK_STATUS_PLM;if(this.networkStatus?.isMajorOutage)return o.EVENT_TYPE_NETWORK_STATUS_MO}}static{this.\u0275fac=function(i){return new(i||n)(s.\u0275\u0275directiveInject(v),s.\u0275\u0275directiveInject(L),s.\u0275\u0275directiveInject(A.TranslateService),s.\u0275\u0275directiveInject("Window"))}}static{this.\u0275cmp=s.\u0275\u0275defineComponent({type:n,selectors:[["app-network-notification"]],inputs:{networkStatus:"networkStatus",tagId:"tagId",loginDetails:"loginDetails",isIntentResultsShown:"isIntentResultsShown",rootNameSpace:"rootNameSpace"},outputs:{login:"login"},standalone:!1,features:[s.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[["class","text-align--center m--m mr--l--sm ml--l--sm",4,"ngIf"],["class","notification notification--warning notification--closable",4,"ngIf"],[1,"text-align--center","m--m","mr--l--sm","ml--l--sm"],["class","notification notification--info notification--closable",4,"ngIf"],["class","notification notification--errorfield notification--closable",4,"ngIf"],[1,"notification","notification--info","notification--closable"],[1,"icon","icon-information-shape","info",3,"innerHTML"],[1,"icon","icon-cross","cursor--pointer",3,"click"],[1,"notification","notification--warning","notification--closable"],[1,"icon","icon-alert-shape","warning",3,"innerHTML"],[1,"pl--xxs",3,"click"],[1,"notification","notification--errorfield","notification--closable"],[1,"icon","icon-error-shape","errorfield",3,"innerHTML"],[1,"icon","icon-information-shape","warning",3,"innerHTML"],[1,"pl--xxs",3,"innerHTML"]],template:function(i,r){i&1&&s.\u0275\u0275template(0,gt,4,3,"div",0)(1,St,10,9,"div",1),i&2&&(s.\u0275\u0275property("ngIf",r.networkStatus&&(r.loginDetails==null?null:r.loginDetails.isLoggedIn())&&r.showNotification),s.\u0275\u0275advance(),s.\u0275\u0275property("ngIf",r.showLogin))},dependencies:[rt.NgIf,A.TranslatePipe],encapsulation:2,changeDetection:0})}}return n})();import*as lt from"@ngx-translate/core";var Nt=["intentResultIframe"],Ct=n=>({visibility:n}),Lt=n=>({"animation-icon-loading--extended":n}),At=(n,l)=>({"animated-content-fade-in--delay":n,"animated-content-fade-in":l}),F=n=>({value:n}),Rt=n=>({visibility:n});function wt(n,l){if(n&1&&(t.\u0275\u0275elementStart(0,"div",12)(1,"div",13),t.\u0275\u0275element(2,"img",14),t.\u0275\u0275elementEnd()()),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(2,Lt,e.showInitialAnimation)),t.\u0275\u0275advance(),t.\u0275\u0275property("src",e.getImagePath(),t.\u0275\u0275sanitizeUrl)}}function yt(n,l){if(n&1&&(t.\u0275\u0275elementStart(0,"div",12)(1,"div",15),t.\u0275\u0275element(2,"img",14),t.\u0275\u0275elementEnd()()),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("src",e.getImagePath(),t.\u0275\u0275sanitizeUrl)}}function xt(n,l){if(n&1){let e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",4)(1,"div",5)(2,"div",6)(3,"a",7),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.loadPreviousScreen())}),t.\u0275\u0275element(4,"i",8)(5,"span",9),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(7,"tg-overlay-close",10),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(8,wt,3,4,"div",11)(9,yt,3,1,"div",11),t.\u0275\u0275elementEnd()()}if(n&2){let e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275property("ngStyle",t.\u0275\u0275pureFunction1(7,Ct,e.isAboveHomeLevel()?"visible":"hidden")),t.\u0275\u0275advance(2),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(6,5,e.getLabel("go-back")),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(2),t.\u0275\u0275property("innerClose",!0),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",!e.isResultLoading&&!e.isContentFrom
1LinkShown),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.isResultLoading)}}function Ft(n,l){if(n&1&&t.\u0275\u0275element(0,"app-greeting-message",27),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("firstName",e.contactDetails==null?null:e.contactDetails.firstName)("hideName",(e.contactDetails==null?null:e.contactDetails.type)!==0)("hideCommaSeparator",!0)}}function bt(n,l){if(n&1&&(t.\u0275\u0275element(0,"span",28),t.\u0275\u0275pipe(1,"translate")),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(1,1,e.getLabel("home-level",!0)),t.\u0275\u0275sanitizeHtml)}}function kt(n,l){if(n&1&&(t.\u0275\u0275element(0,"span",28),t.\u0275\u0275pipe(1,"translate")),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(1,1,e.getLabel("intermediate-level",!0),t.\u0275\u0275pureFunction1(4,F,e.getSelectedIntentsAsBreadcrumb())),t.\u0275\u0275sanitizeHtml)}}function Mt(n,l){if(n&1&&(t.\u0275\u0275element(0,"span",28),t.\u0275\u0275pipe(1,"translate")),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(1,1,e.getLabel("your-results-for",!0),t.\u0275\u0275pureFunction1(4,F,e.getSelectedIntentsAsBreadcrumb())),t.\u0275\u0275sanitizeHtml)}}function Dt(n,l){if(n&1&&(t.\u0275\u0275element(0,"span",28),t.\u0275\u0275pipe(1,"translate")),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(1,1,e.getLabel("results-heading-success",!0)),t.\u0275\u0275sanitizeHtml)}}function Ot(n,l){if(n&1&&(t.\u0275\u0275element(0,"span",28),t.\u0275\u0275pipe(1,"translate")),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(1,1,e.getLabel("results-heading-error",!0)),t.\u0275\u0275sanitizeHtml)}}function Pt(n,l){if(n&1){let e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-network-notification",29),t.\u0275\u0275listener("login",function(r){t.\u0275\u0275restoreView(e);let a=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(a.handleLogin(r))}),t.\u0275\u0275elementEnd()}if(n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("networkStatus",e.networkStatus)("tagId",e.selectedIntent==null?null:e.selectedIntent.tagId)("loginDetails",e.loginDetails)("isIntentResultsShown",e.isIntentResultsShown)("rootNameSpace",e.rootNamespace)}}function Vt(n,l){if(n&1){let e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",33),t.\u0275\u0275listener("click",function(){let r=t.\u0275\u0275restoreView(e).$implicit,a=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(a.selectIntent(r))}),t.\u0275\u0275elementStart(1,"button",34)(2,"div",35)(3,"div"),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd()()()()}if(n&2){let e=l.$implicit;t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(e.title)}}function Ut(n,l){if(n&1&&(t.\u0275\u0275elementStart(0,"div",30)(1,"ul",31),t.\u0275\u0275template(2,Vt,5,1,"li",32),t.\u0275\u0275elementEnd()()),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",e.intents)}}function Ht(n,l){if(n&1){let e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",33),t.\u0275\u0275listener("click",function(){let r=t.\u0275\u0275restoreView(e).$implicit,a=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(a.loadSelectedLink(r))}),t.\u0275\u0275elementStart(1,"button",34)(2,"div",35)(3,"div"),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd()()()()}if(n&2){let e=l.$implicit;t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(e.pageTitle)}}function Bt(n,l){if(n&1&&(t.\u0275\u0275elementStart(0,"div",30)(1,"ul",31),t.\u0275\u0275template(2,Ht,5,1,"li",32),t.\u0275\u0275elementEnd()()),n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",e.intentResults)}}function jt(n,l){if(n&1){let e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",36)(1,"div",37),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(r.initialize(null,!0,!0))}),t.\u0275\u0275element(2,"button",38),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}if(n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(3,1,e.getLabel("start-over")),t.\u0275\u0275sanitizeHtml)}}function Wt(n,l){if(n&1){let e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",39),t.\u0275\u0275element(1,"div",40),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementStart(3,"div",41)(4,"input",42),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275listener("keyup.enter",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(r.doSearch(!1))}),t.\u0275\u0275twoWayListener("ngModelChange",function(r){t.\u0275\u0275restoreView(e);let a=t.\u0275\u0275nextContext(2);return t.\u0275\u0275twoWayBindingSet(a.searchTerm,r)||(a.searchTerm=r),t.\u0275\u0275resetView(r)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"span",43)(7,"i",44),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(r.doSearch(!1))}),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(8,"a",45),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(r.doSearch(!0))}),t.\u0275\u0275elementEnd()()}if(n&2){let e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(2,5,e.getLabel("is-topic-not-found")),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(3),t.\u0275\u0275property("placeholder",t.\u0275\u0275interpolate(t.\u0275\u0275pipeBind1(5,7,e.getLabel("type-something")))),t.\u0275\u0275twoWayProperty("ngModel",e.searchTerm),t.\u0275\u0275advance(4),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(9,9,e.getLabel("search-all-articles"),t.\u0275\u0275pureFunction1(12,F,e.getFirstLevelIntent().title)),t.\u0275\u0275sanitizeHtml)}}function Yt(n,l){if(n&1&&(t.\u0275\u0275elementStart(0,"div",16)(1,"div",17)(2,"div",18)(3,"div",19),t.\u0275\u0275template(4,Ft,1,3,"app-greeting-message",20),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",21),t.\u0275\u0275template(6,bt,2,3,"span",22)(7,kt,2,6,"span",22)(8,Mt,2,6,"span",22)(9,Dt,2,3,"span",22)(10,Ot,2,3,"span",22),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(11,Pt,1,5,"app-network-notification",23)(12,Ut,3,1,"div",24)(13,Bt,3,1,"div",24)(14,jt,4,3,"div",25)(15,Wt,10,14,"div",26),t.\u0275\u0275elementEnd()()()),n&2){let e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(12,At,e.showInitialAnimation,e.isIntentListShown)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!(e.isResultLoading||e.isIntentResultsShown||e.isContentFromLinkShown)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!e.isAboveHomeLevel()&&!e.isResultLoading&&!e.isIntentResultsShown&&e.isIntentListShown),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.isAboveHomeLevel()&&!e.isResultLoading&&!e.isIntentResultsShown&&!e.isContentFromLinkShown&&e.isIntentListShown),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.isIntentResultsShown&&!e.isEmptyResultTitles),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.isIntentResultsShown&&e.isEmptyResultTitles&&!e.isErrorResultTitles),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.isIntentResultsShown&&e.isEmptyResultTitles&&e.isErrorResultTitles),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.loginDetails&&!e.hideNetworkInfo),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.isIntentListShown),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",!e.isResultLoading&&e.isIntentResultsShown&&!e.isEmptyResultTitles),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.isIntentResultsShown),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",e.showSearchSection())}}function Gt(n,l){if(n&1){let e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",16),t.\u0275\u0275element(2,"app-loader",46),t.\u0275\u0275elementStart(3,"div",47)(4,"div",48)(5,"div",49)(6,"iframe",50,0),t.\u0275\u0275listener("load",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(r.updateIframeWithDelay())}),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275elementStart(8,"div",51)(9,"div",52)(10,"div",53),t.\u0275\u0275element(11,"div",54),t.\u0275\u0275pipe(12,"translate"),t.\u0275\u0275elementStart(13,"div",55)(14,"div",56)(15,"button",57),t.\u0275\u0275pipe(16,"translate"),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.feedbackPositive())}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(17,"div",56)(18,"button",58),t.\u0275\u0275pipe(19,"translate"),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);let r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.feedbackNegative())}),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(20,"div",59)(21,"div",60),t.\u0275\u0275element(22,"img",61),t.\u0275\u0275elementEnd()()()()()}if(n&2){let e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("enableLoader",e.enableLoader),t.\u0275\u0275advance(),t.\u0275\u0275property("ngStyle",t.\u0275\u0275pureFunction1(13,Rt,e.isIframeResultLoading?"hidden":"visible")),t.\u0275\u0275advance(3),t.\u0275\u0275property("src",e.selectedResultLink,t.\u0275\u0275sanitizeResourceUrl),t.\u0275\u0275advance(5),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(12,7,e.getLabel("is-topic-not-found-footer")),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(4),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(16,9,e.getLabel("feedback-ok")),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(19,11,e.getLabel("feedback-not-ok")),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(4),t.\u0275\u0275property("src",e.getImagePath(),t.\u0275\u0275sanitizeUrl)}}var ct=(()=>{class n extends k{constructor(e,i,r,a,d,m,_,y,p){super(),this.urlService=e,this.intentFinderLabelService=i,this.intentFinderDatalayerService=r,this.intentFinderService=a,this.loaderService=d,this.domSanitizer=m,this.deviceDetectorService=_,this.cafeContactDetails=y,this.loginService=p,this.intents=[],this.intentResults=[],this.isIntentListShown=!1,this.isIntentResultsShown=!1,this.isContentFromLinkShown=!1,this.isEmptyResultTitles=!1,this.isErrorResultTitles=!1,this.isResultLoading=!1,this.isIframeResultLoading=!1,this.isComponentLoaded=!1,this.showInitialAnimation=!0,this.searchTerm="",this.isFeedbackPositive=!1}ngOnInit(){let e=this.urlService.getRequestParameterOrDefault(c.TAG_REQUEST_KEY,c.NO_TAG);this.getLoginDetails(),this.showInitialAnimation=e===c.NO_TAG,this.initialize(this.getSelectedIntent(e),!0)}ngAfterViewInit(){setTimeout(()=>{this.isComponentLoaded=!0},1e3)}initialize(e,i,r){this.intentFinderDatalayerService.sendStartEventToAnalytics(this.rootNamespace,i,r),e?this.initializeFromIntent(e):this.initializeFromConfiguration()}loadPreviousScreen(){this.isResultLoading||(this.isFeedbackPositive=!1,this.isContentFromLinkShown&&this.intentResults.length>1||this.isEmptyResultTitles?this.displayResults(!1):this.loadParentOfSelectedIntent())}getImagePath(){let e=c.HEADER_IMG;return O.getImagePath("INTENT_FINDER",e)}isAboveHomeLevel(){return this.selectedIntent&&this.selectedIntent.tagId!==c.NO_TAG}selectIntent(e){e.tagId&&this.intentFinderDatalayerService.sendOptionSelectEventToAnalytics(this.rootNamespace,e.getTagIdTail()),this.initializeFromIntent(e),this.showInitialAnimation=!1}getLabel(e,i){let r=this.rootNamespace.toLowerCase();return i?this.intentFinderLabelService.getTitle(e,r):this.intentFinderLabelService.getLabel(e)}getSelectedIntentsAsBreadcrumb(){return this.selectedIntent&&this.intentFinderService.getTagIdsForDisplay(this.selectedIntent.tagId,this.getConfiguredIntents())}loadSelectedLink(e){this.intentFinderDatalayerService.sendOptionSelectEventToAnalytics(this.rootNamespace,e.pageTitle),e.redirectUrl?this.openRedirectUrl(e.redirectUrl):(this.reset(),this.isContentFromLinkShown=!0,this.isResultLoading=!1,this.isIframeResultLoading=!0,this.loaderService.start(),this.selectedIntentResult=e,this.selectedResultLink=e.pageUrl,this.intentFinderDatalayerService.sendResultDetailsViewEventToAnalytics(this.rootNamespace,e),this.updateIframeWithDelay())}feedbackPositive(){this.isFeedbackPositive=!0,this.intentFinderDatalayerService.sendFeedbackInfoToAnalytics(this.rootNamespace,this.selectedIntentResult,!0),this.showEmptyResults(!1)}feedbackNegative(){this.isFeedbackPositive=!1,this.intentFinderDatalayerService.sendFeedbackInfoToAnalytics(this.rootNamespace,this.selectedIntentResult,!1),this.intentResults.length===1?this.loadParentOfSelectedIntent():this.displayResults(!1)}
1doSearch(e){let i=e?this.getFirstLevelIntent().description:this.searchTerm;this.intentFinderDatalayerService.sendSearchEventToAnalytics(this.rootNamespace,e,i),this.urlService.openNewTab(this.getSearchUrl(e))}showSearchSection(){return this.isIntentResultsShown&&this.getFirstLevelIntent()&&this.getFirstLevelIntent().description&&this.getFirstLevelIntent().description.length>0&&this.isFeedbackPositive===!1}onOverlayClose(){this.intentFinderDatalayerService.pushEventDataToAnalytics(this.rootNamespace,o.EVENT_NAME_CLOSE_ICON_CLICKED,o.EVENT_TYPE_CLICK)}onMultiSolutionTabClick(){this.updateIframeHeightAndLinks(!1)}getFirstLevelIntent(){return this.getSelectedIntent(`${this.rootNamespace}:${this.selectedIntent.getFirstLevelTagId()}`)}updateIframeHeightAndLinks(e){if(this.intentResultIframe){let i=this.intentResultIframe.nativeElement;if((i.contentDocument||i.contentWindow.document).readyState==="complete"){let r=i.contentDocument||i.contentWindow.document;this.updateIframeLinks(e,r),this.updateIframeHeight(i,r)}}}handleLogin(e){if(this.urlService.getParameterByName(c.TAG_REQUEST_KEY)===e)this.loginService.login();else{let r=this.getReferralUrl(e);this.loginService.login(r)}}getContactDetails(){this.cafeContactDetails.getContactDetails(c.MESSAGE_GROUP).subscribe(e=>this.contactDetails=e)}updateIframeLinks(e,i){e&&i&&i.querySelectorAll("a").forEach(r=>{r.target="_blank"})}updateIframeHeight(e,i){e&&i&&(e.style.height=i.documentElement.scrollHeight+50+"px",this.isIframeResultLoading=!1,this.loaderService.stop())}updateIframeWithDelay(){setTimeout(()=>{this.updateIframeHeightAndLinks(!0)},500)}getLoginDetails(){this.loginService.getLoginDetails().subscribe(e=>{this.loginDetails=e,e&&e.isLoggedIn()&&(this.getContactDetails(),this.getNetworkStatus())})}openRedirectUrl(e){this.deviceDetectorService.isMobile()?this.urlService.openWindow(e):this.urlService.openNewTab(e)}loadResultsFromIntent(e){this.intentFinderService.fetchIntentResults(this.getTagQueryUrl(e)).subscribe(i=>{if(i){if(this.intentResults=i,this.intentResults.length===1){this.loadSelectedLink(this.intentResults[0]);return}this.displayResults(!0)}else this.showEmptyResults(!0)})}showEmptyResults(e){this.reset(),this.isEmptyResultTitles=!0,this.isErrorResultTitles=e,this.isIntentResultsShown=!0,this.intentFinderDatalayerService.sendResultStepDataToAnalytics(this.rootNamespace,this.isFeedbackPositive)}getSelectedIntent(e){return this.intentFinderService.getIntentByTagId(e,this.getConfiguredIntents())}initializeFromIntent(e){this.selectedIntent=e,e.hasChildren()?(this.intentFinderDatalayerService.sendStepDataToAnalytics(this.rootNamespace,e),this.loadIntents(e.children)):this.loadResultsFromIntent(e)}initializeFromConfiguration(){this.selectedIntent=null,this.intentFinderDatalayerService.sendStepDataToAnalytics(this.rootNamespace,null),this.loadIntents(this.getConfiguredIntents())}loadParentOfSelectedIntent(){this.selectedIntent&&(this.selectedIntent=this.getSelectedIntent(this.selectedIntent.getParentTagId()),this.initialize(this.selectedIntent,!1))}displayResults(e){this.reset(),e?(this.isResultLoading=!0,this.animateResult()):(this.isIntentResultsShown=!0,this.isResultLoading=!1,this.intentFinderDatalayerService.sendResultStepDataToAnalytics(this.rootNamespace,this.isFeedbackPositive))}loadIntents(e){this.intents=e,this.reset(),this.isIntentListShown=!0}getConfiguredIntents(){return this.tagsFromNamespace?this.intentFinderService.buildIntents(this.tagsFromNamespace):[]}getTagQueryUrl(e){let i=`${this.tagQueryServletUrl}${c.TAG_QUERY_URL_SELECTOR}`,r=`${c.TAG_REQUEST_KEY}=${e.tagId}`;return`${i}?${r}`}animateResult(){setTimeout(()=>{this.isIntentResultsShown=!0,this.isResultLoading=!1,this.intentFinderDatalayerService.sendResultStepDataToAnalytics(this.rootNamespace,this.isFeedbackPositive)},4e3)}reset(){this.isIntentListShown=!1,this.isIntentResultsShown=!1,this.isContentFromLinkShown=!1,this.isEmptyResultTitles=!1,this.searchTerm=""}getSearchUrl(e){return e?`${this.searchUrl}#/${c.EXPERIENCE_TAG_PARAM}=${this.getFirstLevelIntent().description}`:`${this.searchUrl}#/${c.SEARCH_TERM_PARAM}=${this.searchTerm}`}getNetworkStatus(){this.intentFinderService.getModems(c.MESSAGE_GROUP).subscribe(e=>this.networkStatus=e.networkStatus)}getReferralUrl(e){let i=this.urlService.getCurrentUrl(),a=this.urlService.getRequestParametersAsString()?"&":"?",d=`${c.TAG_REQUEST_KEY}=${e}`;return i.concat(a).concat(d)}static{this.\u0275fac=function(i){return new(i||n)(t.\u0275\u0275directiveInject(g),t.\u0275\u0275directiveInject(v),t.\u0275\u0275directiveInject(L),t.\u0275\u0275directiveInject(et),t.\u0275\u0275directiveInject(M
1),t.\u0275\u0275directiveInject(ot.DomSanitizer),t.\u0275\u0275directiveInject(j),t.\u0275\u0275directiveInject(H),t.\u0275\u0275directiveInject(at.LoginService))}}static{this.\u0275cmp=t.\u0275\u0275defineComponent({type:n,selectors:[["tg-intent-finder"]],viewQuery:function(i,r){if(i&1&&t.\u0275\u0275viewQuery(Nt,5),i&2){let a;t.\u0275\u0275queryRefresh(a=t.\u0275\u0275loadQuery())&&(r.intentResultIframe=a.first)}},hostBindings:function(i,r){i&1&&t.\u0275\u0275listener("overlay:close",function(){return r.onOverlayClose()},t.\u0275\u0275resolveDocument)("multi-solution-tab:click",function(){return r.onMultiSolutionTabClick()},t.\u0275\u0275resolveDocument)},inputs:{rootNamespace:"rootNamespace",componentInstanceId:"componentInstanceId",tagsFromNamespace:"tagsFromNamespace",tagQueryServletUrl:"tagQueryServletUrl",searchUrl:"searchUrl",hideNetworkInfo:"hideNetworkInfo",enableLoader:"enableLoader",enableMask:"enableMask"},standalone:!1,features:[t.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[["intentResultIframe",""],["class","conversational-header",4,"ngIf"],["class","responsivegrid",4,"ngIf"],[4,"ngIf"],[1,"conversational-header"],[1,"header-site","header-site--conversational"],[1,"header-site--conversational__container"],[1,"header-site--conversational__container__back",3,"click","ngStyle"],[1,"icon","icon-chevron-left"],[1,"text-flow--label",3,"innerHTML"],[3,"innerClose"],["class","header-yellow-fellow",4,"ngIf"],[1,"header-yellow-fellow"],[1,"logo",3,"ngClass"],["alt","Telenet",1,"logo--yellow-fellow",3,"src"],[1,"logo","animation-icon-loading--extended"],[1,"responsivegrid"],[1,"aem-Grid","aem-Grid--12"],[1,"intent-finder","animated-content-fade-in",3,"ngClass"],[1,"text-flow--h2","text-align--center","m--m","mr--l--sm","ml--l--sm"],[3,"firstName","hideName","hideCommaSeparator",4,"ngIf"],[1,"text-flow--body","text-align--center","m--m"],[3,"innerHTML",4,"ngIf"],[3,"networkStatus","tagId","loginDetails","isIntentResultsShown","rootNameSpace","login",4,"ngIf"],["class","intent-finder__container",4,"ngIf"],["class","intent-finder__container intent-finder__container--start-again-bar flex-direction--column mt--m pt--m intent-finder__container--animated-content-fade-in",4,"ngIf"],["class","intent-finder__container intent-finder__container--search-bar flex-direction--column pt--m pb--m intent-finder__container--animated-content-fade-in",4,"ngIf"],[3,"firstName","hideName","hideCommaSeparator"],[3,"innerHTML"],[3,"login","networkStatus","tagId","loginDetails","isIntentResultsShown","rootNameSpace"],[1,"intent-finder__container"],[1,"list-inline__list","display--flex","flex-direction--column","width--full","intent-finder__container--max-width-default","mt--l"],["class","list-inline__list__item animation-show-slide-up",3,"click",4,"ngFor","ngForOf"],[1,"list-inline__list__item","animation-show-slide-up",3,"click"],[1,"list-button","list-button--inline"],[1,"list-button__label"],[1,"intent-finder__container","intent-finder__container--start-again-bar","flex-direction--column","mt--m","pt--m","intent-finder__container--animated-content-fade-in"],[1,"display--flex","justify-content--center","align-items--center","width--full","mt--xxs","mb--xxs",3,"click"],[1,"button","button--secondary","button--default--width",3,"innerHTML"],[1,"intent-finder__container","intent-finder__container--search-bar","flex-direction--column","pt--m","pb--m","intent-finder__container--animated-content-fade-in"],[1,"text-flow--h4","text-align--center","mt--m","mb--xxs","intent-finder__container--max-width-default",3,"innerHTML"],[1,"form__input-container","form__input--with-icon","border-radius--all--m","mt--xxs","mb--xxs","intent-finder__container--max-width-default"],["type","text","pattern","",1,"form__input",3,"keyup.enter","ngModelChange","ngModel","placeholder"],[1,"form__input--icon","cursor--pointer"],[1,"icon","icon-search",3,"click"],[1,"link","mt--xxs","mb--xxs",3,"click","innerHTML"],[3,"enableLoader"],[1,"aem-Grid","aem-Grid--12",3,"ngStyle"],[1,"intent-finder"],[1,"intent-finder__container--results","width-full","animated-content-fade-in","pt--m","pb--m"],["t
1itle","Intent Finder Results","width","100%",2,"border","0",3,"load","src"],[1,"sticky-footer-v2","position--fixed","background-white","width--full","py--m","px--xm","p--xm--md","display--flex","justify-content--center","align-items--center","box-sizing--inherit","shadow--xs-inverse","position--bottom","position--left"],[1,"intent-finder","width--full","default-max-site-width","display--flex"],[1,"intent-finder__container","intent-finder__container--start-again-bar","flex-direction--column","ml--xxxl"],[1,"text-flow--h4","mb--xxs","text-align--center",3,"innerHTML"],[1,"display--flex","justify-content--center","align-items--center","width--full","mt--xxs","mb--xxs"],[1,"back-section"],[1,"button","button--secondary","button--default--width",3,"click","innerHTML"],[1,"button","button--secondary","button--default--width","ml--m",3,"click","innerHTML"],[1,"intent-finder__container--start-again-bar--logo"],[1,"logo","animation-icon-loading--helper-in"],["alt","Logo Telenet Yellow Fellow",1,"logo--yellow-fellow",3,"src"]],template:function(i,r){i&1&&t.\u0275\u0275template(0,xt,10,9,"div",1)(1,Yt,16,15,"div",2)(2,Gt,23,15,"div",3),i&2&&(t.\u0275\u0275property("ngIf",r.isComponentLoaded),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",r.isComponentLoaded),t.\u0275\u0275advance(),t.\u0275\u0275property("ngIf",r.isContentFromLinkShown))},dependencies:[T.NgClass,T.NgForOf,T.NgIf,T.NgStyle,D,u.DefaultValueAccessor,u.NgControlStatus,u.PatternValidator,u.NgModel,W,P,Y,st,lt.TranslatePipe],encapsulation:2})}}return n})();import"@angular/core";import{CommonModule as Kt}from"@angular/common";import{TranslateModule as zt,TranslateService as $t}from"@ngx-translate/core";import{FormsModule as Qt}from"@angular/forms";import{provideHttpClient as qt}from"@angular/common/http";import*as R from"@angular/core";var dt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=R.\u0275\u0275defineNgModule({type:n})}static{this.\u0275inj=R.\u0275\u0275defineInjector({providers:[qt(),$t,g,b],imports:[Kt,B,zt,Qt,G,U.forRoot(x.imagePath),V.forRoot(x.imagePath)]})}}return n})();import*as w from"@angular/core";var $i=(()=>{class n{static{this.components={"tg-intent-finder":ct}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=w.\u0275\u0275defineNgModule({type:n})}static{this.\u0275inj=w.\u0275\u0275defineInjector({imports:[Jt,dt]})}}return n})();export{$i as NavigationCommonModule};

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.