PageSourceSearch

https://www.gertraud-gruber.de/theme/abd2316108d940f2267345007b8ed…orefront.cookie-permission.plugin.118dde.js

js gertraud-gruber.de collected 2026-10-02 18:18:27 UTC 1,953 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[51697],{1697:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});var o=i(9568),s=i(1374),n=i(9610),r=i(5206);class a extends o.Z{init(){this._button=this.el.querySelector(this.options.buttonSelector),this._isPreferenceSet()||(this._setBodyPadding(),this._registerEvents(),this._setFocus())}_setFocus(){!this._isDataPrivacyPage()&&this.options.autoFocus&&window.focusHandler.setFocus(this.el,{preventScroll:!0})}_isDataPrivacyPage(){let e=this.el.querySelector(".cookie-permission-content a");if(!(null==e?void 0:e.href))return!1;let t=e=>e.origin+e.pathname.replace(/\/$/,"").toLowerCase(),i=new URL(this._getCurrentLocation()),o=new URL(e.href);return t(i)===t(o)}_getCurrentLocation(){return window.location.href}_isPreferenceSet(){return!!s.Z.getItem(this.options.cookieName)||(this._showCookieBar(),!1)}_showCookieBar(){this.el.style.display="block",this.$emitter.publish("showCookieBar")}_hideCookieBar(){this.el.style.display="none",this.$emitter.publish("hideCookieBar")}_registerEvents(){if(this._button){let e=r.Z.isTouchDevice()?"touchstart":"click";this._button.addEventListener(e,this._handleDenyButton.bind(this))}window.addEventListener("resize",n.Z.debounce(this._setBodyPadding.bind(this),this.options.resizeDebounceTime),{capture:!0,passive:!0})}_handleDenyButton(e){e.preventDefault();let{cookieExpiration:t,cookieName:i}=this.options;this._hideCookieBar(),this._removeBodyPadding(),s.Z.setItem(i,"1",t),this.$emitter.publish("onClickDenyButton")}_calculateCookieBarHeight(){return this.el.offsetHeight}_setBodyPadding(){document.body.style.paddingBottom=this._calculateCookieBarHeight()+"px",this.$emitter.publish("setBodyPadding")}_removeBodyPadding(){document.body.style.paddingBottom="0",this.$emitter.publish("removeBodyPadding")}}a.options={cookieExpiration:30,cookieName:"cookie-preference",buttonSelector:".js-cookie-permission-button",resizeDebounceTime:200,autoFocus:!0}}}]);

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.