PageSourceSearch

https://www.medisana.com/theme/b6764235b2fe3c38eb3e52f738986e01/js…izon.zen-search-expandable.plugin.a2610a.js

js medisana.com collected 2026-09-26 05:48:35 UTC 2,094 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkzenitPlatformHorizon=self.webpackChunkzenitPlatformHorizon||[]).push([[52481],{2481(e,s,t){t.r(s),t.d(s,{default:()=>i});class i extends window.PluginBaseClass{static #e=this.options={searchWidgetCollapseTarget:"#searchCollapse",searchWidgetSearchIcon:".icon-search",headerSelector:".header-main",searchWidgetCloseIcon:".icon-x",searchWidgetOpenedClass:"js-search-open",hiddenClass:"d-none"};init(){let e=this.options;this._collapseTarget=document.querySelector(e.searchWidgetCollapseTarget),this._iconSearch=this.el.querySelector(e.searchWidgetSearchIcon),this._iconClose=this.el.querySelector(e.searchWidgetCloseIcon),this._header=document.querySelector(e.headerSelector),this.onBodyClick=this._onBodyClick.bind(this),this.onKeyDown=this._onKeyDown.bind(this),this._registerEvents()}_registerEvents(){let e=this.options;this._collapseTarget.addEventListener("hide.bs.collapse",()=>{this._iconSearch.classList.remove(e.hiddenClass),this._iconClose.classList.add(e.hiddenClass),this._header.classList.remove(e.searchWidgetOpenedClass),this._unregisterActiveEvents(),window.focusHandler?.resumeFocusState?.("search-expandable")}),this._collapseTarget.addEventListener("show.bs.collapse",()=>{this._iconSearch.classList.add(e.hiddenClass),this._iconClose.classList.remove(e.hiddenClass),this._header.classList.add(e.searchWidgetOpenedClass),this._registerActiveEvents(),window.focusHandler?.saveFocusState?.("search-expandable")})}_registerActiveEvents(){document.body.addEventListener("click",this.onBodyClick),document.addEventListener("keydown",this.onKeyDown)}_unregisterActiveEvents(){document.body.removeEventListener("click",this.onBodyClick),document.removeEventListener("keydown",this.onKeyDown)}_onBodyClick(e){e.target.closest(this.options.searchWidgetCollapseTarget)||(this._closeSearch(),this.$emitter.publish("onBodyClick"))}_onKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this._closeSearch(),this.$emitter.publish("onKeyDown"))}_closeSearch(){bootstrap.Collapse.getInstance(this._collapseTarget).hide(),this.$emitter.publish("closeSearch")}}}}]);

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.