Swedbank (2024)

Contact us

`}buildSecondLevelLists(){const isWorkingHourException=Swedbank.communication.virtualAssistantEnabled&&!Swedbank.communication.newVirtualAssistantWorkingHour&&Swedbank.Navigation.isBusiness();const isMissingBusinessProfileException=Swedbank.communication.missingBusinessProfileException&&Swedbank.Navigation.isBusiness();const isChatPanelContent=Swedbank.isAuthenticated&&(!Swedbank.communication.virtualAssistantEnabled&&!Swedbank.communication.chatDisabled||isWorkingHourException||isMissingBusinessProfileException);return[isChatPanelContent&&this.buildChatPanelContent(),Swedbank.isAuthenticated&&this.buildAppointmentContent(),Swedbank.isAuthenticated&&this.buildBankMessagesContent(),this.buildCallbackContent()].filter(Boolean)}buildChatPanelContent(){const isWorkingHourException=Swedbank.communication.virtualAssistantEnabled&&!Swedbank.communication.newVirtualAssistantWorkingHour&&Swedbank.Navigation.isBusiness();const isMissingBusinessProfileException=Swedbank.communication.missingBusinessProfileException&&Swedbank.Navigation.isBusiness();return UI.element`

${Swedbank.communication.isPrivateProgram&&Swedbank.country==="LV"?Swedbank.Labels("chatCommonTitlePrivate"):Swedbank.Labels("chatCommonTitle")}

${isWorkingHourException&&!isMissingBusinessProfileException&&UI.html`

${Swedbank.Labels("notWorkingTimeForChat")}

`} ${isMissingBusinessProfileException&&UI.trustedHTML`

${Swedbank.Labels("notWorkingForPrivateCustomer")}

`} ${!isWorkingHourException&&!isMissingBusinessProfileException&&UI.html`

${Swedbank.Navigation.isPrivate()?Swedbank.Labels("chatDescriptionPrivate"):Swedbank.Labels("chatDescriptionBusiness")}

`}

`}buildAppointmentContent(){const isLinksAppointmentSection=Swedbank.communication.isGoldProgram&&Swedbank.communication.managers.length||Swedbank.communication.isPrivateProgram;return UI.element`

${this.buildExistingAppointmentSection()} ${isLinksAppointmentSection&&this.buildLinksAppointmentSection()} ${!isLinksAppointmentSection&&this.buildCommonAppointmentSection()}

`}buildExistingAppointmentSection(){const link=Swedbank.Navigation.isPrivate()?"private.home.more.appointments":Swedbank.country==="LT"?"business.useful.more.appointments":"business.useful.useful.appointments";return UI.html`

`}buildLinksAppointmentSection(){const isGoldWithManager=Swedbank.communication.isGoldProgram&&Swedbank.communication.managers.length;const customerAppointmentLabel=Swedbank.country==="LV"?Swedbank.Labels("customerAppointmentTitlePrivate"):Swedbank.Labels("customerAppointmentTitle");return UI.html`

${Swedbank.communication.isPrivateProgram?customerAppointmentLabel:Swedbank.Labels("customerGoldAppointmentTitle")}

${Swedbank.communication.isPrivateProgram&&UI.html`

${Swedbank.Labels("customerAppointmentSubtitleWithBanking")}

${UI.trustedHTML`

    ${Swedbank.Labels("appointmentLinksListBanking")}

`}

${Swedbank.Labels("customerAppointmentSubtitleOther")}

${UI.trustedHTML`

    ${Swedbank.Labels("appointmentLinksListOther")}

`} `} ${isGoldWithManager&&UI.trustedHTML`

    ${Swedbank.Labels("appointmentLinksListGold")}

`}

`}buildCommonAppointmentSection(){const link=Swedbank.Navigation.isPrivate()?"private.home.more.appointments":Swedbank.country==="LT"?"business.useful.more.appointments":"business.useful.useful.appointments";return UI.html`

${Swedbank.Labels("customerAppointmentTitle")}

${Swedbank.Labels("customerAppointmentHint")}

`}buildBankMessagesContent(){const isReferenceRequestAvailable=["LV","LT"].indexOf(Swedbank.country)>-1;const referenceRequestLinkPrefix=Swedbank.Navigation.isPrivate()?"private.home.important":Swedbank.country==="LT"?"business.useful.bank":"business.useful.useful";const isAuditOrderAvailable=Swedbank.Navigation.isBusiness()&&Swedbank.country==="EE";const bankMessageLabel=Swedbank.communication.isPrivateProgram&&Swedbank.country==="LV"?Swedbank.Labels("bankMessageTitlePrivate"):Swedbank.Labels("bankMessageTitle");return UI.element`

${bankMessageLabel}

${Swedbank.Navigation.isBusiness()?Swedbank.Labels("bankMessageHintBusiness"):Swedbank.Labels("bankMessageHintCommon")}

