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 a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function r(e,t){try{return t in e}catch(e){return!1}}function s(e,i,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var c,u,d=Array.isArray(i);return d!==Array.isArray(e)?n(i,l):d?l.arrayMerge(e,i,l):(u={},(c=l).isMergeableObject(e)&&a(e).forEach(function(t){u[t]=n(e[t],c)}),a(i).forEach(function(t){(!r(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(r(e,t)&&c.isMergeableObject(i[t])?u[t]=(function(e,t){if(!t.customMerge)return s;var i=t.customMerge(e);return"function"==typeof i?i:s})(t,c)(e[t],i[t],c):u[t]=n(i[t],c))}),u)}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 a=t[n]={exports:{}};return e[n](a,a.exports,i),a.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],a=t.replace(/^data(|-)/,""),r=n.toLowerCamelCase(a,"-");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[r];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 a{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("."),a=i.scope?t.bind(i.scope):t;if(i.once&&!0===i.once){let t=a;a=function(i){n.unsubscribe(e),t(i)}}return this.el.addEventListener(o[0],a),this.listeners.push({splitEventName:o,opts:i,cb:a}),!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 r{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),a=o.getDataAttribute(this.el,"data-".concat(i,"-config"),!1),r=o.getAttribute(this.el,"data-".concat(i,"-options"),!1),s=[this.constructor.options,this.options,e];a&&s.push(window.PluginConfigManager.get(this._pluginName,a));try{r&&s.push(JSON.parse(r))}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 a(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!"))}}class l{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return l.isIPhoneDevice()||l.isIPadDevice()}static isNativeWindowsBrowser(){return l.isIEBrowser()||l.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":l.isTouchDevice(),"is-ios":l.isIOSDevice(),"is-native-windows":l.isNativeWindowsBrowser(),"is-iphone":l.isIPhoneDevice(),"is-ipad":l.isIPadDevice(),"is-ie":l.isIEBrowser(),"is-edge":l.isEdgeBrowser()}}}let c="offcanvas";class u{open(e,t,i,n,o,a,r){this._removeExistingOffCanvas();let s=this._createOffCanvas(i,a,r,n);this.setContent(e,n,o),this._openOffcanvas(s,t)}setContent(e,t){let i=this.getOffCanvas();i[0]&&(i[0].innerHTML=e,this._registerEvents(t))}setAdditionalClassName(e){this.getOffCanvas()[0].classList.add(e)}getOffCanvas(){return document.querySelectorAll(".".concat(c))}close(e){let t=this.getOffCanvas();s.iterate(t,e=>{bootstrap.Offcanvas.getInstance(e).hide()}),setTimeout(()=>{this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e)}goBackInHistory(){window.history.back()}exists(){return this.getOffCanvas().length>0}_openOffcanvas(e,t){u.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof t&&t()}_registerEvents(e){let t=l.isTouchDevice()?"touchend":"click",i=this.getOffCanvas();s.iterate(i,t=>{let n=()=>{setTimeout(()=>{t.remove(),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:i})},e),t.removeEventListener("hide.bs.offcanvas",n)};t.addEventListener("hide.bs.offcanvas",n)}),window.addEventListener("popstate",this.close.bind(this,e),{once:!0});let n=document.querySelectorAll(".".concat("js-offcanvas-close"));s.iterate(n,i=>i.addEventListener(t,this.close.bind(this,e)))}_removeExistingOffCanvas(){u.bsOffcanvas=null;let e=this.getOffCanvas();return s.iterate(e,e=>e.remove())}_getPositionClass(e){return"left"===e?"offcanvas-start":"right"===e?"offcanvas-end":"offcanvas-".concat(e)}_createOffCanvas(e,t,i,n){let o=document.createElement("div");if(o.classList.add(c),o.classList.add(this._getPositionClass(e)),!0===t&&o.classList.add("is-fullwidth"),i){let e=typeof i;if("string"===e)o.classList.add(i);
1else if(Array.isArray(i))i.forEach(e=>{o.classList.add(e)});else throw Error('The type "'.concat(e,'" is not supported. Please pass an array or a string.'))}return document.body.appendChild(o),u.bsOffcanvas=new bootstrap.Offcanvas(o,{backdrop:!1!==n||"static"}),o}constructor(){this.$emitter=new a}}let d=Object.freeze(new u);class g{static open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";d.open(e,t,i,n,o,a,r)}static setContent(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;d.setContent(e,t,i)}static setAdditionalClassName(e){d.setAdditionalClassName(e)}static close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;d.close(e)}static exists(){return d.exists()}static getOffCanvas(){return d.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}class b{get(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",n=this._createPreparedRequest("GET",e,i);return this._sendRequest(n,null,t)}post(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";n=this._getContentType(t,n);let o=this._createPreparedRequest("POST",e,n);return this._sendRequest(o,t,i)}delete(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";n=this._getContentType(t,n);let o=this._createPreparedRequest("DELETE",e,n);return this._sendRequest(o,t,i)}patch(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";n=this._getContentType(t,n);let o=this._createPreparedRequest("PATCH",e,n);return this._sendRequest(o,t,i)}abort(){if(this._request)return this._request.abort()}_registerOnLoaded(e,t){t&&e.addEventListener("loadend",()=>{t(e.responseText,e)})}_sendRequest(e,t,i){return this._registerOnLoaded(e,i),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,i){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),i&&this._request.setRequestHeader("Content-type",i),this._request}constructor(){this._request=null}}let h="loader",m={BEFORE:"before",INNER:"inner"};class p{create(){if(!this.exists()){if(this.position===m.INNER){this.parent.innerHTML=p.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),p.getTemplate())}}remove(){let e=this.parent.querySelectorAll(".".concat(h));s.iterate(e,e=>e.remove())}exists(){return this.parent.querySelectorAll(".".concat(h)).length>0}_getPosition(){return this.position===m.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'<div class="'.concat(h,'" role="status">\n <span class="').concat("visually-hidden",'">Loading...</span>\n </div>')}static SELECTOR_CLASS(){return h}constructor(e,t=m.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}}let w=null;class v extends g{static open(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:g.REMOVE_OFF_CANVAS_DELAY(),r=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";if(!e)throw Error("A url must be given!");d._removeExistingOffCanvas();let l=d._createOffCanvas(n,r,s,o);this.setContent(e,t,i,o,a),d._openOffcanvas(l)}static setContent(e,t,i,n,o){let a=new b;super.setContent('<div class="offcanvas-body">'.concat(p.getTemplate(),"</div>"),n,o),w&&w.abort();let r=e=>{super.setContent(e,n,o),"function"==typeof i&&i(e)};w=t?a.post(e,t,v.executeCallback.bind(this,r)):a.get(e,v.executeCallback.bind(this,r))}static executeCallback(e,t){"function"==typeof e&&e(t),window.PluginManager.initializePlugins()}}let f="element-loader-backdrop";class _ extends p{static create(e){e.classList.add("has-element-loader"),_.exists(e)||(_.appendLoader(e),setTimeout(()=>{let t=e.querySelector(".".concat(f));t&&t.classList.add("element-loader-backdrop-open")},1))}static remove(e){e.classList.remove("has-element-loader");let t=e.querySelector(".".concat(f));t&&t.remove()}static exists(e){return e.querySelectorAll(".".concat(f)).length>0}static getTemplate(){return'\n <div class="'.concat(f,'">\n <div class="loader" role="status">
1\n <span class="').concat("visually-hidden",'">Loading...</span>\n </div>\n </div>\n ')}static appendLoader(e){e.insertAdjacentHTML("beforeend",_.getTemplate())}}let y="CookieConfiguration_Update";window.router["frontend.cookie.offcanvas"];let G=["home","startseite"],A={value:"bilobaAdGoogleGtagsjs_itemData_value",gtmItems:"bilobaAdGoogleGtagsjs_itemData",gtagItems:"itemData",coupon:null},C={value:"bilobaAdGoogleGtagsjs_offcanvasItemData_value",gtmItems:"bilobaAdGoogleGtagsjs_offcanvasItemData",gtagItems:"bilobaAdGoogleGtagsjs_offcanvasItemDataGtag",coupon:"bilobaAdGoogleGtagsjs_offcanvasItemData_coupon"},E=".offcanvas-cart-actions";window.PluginManager.register("BilobaAdGoogleGtagsjs",class extends r{init(){this.cookieAnalyticsName="biloba-ad-google-gtagjs-analytics",this.cookieMarketingName="biloba-ad-google-gtagjs-marketing",this.cookieOptOutName="biloba-ad-google-gtagjs-opt-out",this.cookieShopwareDecisionName="cookie-preference",this.cookieAcrisDecisionName="acris_cookie_acc",window.bilobaAdGoogleGtagsjs&&(this._registerEvents(),"acrisCookieConsent"===window.bilobaAdGoogleGtagsjs.currentConsentManager?this._registerCookieHandlerAcris():"useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration?this._registerCookieHandlerGTM():this._registerCookieHandlerGA()),this.initialized=!0}_update(){this.init()}_registerEvents(){let e=this;if(!this.initialized){window.PluginManager.getPluginInstances("AddToCart").forEach(function(t){t.$emitter.subscribe("beforeFormSubmit",function(t){e._onAddToCart(t)})});var t=window.PluginManager.getPluginInstances("OffCanvasCart");t.forEach(function(t){t.$emitter.subscribe("registerEvents",function(t){e._registerRemoveOffCanvasCart(t),e._registerBeginnCheckoutOffcanvas()})}),t.forEach(function(t){t.$emitter.subscribe("offCanvasOpened",function(){setTimeout(function(){e._onViewCartOffcanvas()},100)})}),window.PluginManager.getPluginInstances("ListingPagination").forEach(function(t){t.$emitter.subscribe("change",function(t){e._onViewItemList(t)})}),window.PluginManager.getPluginInstances("SearchWidget").forEach(function(t){t.$emitter.subscribe("afterSuggest",function(t){e._registerOnSearch(t)})});var i=document.querySelector("#wishlist-basket");if(i){var n=window.PluginManager.getPluginInstanceFromElement(i,"WishlistStorage");n&&n.$emitter.subscribe("Wishlist/onProductAdded",function(t){e._onAddToWishlist(t)})}}e._registerPaymentOptionsEventListener(),e._registerTocEventListener(),e._registerCheckoutProgressEventListener(),e._registerSelectContentEventListener(),e._registerBeginnCheckoutEventListener(),e._registerRemoveCheckoutCart(),e._registerOnSearch(),e._registerViewCartPageEvent()}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('[BilobaAdGoogleGtagsjs] Element "'.concat(t,'" existiert, aber der Wert ist leer')),!1):(console.log('[BilobaAdGoogleGtagsjs] Folgendes Element fehlt: "'.concat(t,'"')),!1)}_registerCookieHandlerGA(){document.$emitter.subscribe(y,this.handleCookiesGA.bind(this)),this._registerShopwareDenyHandler()}_registerShopwareDenyHandler(){if(window.bilobaShopwareDenyHandlerRegistered||(window.bilobaShopwareDenyHandlerRegistered=!0,!Object.prototype.hasOwnProperty.call(window.PluginManager.getPluginList(),"CookiePermission")))return;let e=this;window.PluginManager.getPluginInstances("CookiePermission").forEach(function(t){t.$emitter.subscribe("onClickDenyButton",function(){e._applyGtagConsentDecision(!1,!1)})})}_registerCookieHandlerGTM(){document.$emitter.subscribe(y,this.handleCookiesGTM.bind(this))}handleCookiesGA(){if(-1!==document.cookie.indexOf(this.cookieOptOutName))return;let e=-1!==document.cookie.indexOf(this.cookieAnalyticsName),t=-1!==document.cookie.indexOf(this.cookieMarketingName);function i(){dataLayer.push(arguments)}this._hasCookie(this.cookieShopwareDecisionName)&&this._applyGtagConsentDecision(e,t),(e||t)&&"function"==typeof window.loadGtagScriptOnce&&window.loadGtagScriptOnce(),window.dataLayer=window.dataLayer||[],window.bilobaAdGoogleGtagsjs.disableConsentSignals||(i("c
1onsent","update",{analytics_storage:e?"granted":"denied"}),i("consent","update",{ad_storage:t?"granted":"denied",ad_user_data:t?"granted":"denied",ad_personalization:t?"granted":"denied"}),i("set","ads_data_redaction",!t)),t&&"function"==typeof window.initGtagAdsConfigOnce&&window.initGtagAdsConfigOnce(),e&&"function"==typeof window.initGtagConfigOnce?window.initGtagConfigOnce():t&&"function"==typeof window.initGtagJsOnce&&window.initGtagJsOnce()}handleCookiesGTM(){if(-1!==document.cookie.indexOf(this.cookieOptOutName))return;let e=-1!==document.cookie.indexOf(this.cookieAnalyticsName),t=-1!==document.cookie.indexOf(this.cookieMarketingName);function i(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],window.bilobaAdGoogleGtagsjs.disableConsentSignals||(i("consent","update",{analytics_storage:e?"granted":"denied"}),i("consent","update",{ad_storage:t?"granted":"denied",ad_user_data:t?"granted":"denied",ad_personalization:t?"granted":"denied"}),i("set","ads_data_redaction",!t)),(e||t)&&"function"==typeof window.loadGtmScriptOnce&&window.loadGtmScriptOnce()}_registerCookieHandlerAcris(){if(window.bilobaAcrisHandlerRegistered)return;window.bilobaAcrisHandlerRegistered=!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(y,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,t=!1;for(let n=0;n<i.acrisCookieState.length;n++){let o=i.acrisCookieState[n];o&&o.enabled&&(o.analytics_storage&&(e=!0),o.ad_storage&&(t=!0))}return{analyticsGranted:e,marketingGranted:t,found:!0,decided:this._hasAcrisDecision()}}}return{analyticsGranted:!1,marketingGranted:!1,found:!1,decided:!1}}_handleAcrisConsentChange(){let e=this._readAcrisConsentState();e.found&&this._applyAcrisConsentState(e)}_applyAcrisConsentState(e){if(e.decided&&this._applyGtagConsentDecision(e.analyticsGranted,e.marketingGranted),e.analyticsGranted||e.marketingGranted){if(window.bilobaAdGoogleGtagsjs&&"useGTM"===window.bilobaAdGoogleGtagsjs.useTrackingIntegration){"function"==typeof window.loadGtmScriptOnce&&window.loadGtmScriptOnce();return}"function"==typeof window.loadGtagScriptOnce&&window.loadGtagScriptOnce(),"function"==typeof window.initGtagJsOnce&&window.initGtagJsOnce(),e.analyticsGranted&&"function"==typeof window.initGtagConfigOnce&&window.initGtagConfigOnce(),e.marketingGranted&&"function"==typeof window.initGtagAdsConfigOnce&&window.initGtagAdsConfigOnce()}}_applyGtagConsentDecision(e,t){"function"==typeof window.bilobaGtagApplyConsentDecision&&window.bilobaGtagApplyConsentDecision(e,t)}_hasCookie(e){return -1!==document.cookie.indexOf(e+"=")}_hasAcrisDecision(){return this._hasCookie(this.cookieAcrisDecisionName)||this._hasCookie(this.cookieShopwareDecisionName)}_registerOnSearch(){let e=this;if(o.querySelector(document,".header-search",!1)){var t=o.querySelectorAll(document,".search-suggest-product-link",!1);if(!1!=t){var i=document.querySelector(".search-suggest-total-link",!1).getAttribute("href").replace("/search?search=",""),n=o.querySelector(document,".header-search-form",!1);e.uniqueBind(n,"submit",e._onSearch.bind(e,i)),s.iterate(t,function(t){e.uniqueBind(t,"click",e._onSearch.bind(e,t,"suggest"))})}}}_onSearch(e,t){if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){if("suggest"==t)var i=e.getAttribute("title");else var i=e;let n={ecommerce:{search_term:i}};window.dataLayer&&(n.event="search",dataLayer.push({ecommerce:null}),window.dataLayer.push(n))}else{let i;i="suggest"==t?{content_type:"product",search_term:e.getAttribute("title"),value:1,currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical}:{content_type:"product",search_term:e,value:1,currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical},window.bilobaGtagEvent&&window.bilobaGtagEvent("search",i)}}}_onViewItemList(){setTimeout(()=>{if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let e=document.getElementById("bilobaAdGoogleGtagsjs_bilobaGoogleListingGtmInfo"),t=document.getElementById("bilobaAdGoogleGtagsjs_bilobaGoogleListingGtmItems");if(!e||!t){console.log("[BilobaAdGoogleGtagsjs] GTM listing elements not found");return}let i=JSON.parse(e.innerHTML);i.ecommerce.items=JSON.parse(t.innerHTML),window.dataLayer&&(dataLayer.push({ecommerce:null}),i.event="view_item_list",window.dataLayer.push(i))}else{let e=document.getElementById("bilobaAdGoogleGtagsjs_bilobaGoogleListingInfo"),t=document.getElementById("bilobaAdGoogleGtagsjs_bilobaGoogleListing");if(!e||!t){console.log("[BilobaAdGoogleGtagsjs] GA4 listing elements not found");return}let i=JSON.parse(e.innerHTML);i.items=JSON.parse(t.innerHTML),window.bilobaGtagEvent&&window.bilobaGtagEvent("view_item_list",i)}}},2e3)}_getBreadcrumbData(){let e=this._findBreadcrumbItems(),t=0===e.length?this._getCategoriesFromJsonLd():[];return 0===t.length&&e.length>0&&(t=this._getCategoriesFromBreadcrumbItems(e)),{categories:t,fullPath:t.join(" > "),count:t.length}}_findBreadcrumbItems(){let e=document.querySelectorAll(".breadcrumb .breadcrumb-item:not(.active)");return 0===e.length&&(e=document.querySelectorAll(".cms-breadcrumb .breadcrumb-item:not(.active)")),0===e.length&&(e=document.querySelectorAll('[class*="breadcrumb"] .breadcrumb-item:not(.active), [data-breadcrumb] .breadcrumb-item:not(.active)')),e}_getCategoriesFromJsonLd(){let e=[];return document.querySelectorAll('script[type="application/ld+json"]').forEach(t=>{try{let i=JSON.parse(t.textContent);"BreadcrumbList"===i["@type"]&&i.itemListElement&&i.itemListElement.forEach(t=>{t.name&&!G.includes(t.name.toLowerCase())&&e.push(t.name)})}catch(e){}}),e}_getCategoriesFromBreadcrumbItems(e){return this._filterCategoryBreadcrumbItems(e).map(e=>this._getBreadcrumbItemName(e)).filter(e=>this._isCategoryName(e))}_filterCategoryBreadcrumbItems(e){let t=Array.from(e),i=t.filter(e=>"itemListElement"===e.getAttribute("itemprop"));return(i.length>0?i:t).filter(e=>!this._isDecorativeBreadcrumbItem(e))}_isDecorativeBreadcrumbItem(e){return e.matches(".twt-breadcrumb-further-information, .twt-breadcrumb-home-icon, .t
1wt-breadcrumb-home-link")||null!==e.querySelector("a.home-link")}_getBreadcrumbItemName(e){let t=e.querySelector("a");return(t?t.textContent:e.textContent).trim()}_isCategoryName(e){return""!==e&&"/"!==e&&!G.includes(e.toLowerCase())}_createItemData(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,r=arguments.length>6?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=i.replace(/["']/g,""),c=!!n&&n.replace(/["']/g,""),u={list_position:1,quantity:parseInt(o),price:parseFloat(a),google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical};return s?(u.item_id=e,u.item_variant=t,u.item_name=l,n&&(u.item_brand=c)):(u.id=e,u.item_variant=t,u.name=l,n&&(u.brand=c)),r.categories.length>0&&r.categories.forEach((e,t)=>{t<5&&(u[0===t?"item_category":"item_category".concat(t+1)]=e)}),u}_onAddToCart(e){var t=o.querySelector(e.target,'input[name="bit-gtag-id"]',!1);this.checkElementAndValue(t,'input[name="bit-gtag-id"]');var i=t?t.value:"",n=o.querySelector(e.target,'input[name="bit-gtag-item-variant-id"]',!1),a=n?n.value:"",r=o.querySelector(e.target,'input[name="bit-gtag-price"]',!1);this.checkElementAndValue(r,'input[name="bit-gtag-price"]');var s=r?r.value:0,l=o.querySelector(e.target,'input[name="bit-gtag-unit_price"]',!1);this.checkElementAndValue(l,'input[name="bit-gtag-unit_price"]');var c=l?l.value:0,u=o.querySelector(e.target,'input[name="bit-gtag-name"]',!1);this.checkElementAndValue(u,'input[name="bit-gtag-name"]');var d=u?u.value:"",g=o.querySelector(e.target,'input[name="bit-gtag-brand"]',!1);this.checkElementAndValue(g,'input[name="bit-gtag-brand"]');var b=g?g.value:"",h=1,m=!1;if(!1!=o.querySelector(e.target,'input[name="bit-gtag-quantity"]',!1))m=o.querySelector(e.target,'input[name="bit-gtag-quantity"]',!1);else if(!1!=o.querySelector(e.target,"select.product-detail-quantity-select",!1))m=o.querySelector(e.target,"select.product-detail-quantity-select",!1);else if(!1!=o.querySelector(e.target,"input.product-detail-quantity-input",!1))m=o.querySelector(e.target,"input.product-detail-quantity-input",!1);else if(!1!=o.querySelector(e.target,".quantity-area-live",!1)){var p=this.extractQuantityFromDom(e.target);p&&void 0!==p&&p>0&&(h=p)}m&&void 0!==m.value&&""!==m.value&&(h=m.value);var w=parseFloat(c)*parseInt(h);let v=this._getBreadcrumbData();if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let e=this._createItemData(i,a,d,b,h,c,v,!0);e.index=0,e.price=parseFloat(c);let t={ecommerce:{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:w,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:[e]}};window.dataLayer&&(dataLayer.push({ecommerce:null}),t.event="add_to_cart",window.dataLayer.push(t))}else{let e=!!window.isGA4Id,t=this._createItemData(i,a,d,b,h,s,v,e);window.bilobaGtagEvent&&window.bilobaGtagEvent("add_to_cart",{items:[t]})}}}_onAddToWishlist(e){var t=e.detail.productId;if(t){var i=document.querySelector('input[name="bit-gtag-item-variant-id"][value="'+t+'"]');if(i){var n=i.parentElement,o=n.querySelector('input[name="bit-gtag-id"]'),a=o?o.value:"",r=n.querySelector('input[name="bit-gtag-name"]'),s=r?r.value:"",l=n.querySelector('input[name="bit-gtag-unit_price"]'),c=l?l.value:0,u=n.querySelector('input[name="bit-gtag-brand"]'),d=u?u.value:"",g=this._getBreadcrumbData(),b=parseFloat(c);if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){var h=this._createItemData(a,t,s,d,1,c,g,!0),m={ecommerce:{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:b,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:[h]}};window.dataLayer&&(dataLayer.push({ecommerce:null}),m.event="add_to_wishlist",window.dataLayer.push(m))}else{var p=!!window.isGA4Id,h=this._createItemData(a,t,s,d,1,c,g,p);window.bilobaGtagEvent&&window.bilobaGtagEvent("add_to_wishlist",{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:b,items:[h]})}}}}}_registerViewCartPageEvent(){document.querySelector(".is-ctl-checkout.is-act-cartpage")&&this._onViewCart()}_registerRemoveCheckoutCart(){let e=this;var t=o.querySelectorAll(document,".cart-item-product",!1);!1!=t&&s.iterate(t,function(t){var i=o.querySelector(t,".cart-item-remove form",!1);!1!=i&&e.uniqueBind(i,"click",e._onRemove.bind(e,i))})}_registerRemoveOffCanvasCart(){let e=this;var t=o.querySelector(document,".offcanvas-cart-items",!1);if(!1!=t){var i=o.querySelectorAll(t,".js-offcanvas-cart-remove-product",!1);!1!=i&&s.iterate(i,function(t){e.uniqueBind(t,"click",e._onRemove.bind(e,t))})}}_onRemove(e){var t=o.querySelector(e,'input[name="bit-gtag-id"]',!1);this.checkElementAndValue(t,'input[name="bit-gtag-id"]');var i=t?t.value:"";if(!i)return;var t=o.querySelector(e,'input[name="bit-gtag-item-variant-id"]',!1);this.checkElementAndValue(t,'input[name="bit-gtag-item-variant-id"]');var n=t?t.value:"",a=o.querySelector(e,'input[name="bit-gtag-price"]',!1);this.checkElementAndValue(a,'input[name="bit-gtag-price"]'),a&&a.value;var r=o.querySelector(e,'input[name="bit-gtag-unit_price"]',!1);this.checkElementAndValue(r,'input[name="bit-gtag-unit_price"]');var s=r?r.value:"",l=o.querySelector(e,'input[name="bit-gtag-name"]',!1);this.checkElementAndValue(l,'input[name="bit-gtag-name"]');var c=l?l.value:"",u=1,d=!1;!1!=o.querySelector(e,'input[name="bit-gtag-quantity"]',!1)?d=o.querySelector(e,'input[name="bit-gtag-quantity"]',!1):!1!=o.querySelector(e,"select.product-detail-quantity-select",!1)?d=o.querySelector(e,"select.product-detail-quantity-select",!1):!1!=o.querySelector(e,"input.product-detail-quantity-input",!1)&&(d=o.querySelector(e,"input.product-detail-quantity-input",!1)),d&&void 0!==d.value&&""!==d.value&&(u=d.value);var g=parseFloat(s)*parseInt(u);let b=this._getBreadcrumbData();if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let e=this._createItemData(i,n,c,!1,u,s,b,!0);e.index=0;let t={ecommerce:{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:g,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:[e]}};window.dataLayer&&(dataLayer.push({ecommerce:null}),t.event="remove_from_cart",window.dataLayer.push(t))}else{let e=!!window.isGA4Id,t=this._createItemData(i,n,c,!1,u,s,b,e);window.bilobaGtagEvent&&window.bilobaGtagEvent("remove_from_cart",{items:[t]})}}}_onViewCart(){this._trackViewCart(this._readCartSnapshot(A))}_onViewCartOffcanvas(){this._trackViewCart(this._readCartSnapshot(C))}_readCartSnapshot(e){let t;if(!window.bilobaAdGoogleGtagsjs)return null;let i="useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration?e.gtmItems:e.gtagItems,n=document.getElementById(e.value),o=document.getElementById(i);if(!n||!o)return null;try{t=JSON.parse(o.innerHTML)}catch(e){return null}let a=e.coupon?document.getElementById(e.coupon):null;return{value:parseFloat(n.value)||0,items:t,coupon:a?a.value:""}}_trackViewCart(e){if(!e||0===e.items.length)return;let t=Date.now();if(!(t-(window._bilobaViewCartLastFired||0)<1e3)){if(window._bilobaViewCartLastFired=t,"useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let t={ecommerce:{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:e.value,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:e.items}};window.dataLayer&&(dataLayer.push({ecommerce:null}),t.event="view_cart",window.dataLayer.push(t))}else window.bilobaGtagEvent&&window.bilobaGtagEvent("view_cart",{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:e.value,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:e.items})}}_registerSelectContentEventListener(){let e=this;var t=o.querySelectorAll(document,".product-box",!1);!1!=t&&s.iterate(t,function(t){var i=o.querySelectorAll(t,"a",!1);!1!=i&&s.iterate(i,function(i){e.uniqueBind(i,"click",e._onSelectContent.bind(e,t))})})}_onSelectContent(e){var t=o.querySelector(e,'input[name="bit-gtag-id"]',!1);this.checkElementAndValue(t,'input[name="bit-gtag-id"]');var i=t?t.value:"";if(!i)return;var t=o.querySelector(e,'input[name="bit-gtag-item-variant-id"]',!1);this.checkElementAndValue(t,'input[name="bit-gtag-item-variant-id"]');var n=t?t.value:"",a=o.querySelector(e,'input[name="bit-gtag-quantity"]',!1);this.checkElementAndValue(a,'input[name="bit-gtag-quantity"]',!1);var r=a?a.value:"",s=o.querySelector(e,'input[name="bit-gtag-price"]',!1);this.checkElementAndValue(s,'input[name="bit-gtag-price"]',!1),s&&s.value;var l=o.querySelector(e,'input[name="bit-gtag-unit_price"]',!1);this.checkElementAndValue(l,'input[name="bit-gtag-unit_price"]',!1);var c=l?l.value:"",u=o.querySelector(e,'input[name="bit-gtag-name"]',!1);this.checkElementAndValue(u,'input[name="bit-gtag-name"]',!1);var d=u?u.value:"",g=o.querySelector(e,'input[name="bit-gtag-brand"]',!1);this.checkElementAndValue(g,'input[name="bit-gtag-brand"]',!1);var b=g?g.value:"";let h=this._getBreadcrumbData();if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let e=this._createItemData(i,n,d,b,r,c,h,!0),t={content_type:"product",content_id:i,ecommerce:{google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:[e]}};window.dataLayer&&(dataLayer.push({ecommerce:null}),t.event="select_content",window.dataLayer.push(t),dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"select_item",ecommerce:{items:[e]}}))}else{let e=!!window.isGA4Id,t=this._createItemData(i,n,d,b,r,c,h,e);t.list_name="Product-listing";let o=e?"select_item":"select_content";window.bilobaGtagEvent&&window.bilobaGtagEvent(o,{content_type:"product",items:[t]})}}}_withCoupon(e,t){return t&&(e.coupon=t),e}_onBeginnCheckout(){if(window.bilobaAdGoogleGtagsjs){let e=window.bilobaAdGoogleGtagsjs.bilobaGoogleCartCoupon||"";if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let t={ecommerce:this._withCoupon({currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:window.bilobaAdGoogleGtagsjs.bilobaGoogleCartValue,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:window.bilobaAdGoogleGtagsjs.bilobaGoogleGtmCart},e)};window.dataLayer&&(dataLayer.push({ecommerce:null}),t.event="begin_checkout",window.dataLayer.push(t))}else window.bilobaGtagEvent&&window.bilobaGtagEvent("begin_checkout",this._withCoupon({content_type:"product",currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:window.bilobaAdGoogleGtagsjs.bilobaGoogleCartValue,items:window.bilobaAdGoogleGtagsjs.bilobaGoogleGtagCart,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical},e))}}_registerBeginnCheckoutEventListener(){let e=Array.from(document.querySelectorAll('a[href="'+window.bilobaAdGoogleGtagsjs.bilobaCheckoutConfirm+'"]')).find(e=>!e.closest(E));e&&this.uniqueBind(e,"click",this._onBeginnCheckout.bind(this))}_onBeginnCheckoutOffcanvas(){let e=this._readCartSnapshot(C);if(!e){console.log("[BilobaAdGoogleGtagsjs] checkout offcanvas elements not found");return}if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let t={ecommerce:this._withCoupon({currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:e.value,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:e.items},e.coupon)};window.dataLayer&&(dataLayer.push({ecommerce:null}),t.event="begin_checkout",window.dataLayer.push(t))}else window.bilobaGtagEvent&&window.bilobaGtagEvent("begin_checkout",this._withCoupon({content_type:"product",currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,value:e.value,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:e.items},e.coupon))}_registerBeginnCheckoutOffcanvas(){let e=document.querySelector(E);if(!e)return;let t=o.querySelector(e,'a[href="'+window.bilobaAdGoogleGtagsjs.bilobaCheckoutConfirm+'"]',!1);t&&this.uniqueBind(t,"click",this._onBeginnCheckoutOffcanvas.bind(this))}_onCheckoutProgress(){window.bilobaGtagEvent&&window.bilobaGtagEvent("checkout_progress",{checkout_step:1,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,items:window.bilobaAdGoogleGtagsjs.bilobaGoogleGtagCart})}_registerCheckoutProgressEventListener(){var e=o.querySelector(document,".register-form",!1);!1!=e&&window.bilobaAdGoogleGtagsjs&&("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration?this.uniqueBind(e,"submit",this._onBeginnCheckout.bind(this)):window.isGA4Id?this.uniqueBind(e,"submit",this._onBeginnCheckout.bind(this)):this.uniqueBind(e,"submit",this._onCheckoutProgress.bind(this)))}_onPaymentOption(e){var t=o.querySelectorAll(e,".payment-method",!1);!1!=t&&s.iterate(t,function(e){var t=o.querySelector(e,"input[type=radio]",!1);if(!1!=t&&t.checked){var i=o.querySelector(e,".payment-method-label .payment-method-description strong",!1);if(!i){console.log("[BilobaAdGoogleGtagsjs] Payment method label not found");return}var n=i.innerHTML.valueOf();if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let e={ecommerce:{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,payment_type:n}};window.dataLayer&&(dataLayer.push({ecommerce:null}),e.event="add_payment_info",window.dataLayer.push(e))}else window.isGA4Id?window.bilobaGtagEvent&&window.bilobaGtagEvent("add_payment_info",{checkout_step:2,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,payment_type:n}):window.bilobaGtagEvent&&window.bilobaGtagEvent("set_checkout_option",{checkout_step:2,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,checkout_option:n})}}})}_onShippingOptions(e){var t=o.querySelectorAll(e,".shipping-method",!1);!1!=t&&s.iterate(t,function(e){var t=o.querySelector(e,"input[type=radio]",!1);if(!1!=t&&t.checked){var i=o.querySelector(e,".shipping-method-label .shipping-method-description strong",!1);if(!i){console.log("[BilobaAdGoogleGtagsjs] Shipping method label not found");return}var n=i.innerHTML.valueOf();if(window.bilobaAdGoogleGtagsjs){if("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration){let e={ecommerce:{currency:window.bilobaAdGoogleGtagsjs.contextCurrencyIsoCode,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,shipping_tier:n}};window.dataLayer&&(dataLayer.push({ecommerce:null}),e.event="add_shipping_info",window.dataLayer.push(e))}else window.isGA4Id?window.bilobaGtagEvent&&window.bilobaGtagEvent("add_shipping_info",{checkout_step:3,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,shipping_tier:n}):window.bilobaGtagEvent&&window.bilobaGtagEvent("set_checkout_option",{checkout_step:3,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,checkout_option:n})}}})}_registerPaymentOptionsEventListener(){let e=this;var t=o.querySelector(document,".confirm-payment",!1);if(!1!=t){var i=o.querySelectorAll(t,"input[type=radio]",!1);s.iterate(i,function(i){!1!=i&&e.uniqueBind(i,"click",e._onPaymentOption.bind(e,t))});var n=o.querySelector(document,".confirm-shipping",!1);if(!1!=n){var a=o.querySelectorAll(n,"input[type=radio]",!1);s.iterate(a,function(t){!1!=n&&!1!=t&&e.uniqueBind(t,"click",e._onShippingOptions.bind(e,n))})}}}_onClickToc(){window.bilobaGtagEvent&&window.bilobaGtagEvent("set_checkout_option",{checkout_step:4,google_business_vertical:window.bilobaAdGoogleGtagsjs.googleBusinessVertical,checkout_option:"tos"})}_registerTocEventListener(){var e=o.querySelector(document,".confirm-tos",!1);if(!1!=e){var t=o.querySelector(e,"input[type=checkbox]",!1);!1!=t&&window.bilobaAdGoogleGtagsjs&&("useGTM"==window.bilobaAdGoogleGtagsjs.useTrackingIntegration?this.uniqueBind(t,"click",this._onBeginnCheckout.bind(this)):window.isGA4Id?this.uniqueBind(t,"click",this._onBeginnCheckout.bind(this)):this.uniqueBind(t,"click",this._onClickToc.bind(this)))}}checkIfValueIsEmpty(e){return 0===e.length}uniqueBind(e,t,i){var n=e.getAttribute("id");n||(n="_"+Math.random().toString(36).substr(2,9),e.setAttribute("id",n)),this.listeners=this.listeners||{},this.listeners[n]=this.listeners[n]||{},this
1.listeners[n][t]&&e.removeEventListener(t,this.listeners[n][t]),this.listeners[n][t]=i,e.addEventListener(t,i)}extractQuantityFromDom(e){var t;let i=o.querySelector(e,".quantity-area-live",!1);if(!i)return null;let n=i.dataset.ariaLiveText,a=i.textContent.trim(),r=n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace("%product%","(?<product>.+?)").replace("%quantity%","(?<quantity>\\d+)"),s=new RegExp("^".concat(r,"$")).exec(a);return(null==s?void 0:(t=s.groups)===null||void 0===t?void 0:t.quantity)?parseInt(s.groups.quantity,10):null}})})()})();
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.