1import{a as g}from"./chunk-3DF4RQD2.js";import{a as u}from"./chunk-HVB674ZH.js";import{a as m}from"./chunk-UFVFX55A.js";import{c}from"./chunk-N5ENXTVA.js";import{a as p}from"./chunk-BHKEU3RB.js";import{m as s,u as f}from"./chunk-EGIU7VS7.js";import{F as n,ca as l,ha as o,l as i,r as a}from"./chunk-AP6LFJSD.js";var d=class t{key_profile_data="profileData";profileService=o(u);communicationService=o(p);chatbotBridge=o(g);dialog=o(c);languageService=o(f);lang=this.languageService.getLanguage();setProfileDataModel(e){sessionStorage.setItem(this.key_profile_data,JSON.stringify(e))}getProfileDataModel(){let e=sessionStorage.getItem(this.key_profile_data);return e?JSON.parse(e):null}removeProfileDataModel(){sessionStorage.removeItem(this.key_profile_data)}removeProfileDataModelAndLogout(){this.chatbotBridge.clearChatOnLogout(),sessionStorage.removeItem(this.key_profile_data),this.profileService.clearProfile()}removeProfileDataModelAndLogoutWithPopup(){this.removeProfileDataModelAndLogout(),this.dialog.open(m,{data:{title:"hdr_session_expired",content:"txt_want_to_login",flagConfirm:!0}}).afterClosed().subscribe(e=>{e&&(location.href=s.accountEndPoint+`/${this.lang}/login?returnUrl=`+encodeURIComponent(location.href))})}isProfileToken(){return this.profileService.getProfile().token!=null}loadProfileInfoData(){return this.profileService.getProfile().token?this.communicationService.getCustomerInfo().pipe(a(r=>(this.setProfileDataModel(r),!0)),n(()=>(this.removeProfileDataModelAndLogoutWithPopup(),i(!1)))):(this.removeProfileDataModel(),i(!1))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"})};export{d as a};
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.