`}buildCallbackContent(){const isGoldWithOutManager=Swedbank.communication.isGoldProgram&&Swedbank.communication.managers.length<1;let phone=this.resolvePhoneLabels();const callUsLabel=Swedbank.communication.isPrivateProgram&&Swedbank.country==="LV"?Swedbank.Labels("callUsTitlePrivate"):Swedbank.Labels("callUsTitle");let callUsContent;if(Swedbank.Navigation.isPrivate())if(Swedbank.country==="LV")if(Swedbank.communication.isPrivateProgram)callUsContent=Swedbank.Labels("callUsDescriptionPrivateBanking");else if(isGoldWithOutManager)callUsContent=Swedbank.Labels("callUsDescriptionPrivateGold");else callUsContent=Swedbank.Labels("callUsDescriptionPrivate");else callUsContent=Swedbank.Labels("callUsDescriptionPrivate");else callUsContent=Swedbank.Labels("callUsDescriptionBusiness");return UI.element`

${callUsLabel}

${callUsContent}

${["EE","LV"].indexOf(Swedbank.country)>-1&&UI.html`

${UI.trustedHTML`${phone.fullVisual}`}

`}

${["EE"].indexOf(Swedbank.country)>-1&&UI.html`

${Swedbank.Labels("insuranceIncidents")}

`} ${["LV"].indexOf(Swedbank.country)>-1&&UI.html`

${Swedbank.communication.isPrivateProgram?Swedbank.Labels("insuranceIncidentsPrivateBanking"):isGoldWithOutManager?Swedbank.Labels("insuranceIncidentsPrivateGold"):Swedbank.Labels("insuranceIncidents")}

`}

${["EE","LV"].indexOf(Swedbank.country)>-1?UI.trustedHTML`${phone.incidentsVisual}`:UI.trustedHTML`${phone.fullVisual}`}

`}handleOpenChat(){SharedComponents.eventBus.dispatchCustomEvent("menu-toggle",{active:false});if(Swedbank.sessionStorage.get("openChatFromHeader"))Swedbank.sessionStorage.erase("openChatFromHeader");if(Swedbank.isAuthenticated&&Swedbank.communication.virtualAssistantEnabled){Swedbank.communication.virtualAssistant.toggleVirtualAssistantChat();return}if(!Swedbank.isAuthenticated){if(window.matchMedia("(max-width: 1023.98px)").matches){LoginBar.prototype.updateHeaderLoginButton(true);if(!Hansa.loginbar.initialized)Hansa.loginbar.init();else Hansa.loginbar.show()}else Hansa.loginbar.forcedLoginToggle();Swedbank.sessionStorage.set("openChatFromHeader","true")}}handlePopoverUpdate(e){const nav=e.target&&e.target.closest("ui-nav");if(window.matchMedia("(min-width: 1024px)").matches&&nav&&nav.isSecondaryMenuOpen()){const popover=e.target.closest(".ui-navtoggle__content");popover.style.height=nav.secondaryColumns.clientHeight+"px"}}handleCallbackPanelOpen(){const callbackPanel=this.querySelector("callback-panel");if(callbackPanel)callbackPanel.updateCallbackData()}render(){const container=this.getContainer();const containerSecondLevel=this.getContainerSecondLevel();if(container)UI.rebuild(container,UI.createElement({tagName:container.tagName,classList:{"ui-nav__items":true},children:[].slice.call(this.buildFirstLevelItems().children)}));if(containerSecondLevel)UI.rebuild(containerSecondLevel,UI.insertElements(containerSecondLevel,this.buildSecondLevelLists()))}hydrate(){const navitemCallback=this.nav.querySelector('ui-navitem[item\x3d"'+this.getNavID()+'.communication.callback"]');if(Swedbank.isAuthenticated&&Swedbank.country!=="LV"&&navitemCallback)navitemCallback.addEventListener("click",this.handleCallbackPanelOpen.bind(this.nav));if(Swedbank.isAuthenticated&&Swedbank.communication.managers.length&&Swedbank.Navigation.isPrivate()&&Swedbank.communication.isGoldProgram&&Swedbank.country!=="LT"){const parentPopover=this.nav.closest("ui-navtoggle").popoverElement;if(parentPopover)parentPopover.style.setProperty("--ui-navtoggle-popover-width","700px")}this.nav.addEventListener("navpopover-update",this.handlePopoverUpdate.bind(this))}}exports.ContactsNavPlugin=ContactsNavPlugin;SharedComponents.UINav.registerPlugin("contacts-nav",ContactsNavPlugin)})(HeaderControl);UI.whenDOMReady(()=>{if(Swedbank.sessionStorage.get("openChatFromHeader")&&Swedbank.isAuthenticated)if(Swedbank.communication.missingBusinessProfileException&&Swedbank.Navigation.isBusiness()){Swedbank.sessionStorage.erase("openChatFromHeader");SharedComponents.eventBus.dispatchCustomEvent("menu-toggle",{active:true,for:"nav-contacts",group:"navigation"});WarningMessage.add(Swedbank.Labels.get("notWorkingForPrivateCustomer"))}else setTimeout(HeaderControl.ContactsNavPlugin.prototype.handleOpenChat,300)});

Swedbank (2024)
Top Articles
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6098

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.