PageSourceSearch

https://www.narayana-verlag.de/theme/6d906b806b5f68f448270a01cc8f5…/intedia-narayana-theme.js?1790316233

js narayana-verlag.de collected 2026-10-02 07:41:46 UTC 10,830 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={156:e=>{var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o(Array.isArray(e)?[]:{},e,t):e}function n(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function s(e,t){try{return t in e}catch(e){return!1}}function o(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var c,u,d=Array.isArray(r);return d!==Array.isArray(e)?i(r,l):d?l.arrayMerge(e,r,l):(u={},(c=l).isMergeableObject(e)&&a(e).forEach(function(t){u[t]=i(e[t],c)}),a(r).forEach(function(t){(!s(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(s(e,t)&&c.isMergeableObject(r[t])?u[t]=(function(e,t){if(!t.customMerge)return o;var r=t.customMerge(e);return"function"==typeof r?r:o})(t,c)(e[t],r[t],c):u[t]=i(r[t],c))}),u)}o.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return o(e,r,t)},{})},e.exports=o}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=r(156),n=r.n(i);class a{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let r=a.toUpperCamelCase(e,t);return a.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>a.ucFirst(e.toLowerCase())).join(""):a.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class s{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(e,{detail:t,cancelable:r});return this.el.dispatchEvent(i),i}subscribe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,n=e.split("."),a=r.scope?t.bind(r.scope):t;if(r.once&&!0===r.once){let t=a;a=function(r){i.unsubscribe(e),t(r)}}return this.el.addEventListener(n[0],a),this.listeners.push({splitEventName:n,opts:r,cb:a}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,r)=>([...r.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(r.splitEventName[0],r.cb):e.push(r),e),[]),!0}reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}}class o{constructor(e,t={},r=!1){if(!(e instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${r}".`);return}this.el=e,this.$emitter=new s(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=[this.constructor.options,this.options,e];return t.push(this._getConfigFromDataAttribute()),t.push(this._getOptionsFromDataAttribute()),n().all(t.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_getConfigFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=a.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-config`);return r?window.PluginConfigManager.get(this._pluginName,r):e}_getOptionsFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=a.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-options`);if(r)try{return JSON.parse(r)}catch(e){console.error(`The data attribute "data-${t}-options" could not be parsed to json: ${e.message}`)}return e}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}}class l extends o{static #e=this.options={experimentName:"ProductPageCrossSellingRemoval",hiddenVariationName:"Variation1"};init(){this._campaign=this.el.dataset.crosssellingCampaign||"pdp-beliebte-alternativen",this._debug="true"===this.el.dataset.crosssellingAbtestDebug,this._addCampaignParamsToLinks(),this._registerExperiment()}_registerExperiment(){if(!window._paq){this._log("window._paq nicht verfügbar - Matomo A/B-Test wird nicht ausgeführt (Fallback: Block bleibt sichtbar).");return}let e=this.el,t=this._log.bind(this),r=this.el.dataset.crosssellingExperiment||this.options.experimentName,i=this.el.dataset.crosssellingHiddenVariation||this.options.hiddenVariationName;window._paq.push(["AbTesting::create",{name:r,includedTargets:[{attribute:"url",type:"any",value:"",inverted:"0"}],excludedTargets:[],variations:[{name:"original",activate:function(){t(`Variante "original" aktiv (Experiment "${r}") - Block bleibt sichtbar.`)}},{name:i,activate:function(n){t(`Variante "${i}" aktiv (Experiment "${r}") - Block wird ausgeblendet.`),n.onReady(function(){e.style.display="none"})}}],trigger:function(){return!0}}])}_addCampaignParamsToLinks(){let e=this.el.querySelectorAll("[data-product-number]");if(0===e.length){this._log("Keine Slides mit data-product-number gefunden - keine Kampagnenparameter gesetzt.");return}let t=0;
1e.forEach(e=>{let r=e.dataset.productNumber,i=e.dataset.slidePosition||"";r&&e.querySelectorAll("a[href]").forEach(e=>{this._appendCampaignParams(e,r,i)&&(t+=1)})}),this._log(`Kampagnenparameter an ${t} Produktlink(s) angeh\xe4ngt.`)}_appendCampaignParams(e,t,r){try{let i=new URL(e.href,window.location.origin);return i.searchParams.set("mtm_campaign",this._campaign),i.searchParams.set("mtm_keyword",t),r&&i.searchParams.set("mtm_content",r),e.href=i.toString(),!0}catch(e){return!1}}_log(e){this._debug&&console.info(`[PdpCrossSellingAbTest] ${e}`)}}let c="dynamic-breadcrumb";class u extends o{static #e=this.options={domainId:"",pageType:"",categoryId:"",productCategoryIds:[]};init(){"category"===this.options.pageType?this._storeBreadcrumb():"product"===this.options.pageType&&(this._replaceBreadcrumbAndActiveNavigationId(),this.el.classList.remove("cms-breadcrumb--loading"))}_storeBreadcrumb(){if(!this.options.categoryId||!this.options.domainId)return;let e=this.el.querySelector('nav[aria-label="breadcrumb"]'),t=this._getStorage();t[this.options.domainId]={categoryId:this.options.categoryId,breadcrumb:e?.outerHTML||null},this._setStorage(t)}_replaceBreadcrumbAndActiveNavigationId(){if(!this.options.domainId)return;let e=this._getStorage()[this.options.domainId];if(!e||!e.categoryId||!(this.options.productCategoryIds||[]).includes(e.categoryId)||(window.activeNavigationId=e.categoryId,!e.breadcrumb))return;let t=this.el.querySelector('nav[aria-label="breadcrumb"]');if(!t)return;let r=this._getProductItem(t);t.outerHTML=e.breadcrumb;let i=this.el.querySelector('nav[aria-label="breadcrumb"]');if(!i||!r)return;let n=i.querySelector(".breadcrumb");n&&(n.querySelectorAll('[aria-current="page"]').forEach(e=>e.removeAttribute("aria-current")),n.querySelectorAll(".breadcrumb-link.is-active").forEach(e=>e.classList.remove("is-active")),n.appendChild(r))}_getProductItem(e){let t=e.querySelectorAll(".breadcrumb > .breadcrumb-item"),r=t[t.length-1];return!r||r.querySelector("a")?null:r}_getStorage(){try{return JSON.parse(window.localStorage.getItem(c))||{}}catch(e){return{}}}_setStorage(e){try{window.localStorage.setItem(c,JSON.stringify(e))}catch(e){}}}PluginManager.register("IntediaMatomoOptOut",class extends o{init(){var e=document.createElement("script");e.src="/mtm/index.php?module=CoreAdminHome&action=optOutJS&divId=matomo-opt-out&language=auto&showIntro=1",document.body.appendChild(e)}},"#matomo-opt-out"),PluginManager.register("PdpCrossSellingAbTest",l,"[data-crossselling-abtest]"),PluginManager.register("DynamicBreadcrumb",u,"[data-dynamic-breadcrumb]"),function(){var e=[];function t(){var t=document.querySelector(".offcanvas.offcanvas-filter");t&&(e.forEach(function(e){e.disconnect()}),e.length=0,t.querySelectorAll(".filter-panel-item-dropdown").forEach(function(t){t.removeAttribute("style");var r=new MutationObserver(function(e){e.forEach(function(e){"style"===e.attributeName&&e.target.removeAttribute("style")})});r.observe(t,{attributes:!0,attributeFilter:["style"]}),e.push(r)}))}var r=new MutationObserver(function(e){e.forEach(function(e){"class"===e.attributeName&&e.target.classList.contains("offcanvas-filter")&&e.target.classList.contains("show")&&setTimeout(t,100)})});document.body&&r.observe(document.body,{attributes:!0,attributeFilter:["class"],subtree:!0}),document.$emitter&&document.$emitter.subscribe("onCloseOffcanvas",function(t){var r=t&&t.detail&&t.detail.offCanvasContent&&t.detail.offCanvasContent[0];r&&r.classList&&r.classList.contains("offcanvas-filter")&&(e.forEach(function(e){e.disconnect()}),e.length=0)})}(),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".header-main"),t=document.querySelector(".header-sticky");if(e&&t){let r=!1;window.addEventListener("scroll",function(){e.getBoundingClientRect().bottom<=-100?r||(r=!0,t.classList.remove("slide-up"),t.classList.add("is-visible","slide-down")):r&&(r=!1,t.classList.remove("slide-down"),t.classList.add("slide-up"),t.addEventListener("animationend",function e(){t.classList.remove("is-visible","slide-up"),t.removeEventListener("animationend",e)}))})}if(document.querySelector(".cms-element-intedia-product-intolerance")){let e=document.querySelector(".intedia-cms-intolerance-section");e&&(e.classList.remove("d-none"),e.classList.add("d-block"))}document.querySelectorAll(".top-bar-link.language-link").forEach(e
1=>{let t=e.dataset.language;if(!t)return;let r=document.querySelector(`link[rel="alternate"][hreflang="${t}"]`);r?.href&&(e.href=r.href)})})})();

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.