1(()=>{"use strict";var e={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!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function o(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,i,c){(c=c||{}).arrayMerge=c.arrayMerge||o,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=n;var d,l,u=Array.isArray(i);return u!==Array.isArray(e)?n(i,c):u?c.arrayMerge(e,i,c):(l={},(d=c).isMergeableObject(e)&&r(e).forEach(function(t){l[t]=n(e[t],d)}),r(i).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&d.isMergeableObject(i[t])?l[t]=(function(e,t){if(!t.customMerge)return s;var i=t.customMerge(e);return"function"==typeof i?i:s})(t,d)(e[t],i[t],d):l[t]=n(i[t],d))}),l)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,i){return s(e,i,t)},{})},e.exports=s}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,i),r.exports}(()=>{i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t}})(),(()=>{i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e=i(857),t=i.n(e);class n{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 i=n.toUpperCamelCase(e,t);return n.lcFirst(i)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>n.ucFirst(e.toLowerCase())).join(""):n.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class o{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!o.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 i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===o.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=t.replace(/^data(|-)/,""),a=n.toLowerCamelCase(r,"-");if(!o.isNode(e)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let s=e.dataset[a];if(void 0===s){if(i)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return s}return n.parsePrimitive(s)}static querySelector(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let n=e.querySelector(t)||!1;if(i&&!1===n)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return n}static querySelectorAll(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let n=e.querySelectorAll(t);if(0===n.length&&(n=!1),i&&!1===n)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return n}}class r{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new CustomEvent(e,{detail:t,cancelable:i});return this.el.dispatchEvent(n),n}subscribe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this,o=e.split("."),r=i.scope?t.bind(i.scope):t;if(i.once&&!0===i.once){let t=r;r=function(i){n.unsubscribe(e),t(i)}}return this.el.addEventListener(o[0],r),this.listeners.push({splitEventName:o,opts:i,cb:r}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,i)=>([...i.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):e.push(i),e),[]),!0}
1reset(){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=[]}}class a{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 i=n.toDashCase(this._pluginName),r=o.getDataAttribute(this.el,"data-".concat(i,"-config"),!1),a=o.getAttribute(this.el,"data-".concat(i,"-options"),!1),s=[this.constructor.options,this.options,e];r&&s.push(window.PluginConfigManager.get(this._pluginName,r));try{a&&s.push(JSON.parse(a))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(i,'-options" could not be parsed to json: ').concat(e.message))}return t().all(s.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={},i=!1){if(!o.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new r(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}class s{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var i of e.entries())t(i[1],i[0]);return}if(e instanceof NodeList)return e.forEach(t);if(e instanceof HTMLCollection)return Array.from(e).forEach(t);if(e instanceof Object)return Object.keys(e).forEach(i=>{t(e[i],i)});throw Error("The element type ".concat(typeof e," is not iterable!"))}}let c=new WeakSet,d=window.PluginManager;d.register("BilobaAdFacebookPixel",class extends a{init(){this.cookieEnabledName="biloba-facebook-pixel",this.cookieOptOutName="biloba-facebook-pixel-opt-out",this._registerEvents(),this._registerPageEvents(),this._observeAddedForms(),this.initialized=!0}_registerPageEvents(){if(!window.bilobaFbPageEventsHandled){window.bilobaFbPageEventsHandled=!0;var e=this,t=window.bilobaAdFacebookPixel&&window.bilobaAdFacebookPixel.pageEvents||[];if(t.length){if(this._pageEvents=t.map(function(t){return Object.assign({},t,{eventId:t.action+"_"+e._generateEventId()})}),this._pageEventsPostedConsented=this._serverConsentProvable(),this._pageEvents.forEach(function(t){e._sendPageEventBeacon(t)}),document.addEventListener("biloba-facebook-consent-mirror-updated",()=>this._repostPageEventBeaconsIfNeeded()),window.bilobaFbqReady){this._firePixelPageEvents();return}document.addEventListener("biloba-fbq-ready",()=>this._firePixelPageEvents(),{once:!0})}}}_serverConsentProvable(){return -1!==["UserCentrics","CCM19","CMP"].indexOf(window.bilobaAdFacebookPixel&&window.bilobaAdFacebookPixel.currentConsentManager||"")?document.cookie.split(";").some(function(e){return"biloba-facebook-pixel-consent"===e.split("=")[0].trim()}):!!window.bilobaFbqReady}_repostPageEventBeaconsIfNeeded(){if(!this._pageEventsPostedConsented&&this._pageEvents&&this._serverConsentProvable()){this._pageEventsPostedConsented=!0;var e=this;this._pageEvents.forEach(function(t){e._sendPageEventBeacon(t)})}}_firePixelPageEvents(){!this._pixelPageEventsFired&&window.fbq&&this._pageEvents&&(this._pixelPageEventsFired=!0,this._pageEvents.forEach(function(e){var t=e.data&&!Array.isArray(e.data)?e.data:{};window.fbq(e.track||"track",e.action,t,{eventID:e.eventId})}),this._repostPageEventBeaconsIfNeeded())}_sendPageEventBeacon(e){if(window.bilobaFacebookConversionApiActive){var t=Object.assign({action:e.action,eventId:e.eventId,pageUrl:window.location.href},e.ref||{});this._postPageEventBeacon(window.bilobaAdFacebookPixel&&window.bilobaAdFacebookPixel.pageEventUrl,t)}}_postPageEventBeacon(e,t){e&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(t)}).then(e=>e.text()).catch(e=>{console.warn("[BilobaAdFacebookPixel] Page-event beacon failed:",e)})}_pluginConfig(){return window.bilobaAdFacebookPixel||{}}_generateEventId(){return window.crypto&&"function"==typeof window.crypto.randomUUID?window.crypto.randomUUID().replace(/-/g,""):Date.now().toString(36)+Math.random().toString(36).slice(2,12)}
1_sendCapiCustomEvent(e,t){if(window.bilobaFacebookConversionApiActive)try{var i,n,o=this._pluginConfig().capiTrackUrls||{};t=Object.assign({pageUrl:window.location.href},t),fetch((i=o[e],n="/biloba/fbq-track/"+e,i||(console.warn("[BilobaAdFacebookPixel] analytics.html.twig override lacks the router URL, falling back to "+n),n)),{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(t),keepalive:!0}).then(function(e){return e.text()}).catch(function(e){console.warn("[BilobaAdFacebookPixel] CAPI custom-event call failed:",e)})}catch(e){console.warn("[BilobaAdFacebookPixel] CAPI custom-event dispatch failed:",e)}}_update(){this.init()}_registerEvents(){var e=this;e._subscribeAddToCartForms(),this.initialized||(window.PluginManager.getPluginInstances("SearchWidget").forEach(function(t){t.$emitter.subscribe("afterSuggest",function(t){e._registerOnSearch(t)})}),window.bilobaAdFacebookPixel&&"acrisCookieConsent"===window.bilobaAdFacebookPixel.currentConsentManager?e._registerCookieHandlerAcris():e._registerCookieHandlerStandard()),e._registerPaymentOptionsEventListener(),e._registerViewManufacturer(),e._registerProductCustomized(),e._registerOnSearch(),e._registerOnContact()}_subscribeAddToCartForms(){var e=this;window.PluginManager.getPluginInstances("AddToCart").forEach(function(t){c.has(t)||(c.add(t),t.$emitter.subscribe("beforeFormSubmit",function(t){e._onAddToCart(t)}))})}_observeAddedForms(){if(!window.bilobaFbAddToCartObserverActive&&window.MutationObserver&&document.body){window.bilobaFbAddToCartObserverActive=!0;var e=this,t=null;new MutationObserver(function(i){i.some(function(e){return e.addedNodes.length>0})&&!t&&(t=setTimeout(function(){t=null,e._subscribeAddToCartForms()},100))}).observe(document.body,{childList:!0,subtree:!0})}}checkElementAndValue(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e?!(i&&void 0!==e.value&&(!e.value||""===e.value.trim()))||(console.log('[BilobaAdFacebookPixel] Element "'.concat(t,'" existiert, aber der Wert ist leer')),!1):(console.log('[BilobaAdFacebookPixel] Folgendes Element fehlt: "'.concat(t,'"')),!1)}_registerCookieHandlerStandard(){document.$emitter.subscribe("CookieConfiguration_Update",this.handleCookies.bind(this))}_isPixelSuppressedOnConfirmPage(){return!!(window.bilobaAdFacebookPixel&&window.bilobaAdFacebookPixel.suppressPixelOnConfirm)}handleCookies(e){if(this._isPixelSuppressedOnConfirmPage())return;let t=e.detail||{},i=Object.prototype.hasOwnProperty.call(t,this.cookieEnabledName),n=document.cookie.split(";").some(e=>e.split("=")[0].trim()===this.cookieEnabledName),o=i?!!t[this.cookieEnabledName]:n,r=!!t[this.cookieOptOutName]||-1!==document.cookie.indexOf(this.cookieOptOutName+"=true");if(!window.bilobaFbqReady&&o&&!r){window.fbq=null,function(e,t,i,n,o,r,a){e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],(r=t.createElement(i)).async=!0,r.src=n,(a=t.getElementsByTagName(i)[0]).parentNode.insertBefore(r,a))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js",void 0,void 0,void 0);let e=this;setTimeout(function(){window.fbq&&e._initPixelWithSafeguards(window.facebookPixelId)&&(window.bilobaFbqReady=!0,document.dispatchEvent(new CustomEvent("biloba-fbq-ready")))},2e3);return}}_registerCookieHandlerAcris(){if(window.bilobaAcrisHandlerRegisteredFb)return;window.bilobaAcrisHandlerRegisteredFb=!0;let e=this,t=0,i=function(){let n=e._readAcrisConsentState();if(n.found||t>=30){n.found&&e._applyAcrisConsentState(n);return}t++,setTimeout(i,100)};i(),document.$emitter.subscribe("CookieConfiguration_Update",e._handleAcrisConsentChange.bind(e))}_readAcrisConsentState(){let e=window.dataLayer||[];for(let t=e.length-1;t>=0;t--){let i=e[t];if(i&&Array.isArray(i.acrisCookieState)){let e=!1;for(let t=0;t<i.acrisCookieState.length;t++){let n=i.acrisCookieState[t];if(n&&n.enabled&&n.ad_storage){e=!0;break}}return{marketingGranted:e,found:!0}}}return{marketingGranted:!1,found:!1}}_handleAcrisConsentChange(){let e=this._readAcrisConsentState();
1e.found&&this._applyAcrisConsentState(e)}_applyAcrisConsentState(e){if(!e.marketingGranted){window.bilobaAcrisFbqLoadedFb&&window.fbq&&!window.bilobaAcrisFbqRealRef&&(window.bilobaAcrisFbqRealRef=window.fbq,window.fbq=function(){});return}-1===document.cookie.indexOf(this.cookieOptOutName+"=true")&&(window.bilobaAcrisFbqRealRef&&(window.fbq=window.bilobaAcrisFbqRealRef,window.bilobaAcrisFbqRealRef=null),this._loadFbqAndInitOnce())}_loadFbqAndInitOnce(){if(this._isPixelSuppressedOnConfirmPage()||window.bilobaAcrisFbqLoadedFb)return;window.bilobaAcrisFbqLoadedFb=!0,function(e,t,i,n,o,r,a){e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],(r=t.createElement(i)).async=!0,r.src=n,(a=t.getElementsByTagName(i)[0]).parentNode.insertBefore(r,a))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js",void 0,void 0,void 0);let e=window.facebookPixelId,t=this;setTimeout(function(){window.fbq&&t._initPixelWithSafeguards(e)&&(window.bilobaFbqReady=!0,document.dispatchEvent(new CustomEvent("biloba-fbq-ready")))},2e3)}_initPixelWithSafeguards(e){let t=null==e?"":String(e).trim();return""!==t&&(window.bilobaAdFacebookPixel&&window.bilobaAdFacebookPixel.enableAutoConfig||window.fbq("set","autoConfig",!1,t),window.fbq("init",t),!0)}_onContact(e){e.checkValidity()&&(window.fbq?this._onContactFire(e):setTimeout(()=>this._onContactFire(e),3e3))}_onContactFire(e){let t=e.getAttribute("action").replace(/\//,"").replace(/\//g,"_");if(e.checkValidity()&&window.fbq){let e="Contact_"+this._generateEventId(),i={content_type:t,content_name:t,value:1,currency:window.bilobaFacebookPixelCurrency,contents:[{content_name:t}]};window.fbq("track","Contact",i,{eventID:e}),this._sendCapiCustomEvent("contact",{eventId:e,contentType:t,contentName:t,value:1})}}_registerOnContact(){let e=o.querySelector(document,'form[action*="/form/"]',!1);if(e){let t=o.querySelector(e,'button[type="submit"]',!1);this.uniqueBind(t,"click",this._onContact.bind(this,e))}}_onSearch(e,t){let i=this;window.fbq?i._onSearchFire(e,t):setTimeout(()=>i._onSearchFire(e,t),3e3)}_onSearchFire(e,t){let i;if(i="suggest"==t?e.getAttribute("title"):e.querySelector(".header-search-input").value,window.fbq){let e="Search_"+this._generateEventId(),t={content_type:"product",search_string:i,value:1,currency:window.bilobaFacebookPixelCurrency};window.fbq("track","Search",t,{eventID:e}),this._sendCapiCustomEvent("search",{eventId:e,contentType:"product",searchString:i,value:1})}}_registerOnSearch(){var e=this,t=o.querySelectorAll(document,".header-search",!1);t&&s.iterate(t,function(t){if(t){var i=o.querySelectorAll(document,".search-suggest-product-link",!1),n=o.querySelectorAll(document,".header-search-form",!1);n&&s.iterate(n,function(t){t&&e.uniqueBind(t,"submit",e._onSearch.bind(e,t,null))}),!1!=i&&s.iterate(i,function(t){e.uniqueBind(t,"click",e._onSearch.bind(e,t,"suggest"))})}})}_onAddToCart(e){var t="AddToCart_"+this._generateEventId();e.detail&&"function"==typeof e.detail.append&&e.detail.append("bit-fbq-event-id",t),window.fbq?this._onAddToCartFire(e.target,t):setTimeout(()=>this._onAddToCartFire(e.target,t),3e3)}_onAddToCartFire(e,t){var i=this._resolveAddToCartProduct(e);if(!i){console.log("[BilobaAdFacebookPixel] AddToCart skipped: no product data on the page");return}var n=o.querySelector(e,'input[name="bit-fbq-quantity"]',!1)||o.querySelector(e,"select.product-detail-quantity-select",!1)||o.querySelector(e,'.bit--article-quantity-selector input[name^="lineItems["][name$="[quantity]"]',!1)||o.querySelector(e,'input[name^="lineItems["][name$="[quantity]"]',!1);if(window.fbq){var r=n?n.value:1;window.fbq("track","AddToCart",{content_type:"product",content_ids:[i.id],content_name:i.name,value:this._addedValue(i.price,r),currency:i.currency,contents:[{id:i.id,item_price:i.price,item_currency:i.currency,quantity:r}]},{eventID:t})}}_addedValue(e,t){var i=parseFloat(e),n=parseInt(t,10);return isNaN(i)||isNaN(n)||n<1?e:Math.round(i*n*100)/100}_resolveAddToCartProduct(e){var t=window.bilobaAdFacebookPixel&&window.bilobaAdFacebookPixel.products,i=o.querySelector(e,'input[name^="lineItems["][name$="[id]"]',!1);if(t&&i&&i.value&&t[i.value])return t[i.value];var n=o.querySelector(e,'input[name="bit-fbq-id"]',!1),r=o.querySelector(e,'input[name="bit-fbq-price"]',!1),a=o.querySelector(e,'input[name="bit-fbq-currency"]',!1),s=o.querySelector(e,'input[name="bit-fbq-name"]',!1);return this.checkElementAndValue(n,'input[name="bit-fbq-id"]')&&this.checkElementAndValue(r,'input[name="bit-fbq-price"]')&&this.checkElementAndValue(a,'input[name="bit-fbq-currency"]')&&this.checkElementAndValue(s,'input[name="bit-fbq-name"]')?{id:n.value,price:r.value,currency:a.value,name:s.value}:null}_onViewManufacturer(e){let t=this;window.fbq?t._onViewManufacturerFire(e):setTimeout(()=>t._onViewManufacturerFire(e),3e3)}_onViewManufacturerFire(e){var t=o.querySelector(e,'input[name="bit-fbq-manufacturer-id"]',!1),i=o.querySelector(e,'input[name="bit-fbq-manufacturer-name"]',!1);if(this.checkElementAndValue(t,'input[name="bit-fbq-manufacturer-id"]')&&this.checkElementAndValue(i,'input[name="bit-fbq-manufacturer-name"]')){var n=t.value,r=i.value;window.fbq&&window.fbq("trackCustom","ViewManufacturer",{content_type:"manufacturer",content_ids:[n],content_name:r,value:1,currency:window.bilobaFacebookPixelCurrency,contents:[{id:n,content_name:r}]})}}_registerViewManufacturer(){var e=o.querySelector(document,".product-detail-manufacturer-link",!1);if(!1!=e){var t=o.querySelector(document,".product-detail",!1);if(!1!=t)this.uniqueBind(e,"click",this._onViewManufacturer.bind(this,t));else{var i=o.querySelector(document,".cms-page",!1);this.uniqueBind(e,"click",this._onViewManufacturer.bind(this,i))}}}_onProductCustomized(e){let t=this;window.fbq?t._onProductCustomizedFire(e):setTimeout(()=>t._onProductCustomizedFire(e),3e3)}_onProductCustomizedFire(e){var t=e.getAttribute("title"),i=e.getAttribute("for");window.fbq&&window.fbq("track","CustomizeProduct",{content_type:"customizedProduct",value:1,content_name:t,currency:window.bilobaFacebookPixelCurrency,content_ids:[i],contents:[{id:i,content_name:t}]})}_registerProductCustomized(){var e=this,t=o.querySelectorAll(document,".product-detail-configurator-option-label",!1);!1!=t&&s.iterate(t,function(t){e.uniqueBind(t,"click",e._onProductCustomized.bind(e,t))})}_registerCheckoutProgressEventListener(){var e=o.querySelector(document,".register-form",!1);!1!=e&&this.uniqueBind(e,"submit",this._onCheckoutProgress)}_onPaymentOption(e){let t=this;window.fbq?t._onPaymentOptionFire(e):setTimeout(()=>t._onPaymentOptionFire(e),3e3)}_onPaymentOptionFire(e){if(window.fbq){let t="AddPaymentInfo_"+this._generateEventId(),i={content_type:"product",checkout_option:e,currency:window.bilobaFacebookPixelCurrency,value:window.bilobaFacebookPixelCart?window.bilobaFacebookPixelCart.value:void 0};window.fbq("track","AddPaymentInfo",i,{eventID:t}
1),this._sendCapiCustomEvent("add-payment-info",{eventId:t,contentType:"product",checkoutOption:e,value:window.bilobaFacebookPixelCart?window.bilobaFacebookPixelCart.value:void 0})}}_registerPaymentOptionsEventListener(){var e=this,t=document.getElementById("changePaymentForm");t&&t.addEventListener("change",function(i){var n=i.target;if(n.classList.contains("payment-method-input")){var o=t.querySelector('label[for="'.concat(n.id,'"]'));if(o){var r=o.querySelector(".payment-method-description strong");r&&e._onPaymentOption.bind(e,r.textContent)()}}})}uniqueBind(e,t,i){this.listeners=this.listeners||new WeakMap;var n=this.listeners.get(e)||{};n[t]&&e.removeEventListener(t,n[t]),n[t]=i,this.listeners.set(e,n),e.addEventListener(t,i)}}),d.register("BilobaFacebookConsentMirror",class extends a{init(){if(this._config=this._readConfig(),this._config)switch(this._config.manager){case"UserCentrics":this._initUsercentrics();break;case"CCM19":this._initCcm19();break;case"CMP":this._initConsentmanager()}}_readConfig(){let e=document.querySelector('meta[name="biloba-facebook-consent-mirror"]');if(!e)return null;try{let t=JSON.parse(e.content);return t&&t.cookie&&t.manager?t:null}catch(e){return null}}_initUsercentrics(){let e=()=>this._evaluateUsercentrics();window.UC_UI&&"function"==typeof window.UC_UI.getServicesBaseInfo&&e(),window.addEventListener("UC_UI_INITIALIZED",e),window.addEventListener("UC_UI_CMP_EVENT",e)}_evaluateUsercentrics(){let e;if(window.UC_UI&&"function"==typeof window.UC_UI.getServicesBaseInfo){try{e=window.UC_UI.getServicesBaseInfo()}catch(e){this._writeMirrorCookie(!1);return}Promise.resolve(e).then(e=>{if(!Array.isArray(e)){this._writeMirrorCookie(!1);return}let t=e.find(e=>e&&e.name===this._config.identifier);this._writeMirrorCookie(!!(t&&t.consent&&!0===t.consent.status))}).catch(()=>this._writeMirrorCookie(!1))}}_initCcm19(){let e=()=>this._evaluateCcm19();window.CCM&&e(),window.addEventListener("ccm19WidgetLoaded",e),window.addEventListener("ccm19WidgetClosed",e),window.addEventListener("ccm19EmbeddingAccepted",e)}_evaluateCcm19(){let e;let t=window.CCM;if(!t)return;let i=Array.isArray(t.acceptedEmbeddings)?t.acceptedEmbeddings:[];e=this._config.identifier?i.some(e=>e===this._config.identifier||e&&(e.name===this._config.identifier||e.id===this._config.identifier)):!0===t.fullConsentGiven,this._writeMirrorCookie(e)}_initConsentmanager(){let e=()=>this._evaluateConsentmanager();if("function"==typeof window.__cmp){e();try{window.__cmp("addEventListener",["consent",e,!1])}catch(e){}}else{let e=0,t=window.setInterval(()=>{e+=1,"function"==typeof window.__cmp?(window.clearInterval(t),this._initConsentmanager()):e>=20&&window.clearInterval(t)},500)}}_evaluateConsentmanager(){if("function"!=typeof window.__cmp)return;let e=e=>{if(!e||"object"!=typeof e.vendorConsents||null===e.vendorConsents){this._writeMirrorCookie(!1);return}let t=!!(this._config.identifier&&e.vendorConsents[this._config.identifier]);this._writeMirrorCookie(t)},t=null;
1try{t=window.__cmp("getCMPData",null,e)}catch(e){this._writeMirrorCookie(!1);return}t&&"object"==typeof t&&e(t)}_writeMirrorCookie(e){let t=this._config.cookie+"-consent",i="https:"===window.location.protocol?";secure":"";e?document.cookie="".concat(t,"=1;path=/;max-age=").concat(86400,";SameSite=Lax").concat(i):document.cookie="".concat(t,"=;path=/;max-age=0;SameSite=Lax").concat(i),document.dispatchEvent(new CustomEvent("biloba-facebook-consent-mirror-updated",{detail:{granted:e}}))}},"body")})()})();
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.