1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["product-faqs-shopping-experience-ps"],{857: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 s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function n(e,t,r){return e.concat(t).map(function(e){return s(e,r)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function i(e,t){try{return t in e}catch(e){return!1}}function a(e,r,u){(u=u||{}).arrayMerge=u.arrayMerge||n,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=s;var l,c,d=Array.isArray(r);return d!==Array.isArray(e)?s(r,u):d?u.arrayMerge(e,r,u):(c={},(l=u).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=s(e[t],l)}),o(r).forEach(function(t){(!i(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(i(e,t)&&l.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,l)(e[t],r[t],l):c[t]=s(r[t],l))}),c)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},382:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(820),n=r(107);class o extends s.Z{init(){this.minSearchLength=3,this.currentSearchTimeout=null,this.client=new n.Z,this.showSuggestions=!0,this.boundHandleSuggestionClickedEvent,this.boundHandleSearchInputEvent,this.searchSuggestionElementClone=this.el.querySelector(".product-faqs-ps-search-suggestions-wrapper");let e=this.el.querySelector(".product-faqs-ps-search-suggestions-wrapper");e.parentNode.removeChild(e),document.body.appendChild(this.searchSuggestionElementClone),this.boundHandleSuggestionClickedEvent=this.handleSuggestionClicked.bind(this),this.boundHandleSearchInputEvent=this.handleSearch.bind(this),this.el.querySelector(".eseom-product-faqs-ps-search-input").addEventListener("input",this.boundHandleSearchInputEvent)}handleSearch(e){let t=this,r=t.el.querySelector(".eseom-product-faqs-ps-search-input").getBoundingClientRect();t.searchSuggestionElementClone.style.left=r.left+window.scrollX+"px",t.searchSuggestionElementClone.style.top=r.top+r.height+window.scrollY+"px";let s=e.currentTarget.value;s.length>t.minSearchLength?(t.el.querySelector(".product-faqs-ps-search-result-wrapper").innerHTML="",t.el.querySelector(".product-faqs-ps-search-no-results-info").classList.add("d-none-epf"),t.showSuggestions&&t.searchSuggestionElementClone.classList.remove("d-none-epf"),t.searchSuggestionElementClone.querySelector(".product-faqs-ps-search-suggestions-result-wrapper").innerHTML="",t.searchSuggestionElementClone.querySelector(".product-faqs-ps-search-suggestions-loading").classList.remove("d-none-epf"),null!==t.currentSearchTimeout&&void 0!==t.currentSearchTimeout&&(clearTimeout(t.currentSearchTimeout),t.currentSearchTimeout=null),t.currentSearchTimeout=setTimeout(function(){let e=document.querySelector(".eseom-products-faqs-search-by-product-ajax-path").value,r={};r.searchVal=s;let n=JSON.stringify(r);t.client.post(e,n,e=>{var r=JSON.parse(e);if(t.searchSuggestionElementClone.querySelector(".product-faqs-ps-search-suggestions-loading").classList.add("d-none-epf"),1!==parseInt(r.success))t.searchSuggestionElementClone.classList.add("d-none-epf"),t.el.querySelector(".product-faqs-ps-search-no-results-info").classList.remove("d-none-epf");else{if(t.el.querySelector(".product-faqs-ps-search-no-results-info").classList.add("d-none-epf"),t.showSuggestions){let e="";if(r.foundProductSuggestions.length>0)for(let t=0;t<r.foundProductSuggestions.length;t++)e+='<div class="faq-product-suggestion-row" data-product-number="'+r.foundProductSuggestions[t].productNumber+'">',""!==r.foundProductSuggestions[t].productCoverImageUrl&&(e+='<div class="faq-product-suggestion-image">
1<img src="'+r.foundProductSuggestions[t].productCoverImageUrl+'" alt="Bild" class="img-fluid"></div>'),e+='<div class="faq-product-suggestion-right-area"><div class="faq-product-suggestion-title">'+r.foundProductSuggestions[t].name+'</div><div class="faq-product-suggestion-product-number">'+r.foundProductSuggestions[t].productNumberFormatted+'</div><div class="faq-product-suggestion-options">'+r.foundProductSuggestions[t].productVariationOptionsTxt+"</div></div></div>";t.searchSuggestionElementClone.querySelector(".product-faqs-ps-search-suggestions-result-wrapper").innerHTML=e}else t.showSuggestions=!0,t.searchSuggestionElementClone.classList.add("d-none-epf"),(void 0===r.foundProduct.productFaqsHtml||0===r.foundProduct.faqCounter)&&t.el.querySelector(".product-faqs-ps-search-no-results-info").classList.remove("d-none-epf"),void 0!==r.foundProduct.productFaqsHtml&&(t.el.querySelector(".product-faqs-ps-search-result-wrapper").innerHTML=r.foundProduct.productFaqsHtml);Array.from(t.searchSuggestionElementClone.querySelectorAll(".faq-product-suggestion-row")).forEach(e=>{e.removeEventListener("click",t.boundHandleSuggestionClickedEvent),e.addEventListener("click",t.boundHandleSuggestionClickedEvent)})}})},750)):t.el.querySelector(".product-faqs-ps-search-result-wrapper").innerHTML=""}handleSuggestionClicked(e){this.el.querySelector(".eseom-product-faqs-ps-search-input").value=e.currentTarget.getAttribute("data-product-number"),this.showSuggestions=!1;let t=new Event("input",{bubbles:!0,cancelable:!0});this.el.querySelector(".eseom-product-faqs-ps-search-input").dispatchEvent(t)}}},830:(e,t,r)=>{r.d(t,{Z:()=>s});class s{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(e,{detail:t,cancelable:r});return this.el.dispatchEvent(s),s}subscribe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,n=e.split("."),o=r.scope?t.bind(r.scope):t;if(r.once&&!0===r.once){let t=o;o=function(r){s.unsubscribe(e),t(r)}}return this.el.addEventListener(n[0],o),this.listeners.push({splitEventName:n,opts:r,cb:o}),!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}constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}}},820:(e,t,r)=>{r.d(t,{Z:()=>u});var s=r(857),n=r.n(s);class o{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=o.toUpperCamelCase(e,t);return o.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>o.ucFirst(e.toLowerCase())).join(""):o.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class i{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!i.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===i.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=t.replace(/^data(|-)/,""),n=o.toLowerCamelCase(s,"-");if(!i.isNode(e)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[n];if(void 0===a){if(r)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return a}return o.parsePrimitive(a)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let s=e.querySelector(t)||!1;if(r&&!1===s)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return s}static querySelectorAll(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let s=e.querySelectorAll(t);if(0===s.length&&(s=!1),r&&!1===s)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return s}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return e.querySelectorAll('\n input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n select:not([tabindex^="-"]):not([disabled]),\n textarea:not([tabindex^="-"]):not([disabled]),\n button:not([tabindex^="-"]):not([disabled]),\n a[href]:not([tabindex^="-"]):not([disabled]),\n [tabindex]:not
1([tabindex^="-"]):not([disabled])\n ')}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}var a=r(830);class u{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=o.toDashCase(this._pluginName),r=i.getDataAttribute(this.el,"data-".concat(t,"-config"),!1),s=i.getAttribute(this.el,"data-".concat(t,"-options"),!1),a=[this.constructor.options,this.options,e];r&&a.push(window.PluginConfigManager.get(this._pluginName,r));try{s&&a.push(JSON.parse(s))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(t,'-options" could not be parsed to json: ').concat(e.message))}return n().all(a.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>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}constructor(e,t={},r=!1){if(!i.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new a.Z(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}},107:(e,t,r)=>{r.d(t,{Z:()=>s});class s{get(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",s=this._createPreparedRequest("GET",e,r);return this._sendRequest(s,null,t)}post(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let n=this._createPreparedRequest("POST",e,s);return this._sendRequest(n,t,r)}delete(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let n=this._createPreparedRequest("DELETE",e,s);return this._sendRequest(n,t,r)}patch(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let n=this._createPreparedRequest("PATCH",e,s);return this._sendRequest(n,t,r)}
1abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(e){this._errorHandlingInternal=e}_registerOnLoaded(e,t){t&&(!0===this._errorHandlingInternal?(e.addEventListener("load",()=>{t(e.responseText,e)}),e.addEventListener("abort",()=>{console.warn("the request to ".concat(e.responseURL," was aborted"))}),e.addEventListener("error",()=>{console.warn("the request to ".concat(e.responseURL," failed with status ").concat(e.status))}),e.addEventListener("timeout",()=>{console.warn("the request to ".concat(e.responseURL," timed out"))})):e.addEventListener("loadend",()=>{t(e.responseText,e)}))}_sendRequest(e,t,r){return this._registerOnLoaded(e,r),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,r){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),r&&this._request.setRequestHeader("Content-type",r),this._request}constructor(){this._request=null,this._errorHandlingInternal=!1}}}}]);
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.