PageSourceSearch

https://www.breitkopf.com/theme/6e4ed2aba286bb6a3ac76c0bb1a9e118/j…ti-next-store-locator.index.99828.374b55.js

js breitkopf.com collected 2026-09-24 20:27:34 UTC 9,090 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[99828],{215(t,e,o){o.d(e,{j:()=>s});let i=(-1!==location.search.indexOf("__sl_debug")&&localStorage.setItem("__sl_debug","true"),"true"===localStorage.getItem("__sl_debug")),n="neti::sl";function s(t){return function(){for(var e=arguments.length,o=Array(e),s=0;s<e;s++)o[s]=arguments[s];!1!==i&&console.log("["+n+"::"+t+"]",...o)}}i&&function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];!1!==i&&console.log("["+n+"]",...e)}("Logging enabled.")},828(t,e,o){o.r(e),o.d(e,{COOKIE_CONFIGURATION_UPDATE:()=>h,PLUGIN_CONFIGURATION_INIT:()=>d,default:()=>u});var i=o(215);let n=(0,i.j)("plugin-override");function s(t,e){let o=null;try{if(o=window.PluginManager.getPlugin(t),null===o)throw Error("Plugin is null.")}catch{n('Warning: Trying to override non-registered plugin "%s".',t);return}let i=o.get("class");void 0===i.prototype&&"function"==typeof i().then?i().then(t=>l(t.default,e)):l(i,e)}function l(t,e){if(void 0===t.prototype){n("Warning: the given class definition is invalid",t);return}for(let o in e){if(!Object.hasOwn(e,o))continue;let i=t.prototype[o],s=e[o];if("function"!=typeof i){n('The given method "%s" is not known.',o);continue}t.prototype[o]=function(){"before"in s&&"function"==typeof s.before&&s.before(this),i.apply(this,arguments),"after"in s&&"function"==typeof s.after&&s.after(this)}}}window.Neti=window.Neti||{},window.Neti.StoreLocator=window.Neti.StoreLocator||{},window.Neti.StoreLocator.PluginOverride=s;class a{static isSupported(){return"undefined"!==document.cookie}static setItem(t,e,o){if(null==t)throw Error("You must specify a key to set a cookie");let i=new Date;i.setTime(i.getTime()+864e5*o);let n="";"https:"===location.protocol&&(n="secure"),document.cookie=`${t}=${e};expires=${i.toUTCString()};path=/;sameSite=lax;${n}`}static getItem(t){if(!t)return!1;let e=t+"=",o=document.cookie.split(";");for(let t=0;t<o.length;t++){let i=o[t];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return!1}static removeItem(t){document.cookie=`${t}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/`}static key(){return""}static clear(){}}let r=(0,i.j)("cookie-consent");class c{constructor(t){this.config=t,this.cookieConsentInterface=this._createCookieConsentInterface(),this.continueBtnCallback=null,this.closeButtonEnabled=!1,this.readyListeners=[],this._trackItems(),this._registerEvents()}_createCookieConsentInterface(){return new(window.Neti.StoreLocator.getCookieConsentInterfaceClass())}_getModalElement(){let t=document.querySelectorAll(".neti-store-locator-cookie-consent-modal");for(let e=0;e<t.length;e++){let o=t[e];if(o.parentNode&&("BODY"===o.parentNode.tagName||null!==o.parentNode.offsetParent))return o}return null}_trackItems(){if(this.$modal=this._getModalElement(),!this.$modal){r("The cookie-consent.html.twig is not loaded.");return}this.$continueBtn=this.$modal.querySelector(".cookies-allowed-button"),this.$configureBtn=this.$modal.querySelector(".cookies-not-allowed-button"),this.$allowedText=this.$modal.querySelector(".cookies-allowed"),this.$notAllowedText=this.$modal.querySelector(".cookies-not-allowed"),this.$closeBtn=this.$modal.querySelector("button.close"),this.$abortBtn=this.$modal.querySelector("button.abort-button"),this.baseUrl=this.$modal.getAttribute("data-url"),this.$closeBtn.style.display="none"}_registerEvents(){this.$modal&&!0!==this.$modal._isCookieConsentLoaded&&(this.$continueBtn.addEventListener("click",this.onContinueButtonClicked.bind(this)),this.$configureBtn.addEventListener("click",this.onConfigureButtonClicked.bind(this)),this.$closeBtn.addEventListener("click",this.onCloseButtonClicked.bind(this)),this.$abortBtn.addEventListener("click",this.onAbortButtonClicked.bind(this)),this.$modal._isCookieConsentLoaded=!0),this.cookieConsentInterface.onUpdate(this.onCookieConfigurationUpdated.bind(this))}_applyConfig(t){this.closeButtonEnabled=t.closeButtonEnabled||!1,this.abortCallback=t.abortCallback||this.onCloseButtonClicked.bind(this)}_updateModalPosition(){if(!this.config.cookieModalConfig||!this.config.cookieModalConfig.el)return;let{el:t,offsetTop:e,offsetBottom:o,offsetLeft:i,offsetRight:n,className:s}={offsetTop:0,offsetBottom:0,offsetLeft:0,offsetRight:0,className:"",...this.config.cookieModalConfig};this.$modal.style.position="absolute",this.$modal.style.top=t.offsetTop+e+"px",this.$modal.style.height=t.offsetHeight-e-o+"px",this.$modal.style.left=t.offsetLeft+i+"px",this.$modal.style.backdropFilter="blur(2px)",this.$modal.style.width=t.offsetWidth+i+n+"px",this.$abortBtn.style.display="none",""!==s&&this.$modal.classList.add(s)}
1callReadyListeners(){this.readyListeners.forEach(t=>t()),this.readyListeners=[]}ready(t){return this._applyConfig(t||{}),new Promise(async(t,e)=>{if(this.readyListeners.push(t),this.readyListeners.length>1)return;if(t=()=>this.callReadyListeners(),!1===this.config._cookieConsentEnabled&&this.cookieConsentInterface.shouldCheckIfCookieConsentIsEnabled()){r("The default cookie consent is disabled."),this.callReadyListeners();return}if(!this.$modal){r('Missing "cookie-consent.html.twig" so we continue to prevent any UI issues.'),t();return}if(!1===this.config.requireCookieForGoogleMaps){r("We don't care about any cookie acceptation."),t();return}!1===this.cookieConsentInterface.isInitialized()&&(r("The cookie configurator is not initialized yet so we need for wait for it."),await this.cookieConsentInterface.waitForInitialization(),r("The cookie configurator is now initialized."));let o=a.getItem("neti-store-locator-google-consent");if(!1===o){r("The cookie is not yet allowed by the user so he need to enable it first."),this.showModalWithNotAllowedCookie(t,e);return}if("available"===o&&!0!==this.config.simpleCookieConsent){r("The cookie can be set but is not yet accepted by the user."),this.showModalWithAllowedCookie(t,e);return}if("accepted"===o||!0===this.config.simpleCookieConsent){r("The cookie was accepted by the user, yay."),t();return}r("Unfortunately something went wrong."),e()})}onCookieConfigurationUpdated(t){r("Cookies updated",t),!0===t.detail["neti-store-locator-google-consent"]?(this.$continueBtn.style.display="block",this.$configureBtn.style.display="none",this.$allowedText.style.display="block",this.$notAllowedText.style.display="none",!0===this.config.simpleCookieConsent&&this.onContinueButtonClicked()):(this.$continueBtn.style.display="none",this.$configureBtn.style.display="block",this.$allowedText.style.display="none",this.$notAllowedText.style.display="block")}onContinueButtonClicked(){a.setItem("neti-store-locator-google-consent","accepted",this.config.cookieLifetime),this.$modal.style.display="none","function"==typeof this.continueBtnCallback&&this.continueBtnCallback()}onConfigureButtonClicked(){this.cookieConsentInterface.open()}onCloseButtonClicked(){this.$modal.style.display="none"}onAbortButtonClicked(){this.abortCallback(this.baseUrl)}showModalWithNotAllowedCookie(t){this._updateModalPosition(),this.$modal.style.display="block",this.$continueBtn.style.display="none",this.$allowedText.style.display="none",this.continueBtnCallback=t,!0===this.closeButtonEnabled&&(this.$closeBtn.style.display="block")}showModalWithAllowedCookie(t){this._updateModalPosition(),this.$modal.style.display="block",this.$configureBtn.style.display="none",this.$notAllowedText.style.display="none",this.continueBtnCallback=t,!0===this.closeButtonEnabled&&(this.$closeBtn.style.display="block")}}window.Neti=window.Neti||{},window.Neti.StoreLocator=window.Neti.StoreLocator||{},window.Neti.StoreLocator.CookieConsentInterfaceClass=class{constructor(){this._initialized=null!==this.getPluginInstance(),this._initCallback=null,this._updateCallback=null,this.registerEvents()}_onInit(){this._initialized=!0,"function"==typeof this._initCallback&&(this._initCallback(),this._initCallback=null)}_onCookieConfigurationUpdated(t){"function"==typeof this._updateCallback&&this._updateCallback(t)}registerEvents(){document.$emitter.subscribe(d,this._onInit.bind(this)),document.$emitter.subscribe(h,this._onCookieConfigurationUpdated.bind(this))}isInitialized(){return this._initialized}open(){let t=this.getPluginInstance();t&&t.openOffCanvas()}onUpdate(t){this._updateCallback=t}waitForInitialization(){return new Promise(t=>{if(this._initialized){t();return}this._initCallback=t})}getPluginInstance(){return"CookieConfiguration"in window.PluginManager.getPluginList()&&window.PluginManager.getPluginInstances("CookieConfiguration")[0]||null}shouldCheckIfCookieConsentIsEnabled(){return!0}},window.Neti.StoreLocator.getCookieConsentInterfaceClass=function(){return window.Neti.StoreLocator.CookieConsentInterfaceClass};let d="Neti_CookieConfiguration_Init",h="CookieConfiguration_Update";s("CookieConfiguration",{init:{after(){document.$emitter.publish(d)}}});class u{constructor(t){this.instance=window.Neti.StoreLocator.CookieConsent?window.Neti.StoreLocator.CookieConsent:window.Neti.StoreLocator.CookieConsent=new c(t)}ready(t){return this.instance.ready(t)}}}}]);

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.