PageSourceSearch

https://www.deonlinedrogist.nl/beryl/public/app/dod/js/blog.critical-min.js?v=26252

js deonlinedrogist.nl collected 2026-09-24 10:47:27 UTC 95,388 bytes, 1 lines download raw bytes

1!function(){var e=function(){};e.prototype={constructor:e,origin:function(){return document.location.origin},href:function(e){return"string"==typeof e||e instanceof String?"https://"===e.substring(0,8)||"http://"===e.substring(0,7)?e:this.origin()+(e.length>0&&"/"!=e[0]?"/"+e:e):this.origin()},goto:function(e){window.location.href=this.href(e)},redirect:function(e){setTimeout(function(){window.location=this.href(e)}.bind(this),200)},pushState:function(e){$B.is.Function(history.pushState)&&history.pushState({title:document.title,url:e},document.title,e)},replaceState:function(e){$B.is.Function(history.replaceState)&&history.replaceState({title:document.title,url:e},document.title,e)}},$B.location=new e,$B._screen=function(){const e=function(){this._ipadCookieName="is_ipad",this.init()};return e.prototype={constructor:e,init:function(){this._initIPad()},_initIPad:function(){const e=$B.cookie.get(this._ipadCookieName,0),t=this.isIPad()?1:0;t!==e&&$B.cookie.set(this._ipadCookieName,t,{expires:this._getExpireDate()})},isIPhone:function(){return/iPhone/i.test(navigator.userAgent)},isIPad:function(){return!this.isIPhone()&&this.isTouchDevice()&&void 0!==(window.navigator||{}).standalone},isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},_getExpireDate:function(){const e=new Date;return e.setTime(e.getTime()+31536e6),e.toUTCString()}},new e}();var t=function(){this._defaultLayout="mobile",this.layout=this._defaultLayout,this.init()};t.prototype={constructor:t,init:function(){$B.onReady("footer-all-blocks",this.update.bind(this)),$B.on(window,"DOMContentLoaded",this.update,this),$B.on(window,"load",this.update,this),$B.on(window,"orientationchange",this.update,this),$B.on(window,"resize",this.update,this)},update:function(e){var t=$B.screen.layout;t!==this.layout&&this.switch(t)},switch:function(e){["contactInfo","imageWrapper","newsletter","infoList","thuiswinkelDefault","smallBanner"].forEach(function(t){this.move(t,e+"-"+$B.screen.orientation)||this.move(t,e)}.bind(this)),this.layout=e},move:function(e,t){var n="j-layout_block--"+e,i="j-layout_"+t+"--"+e,o=$B.query("."+n);if(!$B.is.Element(o))return!1;var s=$B.query("."+i);return!(!$B.is.Element(s)||s==o.parentNode||(o.parentNode.classList.add("l-layout--empty"),s.appendChild(o),s.classList.remove("l-layout--empty"),0))}},new t,function(){function e(){var e=document.querySelector(".c-header__fixed-wrapper"),t=document.querySelector(".c-header__fixed-main");e&&"undefined"!=typeof ResizeObserver&&(new ResizeObserver(function(){document.documentElement.style.setProperty("--j-header-height",e.offsetHeight+"px")}).observe(e),t&&new ResizeObserver(function(){document.documentElement.style.setProperty("--j-header-fixed-main-height",t.offsetHeight+"px")}).observe(t))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();const n=function(){this._storage=window.localStorage||{_data:{},setItem:function(e,t){return this._data[e]=String(t)},getItem:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null},removeItem:function(e){return delete this._data[e]},clear:function(){return this._data={}},key:function(e){return Object.keys(this._data)[e]},get length(){return Object.keys(this._data).length}}};n.prototype={constructor:n,get:function(e){try{const t=this._storage.getItem(e);if(!t)return null;try{const n=JSON.parse(t);return n._expire?(new Date).getTime()>=n._expire?(this.delete(e),null):n.data:n}catch(e){return t}}catch(e){return console.warn("Could not get data from localStorage",e),null}},set:function(e,t,n){let i=t;n=parseInt(n),!isNaN(n)&&n>0&&(i={data:t,_expire:(new Date).getTime()+1e3*n});try{this._storage.setItem(e,JSON.stringify(i))}catch(e){console.warn("Could not set data in localStorage",e)}},delete:function(e){try{this._storage.removeItem(e)}catch(e){console.warn("Could not delete data from localStorage",e)}},clear:function(){try{this._storage.clear()}catch(e){console.warn("Could not clear localStorage",e)}}},$B.localStorage=new n;var i=function(){};i.prototype={constructor:i,assign:function(e,t,n,i,o){var s=n._parent||"";for(var a in delete n._parent,(s=this._schemas[s]||null)&&(n=Object.assign(s,n)),n)!1===n[a]&&delete n[a];var r=this._onError;$B.is.Function(i)&&(r=function(e,t){this._onError.call(this,e,t),i.call(this,e,t)}.bind(this));var c=this._onSuccess;$B.is.Function(o)&&(c=function(e){this._onSuccess.call(this,e),o.call(this,e)}.bind(this)),$B.on(e,"submit",function(){e._pendingFirstErrorScroll=!0}),$B.validate(e,n,function(e,n,i){return $B._validator.toggleSubmitSummaryError(i,!n),t.call(this,e,n,i)},r,c)},_onError:function(e,t){if($B.is.NodeList(e)&&(e=e[0]),$B.is.Element(e)){t=$B.stringify(t);var n=e.parentNode;n.classList.remove("c-input--valid"),n.classList.add("c-input--invalid");var i=$B.query(".j-input--error",n);$B.is.Element(i)?i.innerHTML=t:n.insertAdjacentHTML("beforeend",'<span tabindex="0" class="j-input--error c-input--error">'+t+"</span>");var o=e.closest("form");o&&o._pendingFirstErrorScroll&&(o._pendingFirstErrorScroll=!1,requestAnimationFrame(function(){var e=n.parentNode,t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;if(!(t.top>=0&&t.bottom<=i)){var o=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;e.scrollIntoView({behavior:o?"auto":"smooth",block:"center"})}}))}},_onSuccess:function(e){if($B.is.NodeList(e)&&(e=e[0]),$B.is.Element(e)){var t=e.parentNode;t.classList.remove("c-input--invalid"),t.classList.add("c-input--valid"),$B.remove($B.query(".j-input--error",t))}},_schemas:{account:{customers_type:{required:[!0,"Dit is een verplicht veld."]},email_address:{required:[!0,"Het e-mail adres moet nog ingevuld worden."],email:[!0,"Het ingevulde e-mailadres is niet correct."]},firstname:{required:[!0,"De voornaam moet nog ingevuld worden."],minlength:[2,"De voornaam moet minimaal 2 tekens lang zijn."]},lastname:{required:[!0,"De achternaam moet nog ingevuld worden."],minlength:[2,"De achternaam moet minimaal 2 tekens lang zijn."]},company:{maxlength:[256,"De Bedrijfsnaam moet maximaa 256 tekens lang zijn."]},company_vat:{maxlength:[20,"Het BTW nummer mag maximaal 20 tekens lang zijn."]},country:{required:[!0,"Kies een land uit het keuzemenu."]},postcode:{required:[!0,"De postcode moet nog ingevuld worden."],dutchPostcodeCheck:[function(e,t,n){if("150"==$B.value($B.query('select[name="country"]',n))){var i=e.replace(/\s+/g,"");return/^([0-9]{4}?[a-zA-Z]{2})$/.test(i)}return!0},"De postcode is niet in het juiste formaat voor Nederland, een postcode bestaat uit 4 tekens + 2 letters."],belgiumPostcodeCheck:[function(e,t,n){if("21"==$B.value($B.query('select[name="country"]',n))){var i=e.replace(/\s+/g,"");return/^([0-9]{4})$/.test(i)}return!0},"De postcode is niet in het juiste formaat voor België, een postcode bestaat uit 4 tekens."]},street_no:{required:[!0,"Het huisnummer moet nog ingevuld worden."],integer:[!0,"Gebruik alleen cijfers."],minlength:[1,"Het huisnummer moet minimaal 1 tekens lang zijn"]},street_address:{required:[!0,"De straatnaam moet nog ingevuld worden."],minlength:[1,"De straatnaam moet minimaal 3 tekens lang zijn."],belgStreetCheck:[function(e,t,n){var i=!0;return"21"==$B.value($B.query('select[name="country"]',n))&&["postbus","postbox","pobox","po box"].forEach(function(t){e.toLowerCase()==t&&(i=!1)}),i},"Een straatnaam vergelijkbaar met POSTBUS is NIET toegestaan voor Belgische adressen."]},city:{required:[!0,"De woonplaats moet nog ingevuld worden."],minlength:[2,"De woonplaats moet minimaal 3 tekens lang zijn."]},street_no_add:{maxlength:[6,"De toevoeging van het huisnummer mag niet langer dan 6 karakters zijn."]},telephone:{maxlength:[32,"Het telefoonnummer moet maximaal 32 tekens lang zijn."]},dob:{checkDate:[function(e,t,n){var i=!0;return/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(\d{4})$/.test(e)||(i=!1),i},"Verkeerde datum."]},billing_firstname:{required:[!0,"De voornaam moet nog ingevuld worden."],minlength:[2,"De voornaam moet minimaal 2 tekens lang zijn."]},billing_lastname:{required:[!0,"De achternaam moet nog ingevuld worden."],minlength:[2,"De achternaam moet minimaal 2 tekens lang zijn."]},billing_company:{maxlength:[256,"De Bedrijfsnaam moet maximaa 256 tekens lang zijn."]},billing_country:{required:[!0,"Kies een land uit het keuzemenu."]},billing_postcode:{required:[!0,"De postcode moet nog ingevuld worden."],dutchPostcodeCheck:[function(e,t,n){if("150"==$B.value($B.query('select[name="billing_country"]',n))){var i=e.replace(/\s+/g,"");return/^([0-9]{4}?[a-zA-Z]{2})$/.test(i)}return!0},"De postcode is niet in het juiste formaat voor Nederland, een postcode bestaat uit 4 tekens + 2 letters."],belgiumPostcodeCheck:[function(e,t,n){if("21"==$B.value($B.query('select[name="billing_country"]',n))){var i=e.replace(/\s+/g,"");return/^([0-9]{4})$/.test(i)}return!0},"De postcode is niet in het juiste formaat voor België, een postcode bestaat uit 4 tekens."]},billing_street_no:{required:[!0,"Het huisnummer moet nog ingevuld worden."],integer:[!0,"Gebruik alleen cijfers."],minlength:[1,"Het huisnummer moet minimaal 1 tekens lang zijn"]},billing_street_address:{required:[!0,"De straatnaam moet nog ingevuld worden."],minlength:[1,"De straatnaam moet minimaal 3 tekens lang zijn."],belgStreetCheck:[function(e,t,n){var i=!0;return"21"==$B.value($B.query('select[name="billing_country"]',n))&&["postbus","postbox","pobox","po box"].forEach(function(t){e.toLowerCase()==t&&(i=!1)}),i},"Een straatnaam vergelijkbaar met POSTBUS is NIET toegestaan voor Belgische adressen."]},billing_city:{required:[!0,"De woonplaats moet nog ingevuld worden."],minlength:[2,"De woonplaats moet minimaal 3 tekens lang zijn."]},billing_street_no_add:{maxlength:[6,"De toevoeging van het huisnummer mag niet langer dan 6 karakters zijn."]},address_full:{required_input_if_visible:[!0,"Het adres moet nog ingevuld worden."],addressFullInternationale:[function(e,t,n){let i=!!t.classList.contains("hidden")||"1"===t.dataset.selected,o=$B.queryOnce(".j-address_full_fill_manual",n);return $B.is.Element(o)&&(i?o.classList.add("hide"):o.classList.remove("hide")),i},"Het adres moet nog ingevuld worden."]}}}};var o=Object.freeze(new i);$B._validator=function(e,t,n,i,s){if($B.is.Empty(e)||$B.is.Empty(t)||$B.is.Empty(n))return!1;if($B.is.String(e)&&(e=document.getElementById(e)),!$B.is.Element(e)||!$B.is.Function(t)||!$B.is.Object(n))return!1;var a=$B.queryOnce(".j-cpt--n",e);if($B.is.Element(a)&&a.getAttribute("name")){var r=a.getAttribute("name");$B.is.Undefined(n[r])&&(n[r]={required:[!0,"Dit is een verplicht veld."],minlength:[5,"De ingevoerde tekst heeft een verkeerde lengte."],maxlength:[5,"De ingevoerde tekst heeft een verkeerde lengte."]})}o.assign.call(o,e,t,n,i,s)}
1,$B._validator.checkAddress=function(e,t){if(!$B.is.Element(t))return!1;if($B.is.Empty(e.errorValidation))return!1;for(var n=Object.entries(JSON.parse(e.errorValidation)),i=0;i<n.length;i++){var o=$B.query("input[name="+n[i][0]+"]",t),s=$B.is.Empty(n[i][1])?"":n[i][1];if($B.is.Element(o)&&s){var a=o.parentNode;a.classList.remove("c-input--valid"),a.classList.add("c-input--invalid");var r=$B.query(".j-input--error",a);$B.is.Element(r)?r.innerHTML=s:a.insertAdjacentHTML("beforeend",'<span tabindex="0" class="j-input--error c-input--error">'+s+"</span>")}}},$B._validator.unsetGenderRadioButton=function(e,t){if(e=e||null,t=t||null,$B.is.Element(e)&&$B.is.Element(t)){var n=0,i=0;e.checked&&(n=1),t.checked&&(i=1),$B.on(e,"click",function(){1==n&&e.checked?(e.checked=!1,n=null):(n=1,i=0)},this),$B.on(t,"click",function(){1==i&&t.checked?(t.checked=!1,i=0):(i=1,n=0)},this)}},$B._validator.updateTokens=function(e,t){var n=e.tkns||[],i=n.csrf||null,o=n.captcha||null;if(i&&i.name&&i.value){var s=$B.queryOnce(".j-tkn",t);$B.is.Element(s)?(s.setAttribute("name",i.name),s.setAttribute("value",i.value),s.value=i.value):window.location.reload()}if(o&&o.name){var a=$B.queryOnce(".j-cpt--n",t);$B.is.Element(a)?(o.name!==a.getAttribute("name")&&a.setAttribute("name",o.name),a.setAttribute("value",""),a.value="",o.value&&($B.dataSet(a,"value",o.value),$B.emit(a,"b-reset")),o.src&&$B.queryOnce(".j-cpt--s",t).setAttribute("src",o.src)):window.location.reload()}},$B._validator.getToken=function(e){var t=$B.queryOnce(".j-tkn",e);return $B.is.Element(t)?$B.value(t):""},$B._validator.reset=function(e,t,n){return!($B.is.Empty(e)||$B.is.Empty(t)||$B.is.Empty(n))&&($B.is.String(e)&&(e=document.getElementById(e)),!!$B.is.Element(e)&&!!$B.is.Function(n)&&void n.call(this,e,t))};var s=[];$B._validator.getSubmitButtons=function(e){if(!$B.is.Element(e))return[];var t=Array.prototype.slice.call(e.querySelectorAll('button[type="submit"], input[type="submit"]'));return e.id&&(t=t.concat(Array.prototype.slice.call(document.querySelectorAll('[form="'+e.id+'"][type="submit"]')))),t},$B._validator.setSubmitPending=function(e,t){if($B.is.Element(e)){$B._validator.getSubmitButtons(e).forEach(function(e){e.disabled=t,e.classList.toggle("c-loader--small",t),e.classList.toggle("c-loader--white",t)});var n=s.indexOf(e);t&&-1===n?s.push(e):t||-1===n||s.splice(n,1)}},$B._validator.toggleSubmitSummaryError=function(e,t){if($B.is.Element(e)){var n=$B._validator.getSubmitButtons(e)[0];if(n){var i=e.querySelector(".j-submit-summary-error");t?i||((i=document.createElement("div")).className="j-submit-summary-error c-input--error",i.setAttribute("tabindex","0"),i.textContent="Controleer de rood gemarkeerde velden hierboven.",n.insertAdjacentElement("beforebegin",i)):i&&i.remove()}}},window.addEventListener("pageshow",function(){s.slice().forEach(function(e){$B._validator.setSubmitPending(e,!1)})}),$B._validator=Object.freeze($B._validator);var a=function(e,t){this.additionalName=e?"-"+e:"",this.validationList=t||{emailAddress:{required:[!0,"Dit is een verplicht veld."],email:[!0,"Vul hier een geldig e-mailadres in."]}},this.init()};a.prototype={constructor:a,init:function(){$B._validator("form-newsletter"+this.additionalName,this._onSubscribe.bind(this),this.validationList,function(){$B.remove($B.query("#j-alert-success-message"+this.additionalName))}.bind(this))},_resetForm:function(e,t){var n=(e.body||{}).message||"";if($B.query("#message-form"+this.additionalName).innerHTML=n?'<div id="j-alert-success-message'+this.additionalName+'">'+n+"</div>":"",$B.query("#emailAddress"+this.additionalName).value="","string"==typeof e.body)var i=JSON.parse(e.body);else i=e.body;$B._validator.updateTokens(i||{},t)},_onSubscribe:function(e,t,n){var i=$B.formData(n);return i.typeSubscription=this.additionalName.replace("-",""),i.token=$B._validator.getToken(n),t&&$B.xhr({origin:"/subscribe",type:"json",method:"POST",body:i},this).fail(function(e){this._resetForm.call(this,e,n)}.bind(this)).success(function(e){this._resetForm.call(this,e,n)}.bind(this)).send(),e.preventDefault(),!1}},$B.onReady("emailAddress",function(){new a}),$B.onReady("form-newsletter-korting",function(){new a("korting",{emailadres:{required:[!0,"Het e-mail adres moet nog ingevuld worden."],email:[!0,"Het ingevulde e-mailadres is niet correct."]}})}),$B.onReady("footer-all-blocks",function(){new $B.widget.grecaptcha});var r=function(){this.validationList={dob:{required:[!0,"Dit is een verplicht veld"],checkDate:[function(e,t,n){var i=!0;return/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(\d{4})$/.test(e)||(i=!1),i},"Verkeerde datum"]}},this.init()};r.prototype={constructor:r,init:function(){this._sendBirthdayForm=$B.query("#sendbirthday"),this._sendBirthdayDay=$B.query('select[name="dateBirthDay"]'),this._sendBirthdayMonth=$B.query('select[name="dateBirthMonth"]'),this._sendBirthdayYear=$B.query('select[name="dateBirthYear"]'),this._sendDob=$B.query("#dob"),$B._val
1idator($B.queryOnce("#sendbirthday",this.element),function(e,t,n){return e.preventDefault(),$B.query(".message-form",this._sendBirthdayForm).classList.add("hidden"),t&&this._submitSendBirthdayForm(),!1}.bind(this),this.validationList),$B.on(this._sendBirthdayDay,"change",this._updateDOB,this),$B.on(this._sendBirthdayMonth,"change",this._updateDOB,this),$B.on(this._sendBirthdayYear,"change",this._updateDOB,this),$B.on(this._sendBirthdayMonth,"change",this._updateDays,this),$B.on(this._sendBirthdayYear,"change",this._updateDays,this)},_submitSendBirthdayForm:function(e){return $B.query(".message-form",this._sendBirthdayForm).classList.add("hidden"),$B.query(".message-form",this._sendBirthdayForm).classList.remove("c-message-form__success"),$B.xhr({origin:"/birthday/sendbirthday",type:"json",method:"POST",body:$B.formData(this._sendBirthdayForm)},this).success(function(e){const t=e.body;t.errorMessage&&($B.query(".message-form",this._sendBirthdayForm).innerHTML=t.errorMessage,$B.query(".message-form",this._sendBirthdayForm).classList.remove("hidden")),t.result&&"success"===t.result&&($B.query(".message-form",this._sendBirthdayForm).innerHTML="Datum succesvol verzonden",$B.query(".message-form",this._sendBirthdayForm).classList.add("c-message-form__success"),$B.query(".message-form",this._sendBirthdayForm).classList.remove("hidden"))}).fail(function(e){const t=e.body;t.errorMessage&&($B.query(".message-form",this._sendBirthdayForm).innerHTML=t.errorMessage,$B.query(".message-form",this._sendBirthdayForm).classList.remove("hidden"))}).send(),!1},_updateDOB(){const e=this._sendBirthdayDay.value,t=this._sendBirthdayMonth.value,n=this._sendBirthdayYear.value;e&&"0"!==e&&t&&n?(this._sendDob.value=`${e.padStart(2,"0")}-${t.padStart(2,"0")}-${n}`,$B.query(".c-account__form-row",this._sendBirthdayForm).classList.add("c-valid-dob")):(this._sendDob.value="",$B.query(".c-account__form-row",this._sendBirthdayForm).classList.remove("c-valid-dob"))},_updateDays(){const e=parseInt(this._sendBirthdayMonth.value),t=parseInt(this._sendBirthdayYear.value);let n=31,i="";2===e?n=t?t%4!=0||t%100==0&&t%400!=0?28:29:28:[4,6,9,11].includes(e)&&(n=30);const o=parseInt(this._sendBirthdayDay.value);this._sendBirthdayDay.innerHTML="",i='<option value="0">Dag</option>';for(let e=1;e<=n;e++){const t=e.toString().padStart(2,"0");i+='<option value="'+t+'">'+t+"</option>"}this._sendBirthdayDay.innerHTML=i,0===o||o>n?(this._sendBirthdayDay.selectedIndex=0,this._updateDOB()):this._sendBirthdayDay.value=o.toString().padStart(2,"0")}},$B.onReady("sendbirthday",function(){new r});const c=function(){this._events={}};c.prototype={constructor:c,_eventTimeout:1500,virtualPageView:function(e){window.dataLayer.push({event:"virtual_page_view",title:document.title,url:e,ecommerce4:{}})},productsList:function(e){const t=[],n=e[0].list||"";for(let n=0;n<e.length;n++)t.push(this._getItemGA4(e[n]));this._clearDataGA4(),window.dataLayer.push({event:"view_item_list",ecommerce4:{items:t,item_list_id:n}})},viewPromotion:function(e){this._clearDataGA4(),window.dataLayer.push({event:"view_promotion",ecommerce4:{promotion:this._getPromotionGA4(e)}})},selectPromotion:function(e,t){const n=this._beginEvent("selectPromotion",t);this._clearDataGA4(),window.dataLayer.push({event:"select_promotion",eventTimeout:this._eventTimeout,eventCallback:function(e){this._callSafely(e,n,t)}.bind(this),ecommerce4:{promotion:this._getPromotionGA4(e)}})},search:function(e,t){e=e||"",t=t||[];const n=[];for(let e=0;e<t.length;e++)n.push(t[e].id);this._clearDataGA4(),window.dataLayer.push({event:"search",ecommerce4:{search_term:e,"x-fb-cd-content_ids":n}})},removeFromCart:function(e,t,n){const i=this._beginEvent("removeFromCart",n);this._removeFromCartGA4(i,e,t,n)},_removeFromCartGA4:function(e,t,n,i){const o=this._getItemGA4(t);o.index=0,o.quantity=n,this._clearDataGA4(),window.dataLayer.push({event:"remove_from_cart",eventTimeout:this._eventTimeout,eventCallback:function(t){this._callSafely(t,e,i)}.bind(this),ecommerce4:{value:parseFloat((t.price*n).toString()).toFixed(2),items:[o]}})},addToCart:function(e,t,n){const i=this._beginEvent("addToCart",n);this._addToCartOther(e),this._addToCartGA4(i,e,t,n)}
1,_addToCartGA4:function(e,t,n,i){const o=t.list||"",s=this._getItemGA4(t);s.index=0,s.quantity=n,this._clearDataGA4();const a={items:[s]};let r;this._hasProductPrice(t)&&(a.value=parseFloat((t.price*n).toString()).toFixed(2)),(o.endsWith("-other_customers_also_bought")||o.endsWith("-xsell"))&&(r="add_to_cart_cross-sells"),"cart-upsell"===o&&(r="add_to_cart_cart-upsells"),r&&window.dataLayer.push({event:r,eventTimeout:this._eventTimeout,ecommerce4:a}),window.dataLayer.push({event:"add_to_cart",eventTimeout:this._eventTimeout,eventCallback:function(t){this._callSafely(t,e,i)}.bind(this),ecommerce4:a})},_addToCartOther:function(e){window.dataLayer.push({event:"loop54_web",loop54:{events:[{type:"addtocart",entity:{type:"Product",id:e.id}}],user_id:this._getUserIdL54()}})},productClick:function(e,t,n){e.aucId?this._clickAd(e.aucId,e.id,function(){this._productClick(e,t,n)}.bind(this)):this._productClick(e,t,n)},_productClick:function(e,t,n){const i=this._beginEvent("productClick",n);this._productClickOther(e),this._productClickGA4(i,e,t,n)},_productClickGA4:function(e,t,n,i){this._clearDataGA4(),window.dataLayer.push({event:"select_item",eventTimeout:this._eventTimeout,eventCallback:function(t){this._callSafely(t,e,i)}.bind(this),ecommerce4:{item_list_id:n||"",items:[this._getItemGA4(t)]}})},_productClickOther:function(e){window.dataLayer.push({event:"loop54_web",loop54:{events:[{type:"click",entity:{type:"Product",id:e.id}}],user_id:this._getUserIdL54()}})},beginCheckout:function(e,t,n){const i=this._beginEvent("beginCheckout",n);this._beginCheckoutGA4(i,e,t,n)},_beginCheckoutGA4:function(e,t,n,i){this._clearDataGA4(),window.dataLayer.push({event:"begin_checkout",ecommerce4:this._getCheckoutDataGA4(t,n),eventTimeout:this._eventTimeout,eventCallback:function(t){this._callSafely(t,e,i)}.bind(this)})},addShippingInfo:function(e,t,n,i){const o=this._beginEvent("addShippingInfo",i);this._addShippingInfoGA4(o,e,t,n,i)},_addShippingInfoGA4:function(e,t,n,i,o){const s=this._getCheckoutDataGA4(t,n);i&&(s.shipping_tier=i),this._clearDataGA4(),window.dataLayer.push({event:"add_shipping_info",ecommerce4:s,eventTimeout:this._eventTimeout,eventCallback:function(t){this._callSafely(t,e,o)}.bind(this)})},addPaymentInfo:function(e,t,n,i){const o=this._beginEvent("addPaymentInfo",i);this._addPaymentInfoGA4(o,e,t,n,i)},_addPaymentInfoGA4:function(e,t,n,i,o){const s=this._getCheckoutDataGA4(t,n);i&&(s.payment_type=i),this._clearDataGA4(),window.dataLayer.push({event:"add_payment_info",ecommerce4:s,eventTimeout:this._eventTimeout,eventCallback:function(t){this._callSafely(t,e,o)}.bind(this)})},addToWishlist:function(e){const t=this._getItemGA4(e);this._clearDataGA4(),window.dataLayer.push({event:"add_to_wishlist",ecommerce4:{value:parseFloat(e.price.toString()).toFixed(2),items:[t]}})},removeFromWishlist:function(e){const t=this._getItemGA4(e);this._clearDataGA4(),window.dataLayer.push({event:"remove_from_wishlist",ecommerce4:{value:parseFloat(e.price.toString()).toFixed(2),items:[t]}})},waitListProductSignup:function(e,t){this._clearDataGA4(),window.dataLayer.push({event:"wait_list_product_signup",ecommerce4:{"x-sqzl-custom_date_product_waitlist":(new Date).toISOString().slice(0,10),items:[{item_id:t}]}})},sleepingProblemsView:function(){this._clearDataGA4(),window.dataLayer.push({event:"sleeping_problems_view",ecommerce4:{}})},sleepingProblemsClick:function(){this._clearDataGA4(),window.dataLayer.push({event:"sleeping_problems_click",ecommerce4:{}})},_clearDataGA4:function(){window.dataLayer.push({event:"clear_data",ecommerce4:null})},_getUserIdL54:function(){return $B.is.Empty(__DOD__)||$B.is.Empty(__DOD__.l54i)?"":__DOD__.l54i},_getItemGA4:function(e){let t={item_id:e.id,item_name:e.name??""},n=1;null!=e.price&&""!==e.price&&Number(e.price)>0&&(t.price=parseFloat(Number(e.price).toString()).toFixed(2)),void 0!==e.brand&&""!==e.brand&&(t.item_brand=e.brand),void 0!==e.position&&""!==e.position&&(t.index=e.position),void 0!==e.list&&""!==e.list&&(t.item_list_id=e.list);for(const i in e.categories){if(n>5)break;t["item_category"+(n>1?n:"")]=e.categories[i],n++}return t},_hasProductPrice:function(e){return null!=e.price&&""!==e.price&&Number(e.price)>0},_getPromotionGA4:function(e){const t={promotion_id:e.id,creative_name:e.creative};return e.name&&(t.promotion_name=e.name),e.position&&(t.creative_slot=e.position),(e.items||[])[0]&&(t.items=[this._getItemGA4(e.items[0])]),t},_getCheckoutDataGA4:function(e,t){let n=[],i=0;for(var o=0;o<e.length;o++){var s=this._getItemGA4(e[o]);s.quantity=e[o].quantity,n.push(s),i+=e[o].price*e[o].quantity}const a={value:parseFloat(i.toString()).toFixed(2),items:n};return t&&(a.coupon=t.title),a},_beginEvent:function(e,t){const n=e+Date.now()+Math.floor(100*Math.random());return this._events[n]={count:0,s:Date.now(),timer:$B.is.Function(t)?setTimeout(function(){this._call("timeout",n,t)}.bind(this),1999):null},n},_endEvent:function(e){delete this._events[e]},_callSafely:function(e,t,n){void 0!==this._events[t]&&(this._events[t].count++,$B.is.Function(n)&&(2===this._events[t].count?this._call(e,t,n):1===this._events[t].count&&(this._events[t].timer=setTimeout(function(){this._call(e,t,n)}.bind(this),300))))},_call:function(e,t,n){void 0!==this._events[t]&&(clearTimeout(this._events[t].timer),this._endEvent(t),n())},_clickAd:function(e,t,n){$B.xhr({method:"POST",origin:$B.location.href("/ad/event"),body:{auction_id:e,product_id:t||null},type:"json",timeout:500},this).end(function(){$B.is.Function(n)&&n()}).send()}},$B._dataLayer=new c;const l=function(e,t){if(!$B.is.Element(e))return!1;if(this._container=e,this._listName=t?$B.stringify(t):null,!this._listName){const e=$B.data(this._container,"product_list")?this._container:$B.query("[data-product_list]",this._container,!0);$B.is.Element(e)?this._listName=$B.data(e,"product_list",""):this._listName=""}this._initAddToCart(),this._initSetQty(),this._initProductClick(),this._initOther(),this._initImpression()};l.prototype={constructor:l,_container:null,_initAddToCart:function(){$B.on($B.query(".j-product-card__add-to-cart",this._container),"click",this._onAddToCart,this),$B.on($B.query(".j-product-card__add-to-cart_bulk",this._container),"click",this._onBulkAddToCart,this),$B.on($B.query(".j-prod__actions",this._container),"mouseenter",function(e){e.currentTarget.classList.add("j-active")},this),$B.on($B.query(".j-prod__actions",this._container),"mouseleave",function(e){e.currentTarget.classList.remove("j-active")},this),$B.on($B.query(".j-product-card__qty",this._container),"keydown",function(e){if("13"==(e.keyCode?e.keyCode:e.which))return this._onAddToCart.call(this,e),!0},this),$B.on($B.query(".j-product-card__qty",this._container),"focus",function(e){const t=e.currentTarget.parentNode;t.classList.contains("c-simple-selectbox")||t.classList.contains("j-singleProduct-card__qty")||t.classList.add("c-prod-results__actions--qty-active")},this),$B.on($B.query(".j-product-card__qty",this._container),"blur",function(e){const t=e.currentTarget.parentNode;t.classList.contains("c-simple-selectbox")||t.classList.contains("j-singleProduct-card__qty")||t.parentNode.classList.contains("j-active")||t.classList.remove("c-prod-results__actions--qty-active")},this)},_initSetQty:function(){$B.on($B.query(".j-product-card__qty--plus",this._container),"click",this._onPlusQty,this),$B.on($B.query(".j-product-card__qty--minus",this._container),"click",this._onMinusQty,this)},_initImpression:function(){if(!("IntersectionObserver"in window))return this;this._impressionData=[],this._pushProductsTimer=setTimeout(function(){},1e3),this._initProductsList()},_initOther:function(){try{new $B.widget.modal.outOfStock(this._container),new $B.widget.modal.overlayPictorial(this._container)}catch(e){}},_onAddToCart:function(e){if(e.target!==e.currentTarget)return;e.preventDefault();const t=$B.data(e.target,"id"),n=$B.data(e.target,"longDelivery"),i=$B.data(e.target,"uadWarning"),o="true"===$B.data(e.target,"uadMedical"),s="true"===$B.data(e.target,"noredirect");this.longDeliveryTimeModal=this.longDeliveryTimeModal||new $B.widget.modal.longDeliveryTime,this.uadWarningModal=this.uadWarningModal||new $B.widget.modal.uadWarning,"true"===n?this.longDeliveryTimeModal.open(function(){this._addToCart(t,s)}.bind(this)):"true"===i?this.uadWarningModal.open(t,o,function(){this._addToCart(t,s)}.bind(this)):this._addToCart(t,s)},_onBulkAddToCart:function(e){e.stopPropagation(),e.preventDefault();const t=($B.data(e.target,"id")||$B.data(e.currentTarget,"id")).split(","),n={};for(let e=0;e<t.length;e++)n[t[e]]=1;if(!$B._checkCookies())return!1;
1$B.xhr({method:"POST",origin:$B.location.href("/cart/bulk/"),body:{products:n},type:"json"},this).success(function(e){$B.location.redirect("success"===e.body.result?"/cart":"/")}).fail(function(e){$B.location.redirect("/")}).send()},_addToCart:function(e,t){let n=null,i=null;const o=t||!1;try{let t=$B.query('.j-product-info[data-id="'+e+'"]',this._container);$B.is.NodeList(t)&&(t=t[0]),n=JSON.parse(t.innerHTML);let o=$B.query('.j-product-card__qty[data-id="'+e+'"]',this._container);$B.is.NodeList(o)&&(o=o[0]),i=parseInt(o.value)}catch(e){}n&&i&&(n.list=n.list=n.list||this._listName||"",$B._dataLayer.addToCart(n,i,function(){this._addProductToCart(e,i,n.aucId||__DOD__.aucId||null,o)}.bind(this)))},_addProductToCart:function(e,t,n,i){let o=i||!1;if(void 0!==__DOD__.ctype&&"cart"!==__DOD__.ctype&&(o=!0),!$B._checkCookies())return!1;$B.xhr({method:"POST",origin:$B.location.href("/cart/"),body:{products_id:e,value:t,auctionId:n},type:"json"},this).success(function(n){if(!1===o)$B.location.redirect("success"===n.body.result?"/cart":"/");else{const n=$B.queryOnce('.j-product-card__add-to-cart[data-id="'+e+'"][data-noRedirect="true"]',this._container);$B.is.Element(n)&&(n.classList.remove("c-btn__button--blue"),n.classList.contains("c-btn__button--green")||n.classList.add("c-btn__button--green"),$B.screen.isMobile?(n.classList.contains("c-btn__button--added")||n.classList.add("c-btn__button--added"),n.innerHTML='<span class="c-btn__button-text">Al toegevoegd</span>'):n.innerHTML="Product al toegevoegd");const i=$B.query('.j-product-single-card[data-id="'+e+'"]'),o=$B.query('.j-product-list-card__add-to-cart[data-id="'+e+'"]');if($B.is.NodeList(i))$B.each(i,function(e){e&&(e.classList.add("c-btn__button--product-cart-circle"),e.children[1]&&(e.children[1].innerHTML="Toegevoegd!"))});else if($B.is.Element(i)&&i&&(i.classList.add("c-btn__button--product-cart-circle"),i.children[1])){i.children[1].innerHTML="Toegevoegd!";const e=i.getAttribute("name");i.blur(),i.setAttribute("aria-label",e),setTimeout(()=>{i.focus()},100)}if($B.is.NodeList(o))$B.each(o,function(e){e&&e.children[1]&&(e.children[1].innerHTML="Toegevoegd!",e.children[0].classList.add("dod-ficon-circle"))});else if($B.is.Element(o)&&o&&o.children[1]){o.children[1].innerHTML="Toegevoegd!",o.children[0].classList.add("dod-ficon-circle");const e=o.getAttribute("name");o.blur(),o.setAttribute("aria-label",e),setTimeout(()=>{o.focus()},100)}try{$B.xhr({origin:$B.location.href("/checkout/cart-top"),method:"GET",type:"json",query:["animation=1"]},this).success(function(e){let n=e.body;const s=$B.queryOnce("#j-topcart-total-quantity"),a=$B.queryOnce("#j-topcart-total-quantity-mobile");$B.is.Element(s)&&(s.classList.add("c-block-cart__basket--total-animation-on"),setTimeout(()=>{s.classList.remove("c-block-cart__basket--total-animation-on")},1e3)),$B.is.Element(a)&&(a.classList.add("c-account-icon__total-animation-on"),setTimeout(()=>{a.classList.remove("c-account-icon__total-animation-on")},1e3)),setTimeout(()=>{$B.query(".j-top-cart").innerHTML=n.topCart;const e=$B.queryOnce("#j-topcart-total-quantity-mobile");$B.is.Element(e)&&(e.innerHTML=n.totalQuantity);const s=$B.queryOnce(".j-block-redirect_to_cart");if($B.is.Element(s)&&("number"==typeof t&&t>1?($B.queryOnce("div > p",s).innerHTML="Producten zijn toegevoegd",$B.queryOnce("div",s).classList.add("c-addedabtesting--long")):$B.queryOnce("div > p",s).innerHTML="Product is toegevoegd",s.classList.remove("hide"),function(){let e=5e3,t=null,n=null,a=!1;function r(){t||(n=Date.now(),t=setTimeout(function(){s.classList.add("hide"),$B.is.NodeList(i)?$B.each(i,function(e){e&&(e.classList.remove("c-btn__button--product-cart-circle"),e.children[1]&&(e.children[1].innerHTML="In winkelwagen"))}):$B.is.Element(i)&&i&&(i.classList.remove("c-btn__button--product-cart-circle"),i.children[1]&&(i.children[1].innerHTML="In winkelwagen",i.setAttribute("aria-label","Toevoegen"))),$B.is.NodeList(o)?$B.each(o,function(e){e&&e.children[1]&&(e.children[1].innerHTML="Toevoegen",e.children[0].classList.remove("dod-ficon-circle"))}):$B.is.Element(o)&&o&&o.children[1]&&(o.children[1].innerHTML="Toevoegen",o.children[0].classList.remove("dod-ficon-circle"),o.setAttribute("aria-label","Toevoegen")),t=null},e))}$B.on(s,"mouseenter",function(){a=!0,function(){if(!t)return;const i=Date.now()-n;e-=i,clearTimeout(t),t=null}()},this),$B.on(s,"mouseleave",function(){a=!1,r()},this),r()}()),n.infoCart){let e=document.createElement("div");e.innerHTML=n.infoCart;const t=e.querySelector("script");
1if(t){$B.remove($B.query("#j-cart-info-tmp"));const e=document.createElement("script");e.id=t.id,e.textContent=t.textContent,document.head.appendChild(e)}e=null}const a=$B.queryOnce("#j-topcart-total-quantity");$B.is.Element(a)&&(a.style.cssText="width:0;height:0;font-size:0;padding-top:0;padding-bottom:0;",setTimeout(()=>{a.removeAttribute("style"),a.classList.add("c-block-cart__basket--total-animation-off"),setTimeout(()=>{a.classList.remove("c-block-cart__basket--total-animation-off")},1e3)},100)),$B.is.Element(e)&&(e.style.cssText="width:0;height:0;font-size:0;padding-top:0;padding-bottom:0;",setTimeout(()=>{e.removeAttribute("style"),e.classList.add("c-account-icon__total-animation-off"),setTimeout(()=>{e.classList.remove("c-account-icon__total-animation-off")},1e3)},100))},500)}).send()}catch(e){}}}).send()},_onPlusQty:function(e){e.currentTarget.previousElementSibling.focus();const t=e.currentTarget||null,n=$B.data(t,"id",null),i=$B.query('.j-product-card__qty[data-id="'+n+'"]',this._container);void 0!==this._timer&&clearTimeout(this._timer),this._timer=setTimeout(function(){const e=parseInt($B.data(i,"min",null)),t=parseInt(i.value);i.value=e+t}.bind(this),100)},_onMinusQty:function(e){if(e.currentTarget.nextElementSibling.focus(),e.target!==e.currentTarget)return;const t=e.currentTarget||null,n=$B.data(t,"id",null),i=$B.query('.j-product-card__qty[data-id="'+n+'"]',this._container);void 0!==this._timer&&clearTimeout(this._timer),this._timer=setTimeout(function(){const e=parseInt($B.data(i,"min",null)),t=parseInt(i.value);i.value=t>e?t-e:e}.bind(this),100)},_initProductClick:function(){$B.each($B.query(".j-product-card__link",this._container),function(e){$B.on(e,"click",function(e){return e.preventDefault(),e.stopPropagation(),this._productClick(e.currentTarget),!1},this),$B.on($B.query(".j-product-card__extralink",e),"click",function(t){return t.preventDefault(),t.stopPropagation(),this._productClick(e),!1},this)},this)},_productClick:function(e){const t=$B.data(e,"id");let n=null;try{n=JSON.parse($B.queryOnce('.j-product-info[data-id="'+t+'"]',this._container).innerHTML)}catch(e){}if(null!==n){const t=this._listName,i=$B.attr(e,"href")||$B.data(e,"href");$B._dataLayer.productClick(n,t,function(){const e=[t,n.id,n.position].join("/"),o=new Date;o.setTime(o.getTime()+864e5),document.cookie="a-product="+e+";expires="+o.toUTCString()+";path=/;secure",__DOD__.aucId?$B.location.goto(i+(i.includes("?")?"&":"?")+"_aucid="+__DOD__.aucId):$B.location.goto(i)})}},_initProductsList:function(){let e=0,t=0;const n=$B.screen.isMobile?2:$B.screen.isTablet?4:5,i=new IntersectionObserver(function(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(i.isIntersecting){t.unobserve(i.target);const e=$B.data(i.target,"seqStart");let n=$B.query('.j-product-card__link[data-seq="'+e+'"]',this._container);$B.is.Element(n)&&(n=[n]),n.length&&this._impressionData.push(n),clearTimeout(this._pushProductsTimer),this._pushProductsTimer=setTimeout(function(){this._processProductsList()}.bind(this),100)}}}.bind(this));$B.each($B.query(".j-product-card__link",this._container),function(i){!(e%n)&&(t++,$B.dataSet(i,"seqStart",t)),$B.dataSet(i,"seq",t),e++},this),$B.each($B.query(".j-product-card__link[data-seq-start]",this._container),function(e){i.observe(e)},this)},_processProductsList:function(){const e=this._impressionData.slice();this._impressionData=[];for(let t=0;t<e.length;t+=2){let n=[];n=n.concat(Array.prototype.slice.call(e[t])),e[t+1]&&(n=n.concat(Array.prototype.slice.call(e[t+1])));const i=[];for(let e=0;e<n.length;e++)if(n[e].offsetParent)try{const t=JSON.parse($B.query(".j-product-info",n[e].parentNode,!0).innerHTML);t.list=this._listName,i.push(t)}catch(e){}i.length&&$B._dataLayer.productsList(i)}}},$B._ecommerce=l;var d=function(){this._init()};d.prototype={constructor:d,_init:function(){$B.on($B.query(".j-block-cart"),"click",function(e){return e.preventDefault(),e.target.style="pointer-events: none;",$B.each($B.query(".j-btn-checkout"),function(e){e.style="pointer-events: none;"}),$B._dataLayer.beginCheckout(this._getItems(),this._getCoupon(),function(){$B.location.redirect($B.data(e.target,"href",$B.attr(e.target,"href")))}),!1},this,!0)},_getItems:function(){try{return JSON.parse($B.queryOnce("#j-cart-info").innerHTML)}catch(e){return{}}},_getCoupon:function(){var e=null,t=$B.query("#j-coupon-info");if($B.is.Element(t))try{e=JSON.parse(t.innerHTML)}catch(e){}return e}},$B.onReady("j-cart-info",function(){new d});class u{constructor(){this._init()}_init(){window.addEventListener("aiden-actions",this._onAidenAction.bind(this))}_onAidenAction(e){if(!e?.detail)return;if("aiden-add-to-cart"!==e.detail.actionId)return;e.detail.acknowledgeCallback?.();const t=e.detail.products??[];0!==t.length?this._addProductsToCart(t,e):this._handleFailure(e,"No products provided")}_addProductsToCart(e,t){if("undefined"==typeof $B||!$B._dataLayer?.addToCart||!$B._ecommerce)return void this._handleFailure(t,"Cart not available");let n=0;const i=new $B._ecommerce(document.body);e.forEach(o=>{const s=o.quantity??1,a={id:o.id,name:o.name??""};$B._dataLayer.addToCart(a,s,()=>{i._addProductToCart(o.id,s,o.aucId??__DOD__?.aucId??null,!0),n++,n===e.length&&t.detail?.successCallback?.()})})}_handleFailure(e){e?.detail?.failedCallback?.()}}!function(){const e=()=>new u;"undefined"!=typeof $B&&"function"==typeof $B.onReady?$B.onReady("j-general__start--other",e):"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}(),$B.onReady("cookie-warning",function(){new($B.Widget({cookieName:"cookie-warning",build:{render:function(){return $B.query("#cookie-warning")},init:function(){if("0"===this.getValue()||"2"===this.getValue())return $B.remove(this.element);$B.is.Undefined($B.cookie.get(this.cookieName))&&this.setValue("1"),this.element.classList.remove("hide--js"),$B.on($B.query(".cookie-warning__close",this.element),"click",this.onClose,this),$B.on($B.query(".cookie-warning__reject",this.element),"click",this.onReject,this)}},getValue:function(){var e={},t=new Date,n="-x-f-ccd-"+t.getDate()+(t.getMonth()<10?"0"+(t.getMonth()+1):t.getMonth()+1)+t.getFullYear();window.location.search.substring(1).split("&").forEach(function(t){e[t.split("=")[0]]=t.split("=")[1]});var i=e[n]||"";return"true"===i?"1":"false"===i?"0":$B.cookie.get(this.cookieName)},setValue:function(e){$B.cookie.set(this.cookieName,e),$B.cookie.set(this.cookieName,e,{domain:window.location.hostname}
1),window.dataLayer.push({commercialCookiesDisabled:"0"!==e})},onClose:function(){this.element.classList.add("hide--js"),this.setValue("0")},onReject:function(){this.element.classList.add("hide--js"),this.setValue("2")}}))}),$B.onReady("j-general__start--other",function(){new($B.Widget({build:{render:function(){return $B.query("#j-reclame-block")},init:function(){}}}))}),$B.widget=$B.widget||{},$B.widget.modal={};const h=new($B.Widget({build:{render:function(){var e=document.createElement("DIV");return e.innerHTML='<div id="j-modal-shadow" class="c-modal-custom"><div class="c-modal-custom__dialog j-modal-window"><div class="c-modal-custom__dialog-header"><p class="c-modal-custom__dialog-header-title j-modal-header"></p><p id="closeModalButton" tabindex="-1" class="c-modal-custom__dialog-header-close j-modal-close"><svg aria-labelledby="Druk op de knop Enter om het modale venster te sluiten" xmlns="http://www.w3.org/2000/svg" width="19" height="20" viewBox="0 0 19 20" fill="none">\n               <title>Druk op de knop "Enter" om het modale venster te sluiten</title>               <desc>Druk op de knop "Enter" om het modale venster te sluiten</desc>               <path fill-rule="evenodd" clip-rule="evenodd" d="M0.557517 1.05727C1.07822 0.536573 1.92244 0.536573 2.44313 1.05727L9.50033 8.11446L16.5575 1.05727C17.0782 0.536573 17.9224 0.536573 18.4431 1.05727C18.9638 1.57797 18.9638 2.42219 18.4431 2.94289L11.3859 10.0001L18.4431 17.0573C18.9638 17.578 18.9638 18.4222 18.4431 18.9429C17.9224 19.4636 17.0782 19.4636 16.5575 18.9429L9.50033 11.8857L2.44313 18.9429C1.92244 19.4636 1.07822 19.4636 0.557517 18.9429C0.0368174 18.4222 0.0368174 17.578 0.557517 17.0573L7.61471 10.0001L0.557517 2.94289C0.0368174 2.42219 0.0368174 1.57797 0.557517 1.05727Z" fill="#272727"/>\n            </svg></p></div><div class="c-modal-custom__dialog-body j-modal-body"></div><div class="c-modal-custom__dialog-footer j-modal-footer"></div></div></div>',e.firstChild},init:function(){Object.defineProperty(this,"dom",{value:{window:$B.queryOnce(".j-modal-window",this.element),header:$B.queryOnce(".j-modal-header",this.element),body:$B.queryOnce(".j-modal-body",this.element),footer:$B.queryOnce(".j-modal-footer",this.element),close:$B.queryOnce(".j-modal-close",this.element)},writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(this,"supportDefaultRightPosition",{value:86,writable:!1,enumerable:!1,configurable:!1}),$B.on(this.element,"click",this.onClickClose,this,{capture:!0}),document.addEventListener("keydown",function(e){"Escape"==(e.key||e.code||e.keyCode||e.which||0)&&setTimeout(function(){this.close.call(this)}.bind(this),300)}.bind(this)),$B.on(this.dom.close,"keydown",function(e){"Enter"==(e.key||e.code||e.keyCode||e.which||0)&&setTimeout(function(){this.close.call(this)}.bind(this),300)},this)}},open:function(e){if($B.queryOnce("#j-modal-shadow"))return!1;document.querySelectorAll("a, input, select, button, span.link, main, p.j-modal-open").forEach(function(e){0==e.getAttribute("tabindex")&&(e.dataset.tabindex=e.getAttribute("tabindex")),e.setAttribute("tabindex",-1)}),document.querySelectorAll(".c-modal-custom a, .c-modal-custom button, .c-modal-custom input, .c-modal-custom select, .c-modal-custom p.j-modal-close").forEach(function(e){e.setAttribute("tabindex","0")}),setTimeout(function(){this.dom.close.setAttribute("tabindex","0"),"uadWarning"==e?$B.queryOnce("#inWinkelwagenButton").focus():this.dom.close.focus()}.bind(this),300),this.dom.window.classList.add("c-modal-dialog--"+$B.screen.layout),this.dom.window.classList.add("c-modal-dialog--"+e),"uadWarning"!==e&&"quickOrder"!==e&&"confirmation"!==e&&"coupon"!==e||this.dom.window.classList.add("c-modal-custom__dialog--middle");var t=window.innerWidth-(document.body.getBoundingClientRect().left+document.body.getBoundingClientRect().right);if(this.cookieBlock=$B.queryOnce("#cookie-warning"),0!==t){$B.queryOnce("body").style.paddingRight=t+"px";var n=$B.queryOnce(".c-singleProduct__support");$B.is.Element(n)&&(n.style.right=86+t+"px"),$B.is.Element(this.cookieBlock)&&(this.cookieBlock.style.width="calc(100% - "+t+"px)")}document.body.classList.add("overflowHidden"),document.body.appendChild(this.element),setTimeout(function(){$B.queryOnce("#j-modal-shadow").classList.add("c-modal-custom--animation")}.bind(this),10)},close:function(){document.body.classList.remove("overflowHidden"),$B.queryOnce("body").style.paddingRight="";var e=$B.queryOnce(".c-singleProduct__support");document.querySelectorAll("a, input, select, button, span.link, main, p.j-modal-open, label").forEach(function(e){parseInt(e.dataset.tabindex)||0==e.dataset.tabindex||"-1"==e.dataset.tabindex?e.setAttribute("tabindex",e.dataset.tabindex):e.setAttribute("tabindex","0")}),document.querySelectorAll(".c-modal-custom a, .c-modal-custom button, .c-modal-custom input, .c-modal-custom select, .c-modal-custom p.j-modal-close").forEach(function(e){e.setAttribute("tabindex","-1")}),setTimeout(function(){$B.queryOnce(".j-modal-close")&&$B.queryOnce(".j-modal-close").blur()}.bind(this),1500),$B.is.Element(e)&&(e.style.right=this.supportDefaultRightPosition+"px"),$B.is.Element(this.cookieBlock)&&(this.cookieBlock.style.width=""),$B.remove(this.element),this.dom.header.innerHTML="",this.dom.body.innerHTML="",this.dom.footer.innerHTML="",this.dom.window.className="
1c-modal-custom__dialog j-modal-window"},onClickClose:function(e){if(e.target==this.element||e.target==this.dom.close)return e.stopPropagation(),$B.queryOnce("#j-modal-shadow").classList.remove("c-modal-custom--animation"),setTimeout(function(){this.close.call(this)}.bind(this),300),!1},setLabel:function(e){this.dom.window.className="c-modal-custom__dialog j-modal-window",this.dom.window.classList.add("c-modal-dialog--"+$B.screen.layout),this.dom.window.classList.add("c-modal-dialog--"+e)}}));$B.widget.modal.abstract=$B.Widget({label:"abstract",build:{render:function(){return h.element},init:function(){Object.defineProperty(this,"header",{value:h.dom.header,writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(this,"body",{value:h.dom.body,writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(this,"footer",{value:h.dom.footer,writable:!1,enumerable:!1,configurable:!1}),this.init()}},init:function(){throw new $B.exceptions.NotImplementedMethod("widgets.Modal.init")},open:function(){h.open(this.label)},close:function(){h.close()},setLabel:function(){h.setLabel(this.label)}}),$B.widget.dialog=$B.widget.dialog||{},$B.widget.dialog.confirmation=new($B.Widget({label:"confirmation",init:function(){},open:function(e,t,n,i){this.element.querySelector(".j-modal-window").classList.add("c-dialog");const{cancel:o="Annuleren",confirm:s="Bevestigen"}=i||{};this.body.innerHTML=`<p class="c-modal-custom__dialog-description">${e}</p>`,this.footer.innerHTML=`<button class="c-btn__button c-btn__button--black-border j-confirm-cancel" type="button">${o}</button><button class="c-btn__button c-btn__button--black j-confirm-ok" type="button">${s}</button>`,$B.on(this.footer.querySelector(".j-confirm-cancel"),"click",function(){this.close(),$B.is.Function(n)&&n()},this),$B.on(this.footer.querySelector(".j-confirm-ok"),"click",function(){this.close(),t()},this),this.element.classList.remove("c-modal-custom--animation"),this.parent.open.apply(this)}},$B.widget.modal.abstract)),$B.widget.dialog=$B.widget.dialog||{},$B.widget.dialog.alert=new($B.Widget({label:"alert",init:function(){},open:function(e,t,n){this.element.querySelector(".j-modal-window").classList.add("c-dialog");const{ok:i="OK"}=n||{};this.body.innerHTML=`<p class="c-modal-custom__dialog-description">${e}</p>`,this.footer.innerHTML=`<button class="c-btn__button c-btn__button--green j-alert-ok" type="button">${i}</button>`,$B.on(this.footer.querySelector(".j-alert-ok"),"click",function(){this.close(),$B.is.Function(t)&&t()},this),this.element.classList.remove("c-modal-custom--animation"),this.parent.open.apply(this)}},$B.widget.modal.abstract)),$B.widget=$B.widget||{};var m=function(e){var t=$B.data(e,"value");e.setAttribute("value",t),e.value=t},_=$B.Widget({constructor:function(e){this._container=e,$B.Widget.constructor.apply(this)},build:{render:function(){return this._container},init:function(){delete this._container;var e=this.element.closest("form");if(!$B.is.Element(e))return!1;if(this._dom={input:$B.queryOnce(".j-cpt--n",this.element),secret:$B.queryOnce(".j-cpt--s",this.element)},!$B.is.Element(this._dom.input)||!$B.is.Element(this._dom.secret))return!1;var t=function(){if(!this._recaptchaReadyTriggered){this._recaptchaReadyTriggered=!0;var e=this._dom.input,t=setTimeout(function(){m(e)},6e3);!function(e){if("undefined"==typeof grecaptcha){var t="___grecaptcha_cfg";if(window[t]=window[t]||{},(window[t].fns=window[t].fns||[]).push(e),!document.getElementById("j-grecaptcha-script")){var n=document.createElement("script");n.setAttribute("id","j-grecaptcha-script"),n.async=!0,n.defer=!0,n.src="https://www.google.com/recaptcha/api.js",document.body.appendChild(n)}}else e()}(function(){clearTimeout(t),this._initRecaptcha()}.bind(this))}}.bind(this);$B.on(e,"click",t),$B.on(e,"focusin",t)}},_initRecaptcha:function(){try{this._captchaValue=$B.data(this._dom.input,"value"),this._gReCaptchaId=grecaptcha.render(this._dom.secret,{sitekey:$B.data(this._dom.secret,"sitekey"),callback:function(){this._dom.input.setAttribute("value",this._captchaValue),this._dom.input.value=this._captchaValue,$B.emit(this._dom.input,"click"),$B.emit
1(this._dom.input,"blur")}.bind(this)}),$B.on(this._dom.input,"b-reset",function(){this._captchaValue=$B.data(this._dom.input,"value"),grecaptcha.reset(this._gReCaptchaId)}.bind(this))}catch(e){m(this._dom.input)}}});$B.widget.grecaptcha=function(){$B.each($B.query(".j-cpt__g"),function(e){new _(e)})},$B._autoComplete=($B.normalizeEanForSearch=function(e){var t=(e||"").trim();return t.length<9||t.length>12?e:/^\d+$/.test(t)?("0000000000000"+t).slice(-13):e},function(e){if(document.querySelector){var t={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",outerWidth:"",appendTo:null,renderItem:function(e,t){t=(t||"").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");const n=new RegExp("("+t.split(" ").join("|")+")","gi");if($B.is.String(e)){if(e.includes("autocomplete-suggestion"))return e;{const t=e.replace(n,"<b>$1</b>");return'<div class="autocomplete-suggestion" data-type="text" data-val="'+e+'"><div class="c-search-suggestion__link c-search-suggestion__link--oneline"><div class="c-search-suggestion__content-title"><div>'+t+"</div></div></div></div>"}}},onSelect:function(e,t,n){}};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);for(var i="object"==typeof t.selector?[t.selector]:document.querySelectorAll(t.selector),o=0;o<i.length;o++){var s=i[o];s.sc=document.createElement("div"),s.sc.className="autocomplete-suggestions "+t.menuClass,s.sc.setAttribute("aria-live","assertive"),s.autocompleteAttr=s.getAttribute("autocomplete"),s.setAttribute("autocomplete","off"),s.cache={},s.last_val="",s.appendToEl=null,t.appendTo&&("function"==typeof t.appendTo?s.appendToEl=t.appendTo(s):s.appendToEl="string"==typeof t.appendTo?document.querySelector(t.appendTo):t.appendTo,s.appendToEl&&"static"===(window.getComputedStyle?getComputedStyle(s.appendToEl,null):s.appendToEl.currentStyle).position&&(s.appendToEl.style.position="relative")),s.updateSC=function(e,n){var i=s.appendToEl;if(e||!s._positionValid){var o=s.getBoundingClientRect();if(s._viewportBottom=o.bottom,s._scMaxHeightOffset=Math.round(o.bottom+10),i){var a=i.getBoundingClientRect();s._scLeft=Math.round(o.left-a.left+t.offsetLeft),s._scTop=Math.round(o.bottom-a.top+t.offsetTop)}else s._scLeft=Math.round(o.left+(window.pageXOffset||document.documentElement.scrollLeft)+t.offsetLeft),s._scTop=Math.round(o.bottom+(window.pageYOffset||document.documentElement.scrollTop)+t.offsetTop);s._scWidth=t.outerWidth?t.outerWidth:Math.round(o.right-o.left),s._positionValid=!0}if(s.sc.style.left=s._scLeft+"px",s.sc.style.top=s._scTop+"px",s.sc.style.width=s._scWidth+"px",s.sc.style.maxHeight="calc(100vh - "+s._scMaxHeightOffset+"px)",!e){if(s.sc.style.display="block",!s.sc.suggestionHeight){var r=s.sc.querySelector(".autocomplete-suggestion");r&&(s.sc.suggestionHeight=r.offsetHeight)}if(s.sc.suggestionHeight){var c=window.innerHeight-s._scMaxHeightOffset;if(n){var l=s.sc.scrollTop,d=n.offsetTop;d+s.sc.suggestionHeight-c>l?s.sc.scrollTop=d+s.sc.suggestionHeight-c:d<l&&(s.sc.scrollTop=d)}else s.sc.scrollTop=0}}},"undefined"!=typeof ResizeObserver?(s._ro=new ResizeObserver(function(){s._positionValid=!1,s.updateSC(!0)}),s._ro.observe(s)):c(window,"resize",s.updateSC),s.appendToEl||(s._scrollHandler=function(){"none"!==s.sc.style.display&&(s.sc.style.top=Math.round(s._viewportBottom+(window.pageYOffset||document.documentElement.scrollTop)+t.offsetTop)+"px")},window.addEventListener("scroll",s._scrollHandler,{passive:!0})),(s.appendToEl||document.body).appendChild(s.sc),d("autocomplete-suggestion","mouseleave",function(e){var t=s.sc.querySelector(".autocomplete-suggestion.selected");t&&setTimeout(function(){t.className=t.className.replace("selected","")},20)},s.sc),d("autocomplete-suggestion","mouseover",function(e){var t=s.sc.querySelector(".autocomplete-suggestion.selected");t&&(t.className=t.className.replace("selected","")),this.className+=" selected"},s.sc),d("autocomplete-suggestion","mousedown",function(e){if(r(this,"autocomplete-suggestion")){var n=this.getAttribute("data-type"),i=this.getAttribute("data-val")||"";if("text"===n)return s.value=i,t.onSelect(e,i,this),void(s.sc.style.display="none");var o=this.getAttribute("data-url");t.onSelect(e,i,this),s.sc.style.display="none",o&&(e.preventDefault(),window.location.href=o)}},s.sc),s.blurHandler=function(e){if(s._skipBlurOnce)s._skipBlurOnce=!1;else if(13==(window.event?e.keyCode:e.which)||"blur"==e.type){try{var t=document.querySelector(".autocomplete-suggestions:hover")}catch(e){t=0}t?s!==document.activeElement&&setTimeout(function(){s.focus()},20):(s.last_val=s.value,s.sc.style.display="none",setTimeout(function(){s.sc.style.display="none"},350))}},c(s,"blur",s.blurHandler),c(s,"keyup",s.blurHandler);var a=function(e,n){var i=void 0!==n?n:s.value;if(s.cache[i]=e,e.length&&i.length>=t.minChars){for(var o="",a=0;a<e.length;a++)o+=t.renderItem(e[a],i);s.sc.innerHTML=o,"none"===s.sc.style.display&&(s._positionValid=!1),s.updateSC(0)}else s.sc.style.display="none"};s.keydownHandler=function(e){var n=window.event?e.keyCode:e.which;if((40==n||38==n)&&s.sc.innerHTML){var i=s.sc.querySelectorAll(".autocomplete-suggestion");if(!i.length)return!1;var o=-1;if(c=s.sc.querySelector(".autocomplete-suggestion.selected"))for(var a=0;a<i.length;a++)if(i[a]===c){o=a;break}if(-1===o?o=40==n?0:i.length-1:o+=40==n?1:-1,o<0||o>=i.length)return c&&c.classList.remove("selected"),s.value=s.last_val,s.updateSC(0,0),!1;c&&c.classList.remove("selected");var r=i[o];return r.classList.add("selected"),s.value=r.getAttribute("data-val"),s.updateSC(0,r),!1}if(27==n)s.value=s.last_val,s.sc.style.display="none";else if(13==n||9==n){var c;if((c=s.sc.querySelector(".autocomplete-suggestion.selected"))&&"none"!=s.sc.style.display){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,e.returnValue=!1,s._skipBlurOnce=!0;var l=c.querySelector("a[href]");if(l){s.sc.style.display="none";var d=l.getAttribute("href");return l.getAttribute("target"),window.location.assign(d),!1}var u=c.getAttribute("data-val")||"";return s.value=u,t.onSelect(e,u,c),s.sc.style.display="none",!1}}},c(s,"keydown",s.keydownHandler),s.keyupHandler=function(e){var n=window.event?e.keyCode:e.which;if(!n||(n<35||n>40)&&13!=n&&27!=n){var i=(s.value||"").trim();if(i.length>=t.minChars){if(i!=s.last_val){if(s.last_val=i,clearTimeout(s.timer),t.cache){if(i in s.cache)return void a(s.cache[i]);for(var o=1;o<i.length-t.minChars;o++){var r=i.slice(0,i.length-o);if(r in s.cache&&!s.cache[r].length)return void a([])}}s.timer=setTimeout(function(){t.source(i,function(e){a(e,i)})},t.delay)}}else s.last_val=i,s.sc.style.display="none"}},c(s,"keyup",s.keyupHandler),s.focusHandler=function(e){s.last_val="\n",s.keyupHandler(e)},t.minChars||c(s,"focus",s.focusHandler);break}this.destroy=function(){for(var e=0;e<i.length;e++){var t=i[e];t._ro?t._ro.disconnect():l(window,"resize",t.updateSC),t._scrollHandler&&window.removeEventListener("scroll",t._scrollHandler),l(t,"blur",t.blurHandler),l(t,"keyup",t.blurHandler),l(t,"focus",t.focusHandler),l(t,"keydown",t.keydownHandler),l(t,"keyup",t.keyupHandler),t.autocompleteAttr?t.setAttribute("autocomplete",t.autocompleteAttr):t.removeAttribute("autocomplete"),t.sc.parentNode&&t.sc.parentNode.removeChild(t.sc),t=null}}}function r(e,t){return e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className)}
1function c(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)}function l(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener(t,n)}function d(e,t,n,i){c(i||document,t,function(t){for(var i,o=t.target||t.srcElement;o&&!(i=r(o,e));)o=o.parentElement;i&&n.call(o,t)})}});var p=function(){this.init()};p.prototype={constructor:p,init:function(){$B.screen.isMobile&&this._initSearchInput(),this._initSearchReset(),$B.queryOnce("#input-mainsearch"),$B.on($B.queryOnce("#form-mainsearch"),"submit",this.onSearchFormSubmit,this)},_initSearchInput:function(){var e=$B.queryOnce("#form-mainsearch #input-mainsearch");$B.on(e,"focus",this._onSearchInputFocus,this),$B.on(e,"blur",this._onSearchInputBlur,this)},onSearchFormSubmit:function(e){var t=$B.queryOnce("#input-mainsearch");if(""==$B.value(t).trim())return e.preventDefault(),e.stopPropagation(),t.classList.add("c-main-search__warning_empty"),setTimeout(function(){t.classList.remove("c-main-search__warning_empty")},500),!1;if($B.normalizeEanForSearch){var n=$B.normalizeEanForSearch($B.value(t));n!==$B.value(t)&&(t.setAttribute("value",n),t.value=n)}},_onSearchInputFocus:function(e){$B.queryOnce("#input-mainsearch").classList.add("input-mainsearch--active")},_onSearchInputBlur:function(e){$B.queryOnce("#input-mainsearch").classList.remove("input-mainsearch--active")},_initSearchReset:function(){var e=$B.queryOnce("#form-mainsearch"),t=$B.queryOnce("#input-mainsearch"),n=$B.queryOnce("#btn-resetinput"),i=function(){$B.is.Element(n)&&n.classList.remove("block-search-reset--hidden")},o=function(){$B.is.Element(n)&&n.classList.add("block-search-reset--hidden")};0==$B.value(t).length&&o(),$B.on(t,"mouseenter",function(e){$B.value(t)&&i()}),$B.on(t,"mouseleave",function(){document.activeElement!==t&&n.parentElement.querySelector(":hover")!==n&&o()}),$B.on(e,"keyup",function(){$B.value(t)?i():o()}),$B.on(t,"focus",function(){$B.value(t)?i():o()}),$B.on(t,"blur",function(){n.parentElement.querySelector(":hover")!==n&&o()}),$B.on(n,"click",function(){t.setAttribute("value",""),t.focus(),o()})}},$B.onReady("j-general__start--header2",function(){new p,new $B._autoComplete({selector:"#input-mainsearch",minChars:3,menuClass:"main-search",appendTo:"#search-main",source:function(e,t){var n;n=$B.normalizeEanForSearch?$B.normalizeEanForSearch(e):e,$B.xhr({origin:"/search/autocomplete/",type:"json",method:"GET",cacheBust:!1,query:["q="+encodeURIComponent(n)]}).success(function(e){t(e.body)}).send()},onSelect:function(e,t,n){var i=$B.queryOnce("#input-mainsearch").closest("form");"search"===__DOD__.ctype?i.dispatchEvent(new Event("submit")):i.submit()}})}),$B.onReady("j-general__start--internal-search",function(){var e='form[name="quick_find3"] input[name="ckeywords"]',t=$B.queryOnce(e),n=$B.queryOnce('form[name="quick_find3"]');$B.is.Element(n)&&$B.is.Element(t)&&new $B._autoComplete({selector:e,minChars:3,menuClass:"internal-search",appendTo:".j-advanced-search--form",source:function(e,n){var i;i=e,$B.xhr({origin:"/internal-search/autocomplete/",type:"json",method:"GET",cacheBust:!1,query:["q="+i,"type="+__DOD__.ctype,"typeId="+$B.data(t,"typeid","")]}).success(function(e){n(e.body)}).send()},onSelect:function(e,t,i){n.dispatchEvent(new Event("submit"))}})}),$B._mobileExtraSearch=function(){var e='#j-filters-mobile input[name="ckeywords"]',t=$B.queryOnce(e);if($B.is.Element(t)){var n=t.closest("form");new $B._autoComplete({selector:e,minChars:3,menuClass:"mibile-internal-search",appendTo:".j-filters-mobile__content",source:function(e,n){var i;i=e,$B.xhr({origin:"/internal-search/autocomplete/",type:"json",method:"GET",cacheBust:!1,query:["q="+i,"type="+__DOD__.ctype,"typeId="+$B.data(t,"typeid","")]}).success(function(e){n(e.body)}).send()},onSelect:function(e,t,i){n.submit()}})}};var f=function(){this.cookieName="is-mobile-menu-opened",this.cookieNameAdditional="is-additional-opened",this.init()};f.prototype={constructor:f,init:function(){this._initOpenMenu(),this._initCloseMenu()},_initOpenMenu:function(){var e=$B.queryOnce("#showMenu");$B.on(e,"click",this._onChangeMenu,this);var t=$B.queryOnce("#showAdditionalMenu");$B.queryOnce("#hideAdditionalMenu"),$B.on(t,"click",this._showNewAddMenu,this)},_initCloseMenu:function(){var e=$B.queryOnce("#c-close__btn"),t=$B.queryOnce("#c-close__link"),n=$B.queryOnce("#mainNavMobile");$B.on(e,"click",this._onChangeMenu,this),$B.on(t,"click",this._onChangeMenu,this),$B.on(n,"click",this._onShadowClick,this),$B.on($B.query(".j-nav-last"),"click",this._onLastItemClick,this)},_onChangeMenu:function(e){var t="showMenu"===(e.currentTarget.id||""),n=$B.query("body").classList;$B.queryOnce("#mainNavMobile").classList.toggle("closed"),$B.queryOnce("#shadow").classList.add("closed"),!0===t?(n.add("overflowHidden"),n.remove("overflowVisible"),$B.queryOnce("#mainNavMobile").classList.add("scrollIs")):(n.remove("overflowHidden"),n.add("overflowVisible"),$B.queryOnce("#mainNavMobile").classList.remove("scrollIs")),$B.cookie.set(this.cookieName,t)},_showNewAddMenu:function(e){$B.queryOnce("#secondPartMenuMobile").classList.contains("active")?($B.queryOnce("#secondPartMenuMobile").classList.remove("active"),document.getElementById("showAdditionalMenuText").innerHTML="Meer categorieën"):($B.queryOnce("#secondPartMenuMobile").classList.add("active"),document.getElementById("showAdditionalMenuText").innerHTML="Toon minder")},_showAddMenu:function(e){$B.queryOnce("#mainPartMenuMobile").classList.remove("active"),$B.queryOnce("#secondPartMenuMobile").classList.add("active"),$B.queryOnce("#showAdditionalMenu").style.display="none",$B.queryOnce("#hideAdditionalMenu").style.display="block",$B.cookie.set(this.cookieNameAdditional,!0),document.getElementById("titlemenu").innerHTML="Meer categorieën",$B.queryOnce("#mainNavMobile").scrollTop=0},_hideAddMenu:function(e){$B.queryOnce("#mainPartMenuMobile").classList.add("active"),$B.queryOnce("#secondPartMenuMobile").classList.remove("active"),$B.queryOnce("#showAdditionalMenu").style.display="block",$B.queryOnce("#hideAdditionalMenu").style.display="none",$B.cookie.set(this.cookieNameAdditional,!1),document.getElementById("titlemenu").innerHTML="Categorieën",$B.queryOnce("#mainNavMobile").scrollTop=0},_onShadowClick:function(e){e.target==$B.queryOnce("#mainNavMobile")&&$B.emit
1($B.queryOnce("#c-close__btn"),"click")},_onLastItemClick:function(e){$B.cookie.set(this.cookieName,!1)}},$B.onReady("j-general__start--other",function(){new f});var y,g=function(){this.init()};g.prototype={constructor:g,init:function(){$B.on($B.query("#dLabel"),"click",this._onClickMenu,this),$B.on($B.query(".c-account-icon-mobile__line"),"click",this._onClickMenuClose,this),$B.on($B.query("#shadow"),"click",this._onClickMenuClose,this)},_onClickMenu:function(e){var t=e.currentTarget;return $B.screen.isMobile?($B.query(".c-account-icon-mobile").classList.remove("c-account-icon-mobile--close"),$B.query("#shadow").classList.remove("closed"),$B.query("body").classList.add("overflowHidden")):(t.parentNode.classList.toggle("open"),t.classList.toggle("c-account-icon__button--active")),e.preventDefault(),!1},_onClickMenuClose:function(e){return $B.screen.isMobile&&($B.is.Element($B.query(".c-account-icon-mobile"))&&$B.query(".c-account-icon-mobile").classList.add("c-account-icon-mobile--close"),$B.query("#shadow").classList.add("closed"),$B.query("body").classList.remove("overflowHidden")),e.preventDefault(),!1}},$B.onReady("j-general__start--header2",function(){new g}),$B._asyncSlider=((y=function(e,t,n,i){if(this._slider=e,this._slider&&this._slider.nodeType===Node.ELEMENT_NODE||(this._slider=document.getElementById(this._slider)),!this._slider||this._slider.nodeType!==Node.ELEMENT_NODE)return!1;this.offsetByWidth=n||0,this._wrap=!1!==i,this._threshold=100,this._transitionEndCallback=t,this.init()}).prototype={constructor:y,init:function(){var e;this._prev=this._slider.querySelector(".j-prev"),this._next=this._slider.querySelector(".j-next"),this._content=this._slider.querySelector(".j-beryl__async-slider--content"),this._items=this._slider.querySelector(".j-beryl__async-slider--slides"),this._slides=this._items.querySelectorAll(".j-beryl__async-slider--slide"),this._slidesCount=this._slides.length||0,this._slideSize=0,this._posX1=0,this._posX2=0,this._index=0,this._allowSliding=!0,this._width=window.innerWidth,this._startTranslate=0,this._currentTranslate=0,window.addEventListener("orientationchange",function(){clearTimeout(e),e=setTimeout(this.recalc.bind(this),150)}.bind(this)),window.addEventListener("resize",function(){clearTimeout(e),e=setTimeout(this.preRecalc.bind(this),150)}.bind(this)),window.addEventListener("load",function(){this.recalc()}.bind(this)),this._items.addEventListener("mousedown",this._dragStart.bind(this)),this._items.addEventListener("touchstart",this._dragStart.bind(this),{passive:!0}),this._items.addEventListener("touchend",this._dragEnd.bind(this),{passive:!0}),this._items.addEventListener("touchmove",this._dragAction.bind(this),{passive:!0}),void 0!==this._prev&&null!=this._prev&&this._prev.addEventListener("click",function(){this.slide(-1)}.bind(this)),void 0!==this._next&&null!=this._next&&this._next.addEventListener("click",function(){this.slide(1)}.bind(this)),this._items.addEventListener("transitionend",this._transitionEnd.bind(this)),this._items.addEventListener("transitioncancel",this._transitionEnd.bind(this)),this._content.classList.add("loaded"),this.recalc()},slide:function(e){if(!this._allowSliding||!this._slidesCount||!this._slideSize)return;if(!this._wrap&&(this._index+e<0||this._index+e>=this._slidesCount))return;this._items.classList.add("shifting");const t=this._index;if(this._index=(this._index+e+this._slidesCount)%this._slidesCount,t!==this._index){const e=this._index*this._slideSize;this._items.style.transform=`translateX(${-e}px)`,this._startTranslate=-e,this._allowSliding=!1,clearTimeout(this._transitionFallbackTimer),this._transitionFallbackTimer=setTimeout(this._transitionEnd.bind(this),300)}},reIndex:function(e){this._items=this._slider.querySelector(".j-beryl__async-slider--slides"),this._slides=this._items.querySelectorAll(".j-beryl__async-slider--slide"),this._slidesCount=this._slides.length||0,this._slideSize=this._slidesCount?(void 0!==e?e:this._slides[0].offsetWidth)-this.offsetByWidth:0;for(var t=0;t<this._slides.length;t++)this._slides[t].style.width=this._slideSize+"px",this._slides[t].style.cssFloat="left";this._content.style.width=this._slidesCount*this._slideSize+"px"},recalc:function(){this._allowSliding=!1,this._content.style.width="auto";for(var e=0;e<this._slides.length;e++)this._slides[e].style.width="auto",this._slides[e].style.cssFloat="none";var t=this._slides[0]?this._slides[0].offsetWidth:this._slider.offsetWidth;this.reIndex(t),this._items.style.transform="translateX("+-this._index*this._slideSize+"px)",this._allowSliding=!0},preRecalc:function(){this._width!=window.innerWidth&&(this.recalc(),this._width=window.innerWidth)},_transitionEnd:function(){clearTimeout(this._transitionFallbackTimer),this._items.classList.remove("shifting"),this._index<0&&(this._index=0),this._index>=this._slidesCount-1&&(this._index=this._slidesCount-1),this._allowSliding=!0,"function"==typeof this._transitionEndCallback&&this._transitionEndCallback.call(this)},_dragStart:function(e){if(!this._allowSliding)return;const t=window.getComputedStyle(this._items),n=new WebKitCSSMatrix(t.transform);this._startTranslate=this._currentTranslate=n.m41,"touchstart"==e.type?this._posX1=e.touches[0].clientX:(this._posX1=e.clientX,document.onmouseup=this._dragEnd.bind(this),document.onmousemove=this._dragAction.bind(this))},_dragEnd:function(e){if(!this._allowSliding)return;const t=this._currentTranslate-this._startTranslate;if(Math.abs(t)/this._slideSize>.15){const e=t<0?1:-1,n=1===e?this._index>=this._slidesCount-1:this._index<=0;this._wrap&&n&&(this._index=1===e?-1:this._slidesCount),!this._wrap&&n?this._items.style.transform=`translateX(${this._startTranslate}px)`:this.slide(e)}else this._items.style.transform=`translateX(${this._startTranslate}px)`;document.onmouseup=null,document.onmousemove=null},_dragAction:function(e){this._allowSliding&&("touchmove"===e.type?(this._posX2=this._posX1-e.touches[0].clientX,this._posX1=e.touches[0].clientX):(this._posX2=this._posX1-e.clientX,this._posX1=e.clientX),this._currentTranslate-=this._posX2,this._items.style.transform=`translateX(${this._currentTranslate}px)`)}},y),$B.onReady("j-general__start--other",function(){document.addEventListener("click",function(e){if(!e.target.closest(".
1j-message-dismiss"))return;const t=e.target.closest(".c-content__message-item");t.classList.add("c-content__message-item--dismissing"),setTimeout(function(){t.style.height=t.offsetHeight+"px",requestAnimationFrame(function(){t.style.transition="height .25s ease, margin .25s ease, padding .25s ease",t.style.height="0",t.style.marginBottom="0",t.style.paddingTop="0",t.style.paddingBottom="0",setTimeout(function(){t.remove()},260)})},260)}),new $B.widget.grecaptcha,$B.each(document.querySelectorAll('[image_limit="true"]'),function(e){"DIV"==e.parentNode.tagName?e.parentNode.classList.add("l-switchinfo-images--hidden"):e.parentNode.parentNode.classList.add("l-switchinfo-images--hidden")}),$B.on($B.query(".c-custom-layout a-trg"),"click",function(e){e.preventDefault(),e.stopPropagation();var t="#"+$B.attr(e.currentTarget,"id"),n=$B.queryOnce('section.c-custom-layout a[href="'+t+'"]');if($B.is.Element(n)&&$B.is.Element(e.currentTarget)){n.closest("section").scrollIntoView({behavior:"smooth"});var i=$B.queryOnce(".c-accordion-switch__title--active",e.currentTarget.closest("li.j-accordion-li"));$B.is.Element(i)&&$B.is.Element(e.currentTarget.closest("li.j-accordion-li"))&&$B.emit(i,"click")}return!1});var e=$B.query(".j-youtube_video");if(!$B.is.Empty(e)&&($B.is.Element(e)||$B.is.NodeList(e))){var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",t.async=!0,document.body.appendChild(t)}$B.on(e,"click",function(e){var t=e.target.parentElement,n=t.getAttribute("data-video_id"),i="p"+n+Math.round(1e3*Math.random());t.innerHTML='<div id="'+i+'"></div>',new YT.Player(i,{videoId:n,events:{onReady:function(e){e.target.playVideo()}}})}),$B.on($B.queryOnce(".j-close-message"),"click",function(){$B.query(".j-content__message-section--warning-close").remove(),$B.cookie.set("warning_message",0,{domain:"."+window.location.hostname})}),document.getElementById("skipLink")&&document.getElementById("skipLink").addEventListener("keydown",function(e){const t=e.key||e.code||e.keyCode||e.which||0,n=document.getElementById("maincontent").firstChild.firstChild;"Enter"===t&&(e.preventDefault(),n.setAttribute("tabindex",0),setTimeout(function(){n.focus()},300))}),$B.each($B.query("#j-custom-layout-bottom img"),function(e){e.setAttribute("loading","lazy")}),document.getElementById("movemodulewrapper")&&$B.queryOnce("#custom-layout-bottom .c-custom-layout__widetext--heading")&&document.getElementById("movemodulewrapper").appendChild($B.queryOnce("#custom-layout-bottom .c-custom-layout__widetext--heading")),$B.on($B.query(".c-custom-layout__lees-meer"),"click",function(e){var t="mobile"===__DOD__.client?-140:-214,n=$B.query("body").classList.contains("noStickyHeader")?0:t,i=$B.query("#j-custom-layout-bottom").getBoundingClientRect().top+window.scrollY+n;window.scrollTo({top:i,behavior:"smooth"})},this),$B.on($B.query(".c-custom-layout__lees-meer"),"keydown",function(e){if("Enter"===(e.key||e.code||e.keyCode||e.which||0)){var t="mobile"===__DOD__.client?-140:-214,n=$B.query("body").classList.contains("noStickyHeader")?0:t,i=$B.query("#j-custom-layout-bottom").getBoundingClientRect().top+window.scrollY+n;window.scrollTo({top:i,behavior:"smooth"});var o=$B.query("#j-custom-layout-bottom");o&&setTimeout(function(){o.focus()},500)}},this),function(){const e=$B.query(".j-header-logo-img"),t=$B.query(".j-custom-context-menu"),n=$B.query(".j-custom-context-menu .j-download-svg"),i=$B.query(".j-custom-context-menu .j-download-png");if($B.is.Element(e)){e.addEventListener("contextmenu",e=>{e.preventDefault(),t.style.display="block",t.style.left=`${e.pageX}px`,t.style.top=`${e.pageY}px`}),document.addEventListener("click",e=>{t.contains(e.target)||(t.style.display="none")});const o=e=>{const n=e.getAttribute("data-src"),i=n.split("/").pop();fetch(n).then(e=>e.blob()).then(e=>{const t=document.createElement("a");t.href=URL.createObjectURL(e),t.download=i,t.click(),URL.revokeObjectURL(t.href)}).catch(e=>{}),t.style.display="none"};n.addEventListener("click",()=>o(n)),i.addEventListener("click",()=>o(i))}}()}),$B.onReady("footer-all-blocks",function(){!function(){if("true"!==localStorage.getItem("androidAppInstallBannerDismissed")&&/Android/i.test(navigator.userAgent)){const e=$B.queryOnce("#j-app-install-banner");if(!$B.is.Element(e))return!1;$B.queryOnce("body").classList.add("showdownloadappandroid"),e.style.display="block",$B.on($B.queryOnce("#j-install-app"),"click",function(e){localStorage.setItem("androidAppInstallBannerDismissed","true"),window.location.href="https://play.google.com/store/apps/details?id=com.developer.deonlinedrogist&pli=1"},this),$B.on($B.queryOnce("#j-dismiss-banner"),"click",function(t){e.style.display="none",$B.queryOnce("body").classList.remove("showdownloadappandroid"),localStorage.setItem("androidAppInstallBannerDismissed","true")},this)}}()}),$B._checkCookies=function(){return!!$B.cookie.isEnabled()||($B.location.redirect("/need-enable-cookie"),!1)},document.addEventListener("keydown",function(e){"Enter"!==e.code&&"Space"!==e.code||!document.activeElement.classList.contains("c-nav-main__partAdditional-meerlink")||(e.preventDefault(),document.querySelector(".c-nav-main__partAdditional-list").style.display="block")}),document.addEventListener("keydown",function(e){"Escape"===e.code&&(document.activeElement.classList.contains("c-nav-main__partAdditional-meerlink")||document.activeElement.classList.contains("c-nav-main__partAdditional-link"))&&(e.preventDefault(),document.querySelector(".c-nav-main__partAdditional-list").style.display="none")}),$B.on(window,"scroll",()=>{document.body.classList.contains("noStickyHeader")||("mobile"===__DOD__.client?$countScroll=20:$countScroll=150,document.documentElement.scrollTop>=$countScroll?(document.body.classList.add("hideManinMenu"),document.body.classList.remove("showManinMenu"),document.documentElement.classList.add("hideManinMenu"),document.documentElement.classList.remove("showManinMenu")):(document.body.classList.remove("hideManinMenu"),document.body.classList.add("showManinMenu"),document.documentElement.classList.remove("hideManinMenu"),document.documentElement.classList.add("showManinMenu")))}),window.addEventListener("CookieScriptLoaded",function(){document.getElementById("cookiescript_accept")&&setTimeout(function(){document.getElementById("cookiescript_accept").focus()},500)}),$B.onReady("j-general__start--other",function(){if("undefined"!=typeof __DOD__&&"desktop"===__DOD__.client){var e=document.getElementById("j-mega-menu"),t=window.__MEGA_MENU__,n=window.__MEGA_MENU_TX__||{};if(e&&t&&"object"==typeof t){var i=e.querySelector(".j-mega-menu__col1"),o=e.querySelector(".j-mega-menu__col2"),s=e.querySelector(".j-mega-menu__brands"),a=e.querySelector(".j-mega-menu__acties"),r=e.querySelector(".j-mega-menu__acties-title"),c=e.querySelector(".j-mega-menu__acties-list"),l=e.closest(".c-nav-main"),d=e?e.closest(".c-nav-main__mega-anchor"):null,u=null,h=null;$B.each(document.querySelectorAll(".j-nav-mega-trigger .c-nav-main__link-icon"),function(l){function d(d){d.preventDefault(),d.stopPropagation();
1var h,m=l.closest(".j-nav-mega-trigger");if(m){var _=m.getAttribute("data-mega-category-id");_&&t[_]&&(u!==_||e.hidden?(u=_,(h=t[String(_)])&&(i.innerHTML=function(e){for(var t=e.previewImages||[],i="",o=0;o<t.length;o++)i+='<div class="c-submenu__quick-section-images--wrapper"><img src="'+p(t[o])+'" alt="" width="44" height="44" loading="lazy"></div>';return'<div class="c-submenu__quick-section"><p>'+p(n.quickPrefix||"Bekijk hier alles van")+'</p><a href="'+p(e.categoryUrl)+'">'+p(e.categoryName)+'<svg  width="26" height="26" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M17 12L7 12M17 12L13 16M17 12L13 8" stroke="currentColor" stroke-width="2.0" stroke-linecap="square"/></svg></a><div class="c-submenu__quick-section-images">'+i+"</div></div>"}(h)+y(h.columns[0]||[],14),o.innerHTML=y(h.columns[1]||[]),s.innerHTML=function(e){for(var t=e.brands||[],i="",o=0;o<t.length;o++)i+='<li><a class="c-submenu__item-link" href="'+p(t[o].url)+'">'+p(t[o].name)+"</a></li>";var s=n.popularBrands||"Populaire Merken",a=n.allBrands||"Alle merken";return'<div class="c-submenu__item"><h3 class="c-submenu__item-title">'+p(s)+'</h3><ul class="c-submenu__item-list">'+i+'</ul><a class="c-submenu__item-link c-submenu__item-link--merken" href="'+p(e.brandsAllUrl)+'">'+p(a)+'<svg width="26" height="26" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M17 12L7 12M17 12L13 16M17 12L13 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="square"/></svg></a></div>'}(h),function(e){var t,n=e.actionsTitle||"Tijdelijke acties:",i=e.actions||[],o=!1;for(t=0;t<i.length;t++)if(B(i[t])){o=!0;break}if(!o)return a.hidden=!0,void(c.innerHTML="");a.hidden=!1,r.textContent=n;var s,l="";for(s=0;s<i.length&&s<4;s++){var d,u=i[s];B(u)&&(d=u.href?'<a class="c-acties__item-link" href="'+p(u.href)+'">':'<div class="c-acties__item-link">',d+='<div class="c-acties__item-imgwrapper">',u.imageSrc&&(d+='<img src="'+p(u.imageSrc)+'" alt="" width="32" height="32" loading="lazy">'),d+="</div>",d+='<div class="c-acties__item-content">',d+='<h4 class="c-acties__item-content-brand">'+p(u.title)+"</h4>",d+='<p class="c-acties__item-content-name">'+p(u.description)+"</p>",d+="</div>",u.discountBackground&&u.discount&&(d+='<div class="c-acties__item-price" style="background:'+p(u.discountBackground)+'"><p>'+p(u.discount)+"</p></div>"),l+='<li class="c-acties__item">'+(d+=u.href?"</a>":"</div>")+"</li>")}c.innerHTML=l}(h),1)&&b(!0,m)):b(!1,m))}}$B.on(l,"click",d),$B.on(l,"keydown",function(e){"Enter"===(e.key||e.code||e.keyCode||e.which||0)&&d(e)})}),document.addEventListener("click",function(t){e.hidden||l&&!l.contains(t.target)&&b(!1)}),document.querySelector(".c-nav-main__close-button").addEventListener("click",function(t){e.hidden=!0,_()}),document.addEventListener("keydown",function(t){"Escape"!==t.key||e.hidden||b(!1)}),window.addEventListener("resize",function(){if(!e.hidden&&u){var t=document.querySelector('.j-nav-mega-trigger[data-mega-category-id="'+u+'"]');t&&m(t)}})}}function m(t){if(d&&t){var n=t.closest(".c-nav-main__partTop")||t.closest(".c-nav-main__partMiddle");if(n){var i=d.getBoundingClientRect().top,o=n.getBoundingClientRect().bottom;e.style.top=o-i+"px"}else e.style.top=""}else e.style.top=""}function _(){document.querySelectorAll(".j-nav-mega-trigger.c-nav-main__link--mega-open").forEach(function(e){e.classList.remove("c-nav-main__link--mega-open")})}function p(e){return null==e?"":String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function f(e,t,i,o){for(var s=e.links||[],a="",r=0;r<s.length;r++)a+='<li><a class="c-submenu__item-link" href="'+p(s[r].url)+'">'+p(s[r].name)+"</a></li>";var c=e.name?'<h3 class="c-submenu__item-title">'+p(e.name)+"</h3>":"",l=n.scrollUp||"Scroll omhoog",d=n.scrollDown||"Scroll omlaag",u=function(e,t,n){var i=n||15;if(t<=0)return Math.max(1,i-1);var o=i%t,s=0;o>0&&(s=t%2==1?e>=t-o?1:0:e<o?1:0);var a=Math.floor(i/t)+s;return Math.max(1,a-1)}(t,i,o),h=26*u;return'<div class="c-submenu__item c-submenu__item--mega-group">'+c+'<div class="c-submenu__item-scroll"><div class="c-submenu__item-list-outer"><button type="button" class="c-submenu__scroll-btn c-submenu__scroll-btn--up" hidden aria-label="'+p(l)+'">▲</button><div class="c-submenu__item-list-inner" style="max-height:'+h+'px"><ul class="c-submenu__item-list">'+a+'</ul></div><button type="button" class="c-submenu__scroll-btn c-submenu__scroll-btn--down" hidden aria-label="'+p(d)+'">▼</button></div></div></div>'}function y(e,t){for(var n="",i=e.length,o=0;o<i;o++)n+=f(e[o],o,i,t);return n}function g(e){for(var t=e.querySelectorAll(".c-submenu__item--mega-group"),n=0;n<t.length;n++)(function(e){var t=e.querySelector(".c-submenu__item-list-inner"),n=e.querySelector(".c-submenu__scroll-btn--up"),i=e.querySelector(".c-submenu__scroll-btn--down");function o(){return Math.max(0,t.scrollHeight-t.clientHeight)}function s(){var e=o();if(e<=1)return n.hidden=!0,void(i.hidden=!0);var s=t.scrollTop;n.hidden=s<=1,i.hidden=s>=e-1}t&&n&&i&&(i.addEventListener("click",function(e){e.preventDefault(),t.scrollTop=Math.min(t.scrollTop+26,o()),window.requestAnimationFrame(s)}),n.addEventListener("click",function(e){e.preventDefault(),t.scrollTop=Math.max(t.scrollTop-26,0),window.requestAnimationFrame(s)}),t.addEventListener("scroll",s),"undefined"!=typeof ResizeObserver&&new ResizeObserver(s).observe(t),s())})(t[n])}function v(){window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){g(i),g(o)})})}function B(e){return!!e&&!!(e.title||e.description||e.discount||e.
1imageSrc||e.href)}function b(t,n){if(document.querySelectorAll(".j-nav-mega-trigger .c-nav-main__link-icon").forEach(function(e){e.setAttribute("aria-expanded","false")}),_(),t){if(e.hidden=!1,n)return h=n,n.classList.add("c-nav-main__link--mega-open"),(i=n.querySelector(".c-nav-main__link-icon"))&&i.setAttribute("aria-expanded","true"),void window.requestAnimationFrame(function(){m(n),v();var t=e.querySelector("a, button");t&&t.focus()});e.style.top="",v()}else{e.hidden=!0,e.style.top="";var i,o=h;u=null,h=null,o&&((i=o.querySelector(".c-nav-main__link-icon"))||o).focus()}}}),LazyLoading=function(e,t,n){"IntersectionObserver"in window&&(t=t||document,this._callback="function"==typeof n?n:this._defaultCallback,this.init(t.querySelectorAll(e)))},LazyLoading.prototype={constructor:LazyLoading,init:function(e){for(var t=this._callback,n=new IntersectionObserver(function(e,n){e.forEach(function(e){e.isIntersecting&&(t(e.target),n.unobserve(e.target))})}),i=0;i<e.length;++i)e[i].classList.contains("j-img-ll")||(e[i].classList.add("j-img-ll"),n.observe(e[i]),e[i].classList.add("j-img__placeholder"))},_defaultCallback:function(e){if(void 0===e.dataset.src||""==e.dataset.src.toString())return!1;e.setAttribute("src",e.dataset.src.toString()),e.removeAttribute("data-src"),e.onload=function(){this.classList.remove("j-img__placeholder"),this.classList.add("j-img__placeholder--active"),this.style.height="auto",void 0!==this.dataset.style_width&&""!==this.dataset.style_width.toString()&&(this.style.width=this.dataset.style_width,this.removeAttribute("data-style_width"))}.bind(e)}},document.addEventListener("DOMContentLoaded",function(){new LazyLoading("img[data-src]")}),$B.widget.modal.outOfStock=$B.Widget({label:"outOfStock",constructor:function(e){this.container=e,this.parent.constructor.apply(this)},init:function(){$B.on($B.query(".j-btn-outofstock-open",this.container),"click",function(e){return e.preventDefault(),this.open($B.data(e.target,"id")),!1},this),$B.on($B.query(".j-btn-outofstock-open"),"keydown",function(e){"Enter"==(e.key||e.code||e.keyCode||e.which||0)&&this.open($B.data(e.target,"id"))},this)},open:function(e){if($B.is.Empty(e))return!1;$B.xhr({origin:$B.location.href("/product/outOfStock/"+e),method:"GET",cacheBust:!0,type:"json"},this).success(function(e){""==(e=((e||{}).body||{}).html||"")&&(e="We hebben een technisch probleem. Probeer het nog een keer."),this.body.innerHTML=e,$B._validator($B.queryOnce("form",this.body),function(e,t,n){return e.preventDefault(),t&&this.send($B.data($B.query(".j-btn-outofstock-send",this.body),"id")),!1}.bind(this),{email_address_notify:{required:[!0,"Het e-mail adres moet nog ingevuld worden."],email:[!0,"Het ingevulde e-mailadres is niet correct."]}}),this.parent.open.apply(this)}).fail(function(e){var t=JSON.parse(e.body);alert(t.errorMessage||"We hebben een technisch probleem. Probeert u het later nog eens.")}).send()},send:function(e){if(!e)return!1;const t=$B.value($B.query("input[name='email_address_notify']",this.element));$B.xhr({origin:$B.location.href("/product/outOfStock/"+e),method:"POST",cacheBust:!1,type:"json",body:{customerEmail:t}},this).success(function(n){n.body.subscribed&&$B._dataLayer.waitListProductSignup(t,e),this.body.innerHTML="";const i=document.createElement("h3");i.className="c-modal-custom__dialog-body-subtitle",i.textContent=n.body.text,this.body.appendChild(i),document.getElementById("closeModalButton").focus()}).fail(function(e){JSON.parse(e.body)}).send()}},$B.widget.modal.abstract),$B.widget.modal.overlayPictorial=$B.Widget({label:"overlayPictorial",constructor:function(e){this.container=e,this.parent.constructor.apply(this)},init:function(){$B.on($B.query(".j-btn-product-overlay-pictorial",this.container),"click",function(e){e.preventDefault(),e.stopPropagation();try{this.open(e.currentTarget)}catch(e){}return!1},this),$B.on($B.queryOnce(".j-btn-product-overlay-pictorial"),"keydown",function(e){if("Enter"==(e.key||e.code||e.keyCode||e.which||0)){e.preventDefault(),e.stopPropagation();try{this.open(e.currentTarget)}catch(e){}return!1}},this)},open:function(e){this.body.innerHTML=$B.queryOnce("script",e).innerHTML,$B.on($B.query(".j-product-card__add-to-cart",this.body),"click",this.onAddToCart,this),this.parent.open.apply(this)},onAddToCart:function(e){try{var t=$B.queryOnce(".j-product-card__add-to-cart",this.body),n=$B.data(t,"i
1d"),i=$B.queryOnce('.j-product-card__add-to-cart[data-id="'+n+'"]',this.container);$B.emit(i,"click")}catch(e){}}},$B.widget.modal.abstract),$B.widget.modal.longDeliveryTime=$B.Widget({label:"longDeliveryTime",constructor:function(){this.parent.constructor.apply(this)},init:function(){},open:function(e){var t=$B.queryOnce("#j-products-long-delivery-time");$B.is.Element(t)&&(this.body.innerHTML=t.innerHTML),$B.is.Empty(this.body.innerHTML)&&(this.body.innerHTML="<br>We hebben een technisch probleem. Probeer het nog een keer."),$B.on($B.query(".j-product-card__add-to-cart",this.body),"click",function(e){return e.preventDefault(),$B.is.Function(this.callback)&&this.callback.call(),this.close(),!1},this),this.callback=e,this.parent.open.apply(this),$B.on($B.query(".j-product-card__close",this.body),"click",this.close,this)}},$B.widget.modal.abstract),$B.widget.modal.uadWarning=$B.Widget({label:"uadWarning",constructor:function(){this.parent.constructor.apply(this)},init:function(){},open:function(e,t,n){var i=$B.queryOnce('.j-product-item-uadWarning[data-id="'+e+'"]');$B.is.Element(i)&&(this.body.innerHTML=i.innerHTML),$B.is.Empty(this.body.innerHTML)&&(this.body.innerHTML="<br>We hebben een technisch probleem. Probeer het nog een keer."),setTimeout(function(){document.getElementById("inWinkelwagenButton").focus()}.bind(this),200),$B.on($B.query(".j-product-card__add-to-cart",this.body),"click",function(e){return e.preventDefault(),$B.is.Function(this.callback)&&this.callback.call(),setTimeout(function(){this.close()}.bind(this),200),!1},this),this.callback=n,this.parent.open.apply(this),$B.on($B.query(".j-uad-warning__redirect",this.body),"click",function(n){if(n.preventDefault(),!$B.is.Empty(e)){let n=$B.queryOnce('.j-product-card__link[data-id="'+e+'"]');$B.is.Element(n)&&!$B.is.Empty(n.href)&&(window.location=t?n.href+"?#j-product-description-uad-warning":n.href+"?#j-product-description-accordion-title")}},this)}},$B.widget.modal.abstract);var v=function(e,t){if(!$B.is.String(e))return!1;this.duration=$B.is.Number(t)?t:.3,this._init($B.query(e))};v.prototype={constructor:v,_init:function(e){if($B.is.Empty(e))return!1;var t=this.duration,n=function(e,n){var i,o=function(t){t&&t.target!==e||(clearTimeout(i),e.removeEventListener("transitionend",o),e.removeEventListener("transitioncancel",o),n())};i=setTimeout(o,1e3*t+200),e.addEventListener("transitionend",o),e.addEventListener("transitioncancel",o)};$B.each(e,function(e){if($B.is.Empty(e.nextElementSibling)||$B.is.Empty(e.firstElementChild))return!1;e.dataset.enabled=!0;var i=function(i){if("false"!=e.dataset.enabled){e.dataset.enabled=!1,i.classList.toggle("c-accordion-title--active"),i.classList.toggle("c-accordion__title--active"),i.classList.toggle("c-product-description__accordiontitle--active"),i.firstElementChild&&i.firstElementChild.firstElementChild&&("#svgSprite-plus"===i.firstElementChild.firstElementChild.getAttribute("href")?(i.firstElementChild.setAttribute("aria-label","minus"),i.firstElementChild.firstElementChild.setAttribute("href","#svgSprite-minus")):(i.firstElementChild.firstElementChild.setAttribute("href","#svgSprite-plus"),i.firstElementChild.setAttribute("aria-label","plus")));var o=i.nextElementSibling,s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if("block"===o.style.display){o.classList.remove("c-accordion-content--active"),o.classList.remove("c-accordion__content--active"),o.setAttribute("tabindex",-1),$B.each($B.query('.c-product-description__content-text a, .c-product-description__content-text input[type="checkbox"], .c-product-description__content-text select'),function(e){e.setAttribute("tabindex",-1)});var a=o.scrollHeight;s||0===a?(o.style.display="none",o.style.height="",e.dataset.enabled=!0):(o.style.height=a+"px",o.offsetHeight,o.style.transition="height "+t+"s ease",o.style.height="0",n(o,function(){o.style.display="none",o.style.height="",o.style.transition="",e.dataset.enabled=!0}))}else{o.classList.add("c-accordion-content--active"),o.classList.add("c-accordion__content--active"),o.setAttribute("tabindex",0),$B.each($B.query('.c-product-description__content-text a, .c-product-description__content-text input[type="checkbox"], .c-product-description__content-text select'),function(e){e.setAttribute("tabindex",0)}),o.style.display="block";var r=o.scrollHeight;s||0===r?(o.style.height="",e.dataset.enabled=!0):(o.style.height="0",o.offsetHeight,o.style.transition="height "+t+"s ease",o.style.height=r+"px",n(o,function(){o.style.height="auto",o.style.transition="",e.dataset.enabled=!0}))}}};$B.on(e,"click",function(){i(this)}.bind(e)),$B.on(e,"keydown",function(e){"Enter"==(e.key||e.code||e.keyCode||e.which||0)&&i(this)}.bind(e))})}},$B._accordion=v;var B=function(e){if(!$B.is.Element(e))return!1;this.element=e,this._init()};B.prototype={constructor:B,_init:function(){var e="c-beryl__async-slider--pagination-item--active",t=this.element,n=new $B._asyncSlider(this.element,function(){null!=this._prev&&(0==this._index?this._prev.classList.add("last"):this._prev.classList.remove("last")),null!=this._next&&(this._index==this._slidesCount-1?this._next.classList.add("last"):this._next.classList.remove("last")),$B.query("."+e,t).classList.remove(e),$B.query('[data-position="'+this._index+'"]',t).classList.add(e);var i,o,s,a,r='<a class="c-beryl__async-slider--nav-link c-beryl__async-slider--nav-link--dotted"><span>...</span></a>&nbsp;',c=function(e){return'<a class="c-beryl__async-slider--nav-link j-pagination-item c-beryl__async-slider--pagination-item--active" data-position="'+(e-1)+'">'+e+"</a>&nbsp;"},l=function(e,t){return"<a "+((t=t||!1)?'style="display: none;" ':"")+'class="c-beryl__async-slider--nav-link j-pagination-item" data-position="'+(e-1)+'">'+e+"</a>&nbsp;"},d="",u=this._index+1,h=this._slidesCount;if($B.screen.isMobile){var m=u+2<h&&h>5;for((_=u>3&&h>5)&&m?(i=u,o=u,s=u-1,a=u+1):_?(o=h-1,a=(i=h-2)-1):m?(i=2,o=3,s=4):(i=2,o=h-1),d+=1==u?c(1):l(1),_&&(d+=r),s&&(d+=l(s,!0).replace("&nbsp;","")),pageNumber=i;pageNumber<o+1;pageNumber++)u==pageNumber?d+=c(pageNumber):d+=l(pageNumber);a&&(d+=l(a,!0).replace("&nbsp;","")),m&&(d+=r),d+=u==h?c(h).replace("&nbsp;",""):l(h).replace("&nbsp;","")}else{var _;
1for(m=u+3<h&&h>7,(_=u>4&&h>7)&&m?(i=u-1,o=u+1):_?(i=h-4,o=h-1):m?(i=2,o=5):(i=2,o=h-1),d+=1==u?c(1):l(1),_&&(d+=r),pageNumber=i;pageNumber<o+1;pageNumber++)u==pageNumber?d+=c(pageNumber):d+=l(pageNumber);m&&(d+=r),d+=u==h?c(h).replace("&nbsp;",""):l(h).replace("&nbsp;","")}$B.query(".j-beryl__async-slider--nav-page-dots",t).innerHTML=d,$B.each($B.query(".j-pagination-item",t),function(e){$B.on(e,"click",function(e){n.slide($B.data(e.target,"position")-this._index)},this)},n),this._label=$B.queryOnce(".j-beryl__async-blog"),"blog"==__DOD__.ctype&&this._label.scrollIntoView({behavior:"smooth"})});$B.each($B.query(".j-pagination-item",this.element),function(e){$B.on(e,"click",function(e){var t=$B.data(e.target,"position");n.slide(t-this._index)},this)},n)}};var b=function(e){if(!$B.is.Element(e))return!1;this.element=e,this._init()};b.prototype={constructor:b,_init:function(){var e="c-beryl__async-slider--pagination-item--active",t=this.element,n=new $B._asyncSlider(this.element,function(){$B.query("."+e,t).classList.remove(e),$B.query('[data-position="'+this._index+'"]',t).classList.add(e)},40);$B.each($B.query(".j-pagination-item",t),function(i){$B.on(i,"click",function(i){var o=$B.data(i.target,"position");$B.query("."+e,t).classList.remove(e),$B.query('[data-position="'+o+'"]',t).classList.add(e),n.slide(o-this._index)},this)},n)}},$B.onReady("j-general__start--other",function(){$B.each($B.query(".j-beryl__async-blog"),function(e){new B(e)}),$B.each($B.query(".j-beryl__async-offset_and_dots"),function(e){new b(e)})}),$B.onReady("j-general__start--other",function(){new $B._accordion(".c-accordion__title"),new $B._ecommerce($B.query("#prod-results-popular-products")),$B.screen.isMobile&&($B.each($B.query(".c-blog-brand"),function(e){var t=$B.query(".c-blog-brand__item",e);t.length&&$B.query(".c-blog-brand__wrapper",e).style.setProperty("--blog-brand-count",t.length)}),$B.on($B.query("#j-blog__category-posts"),"change",e=>{let t=e.target.options[e.target.selectedIndex],n=$B.data(t,"href");$B.location.redirect(n)}))}),$B.onReady("j-general__start--other",function(){$B.on($B.query('a[href^="#"]'),"click",e=>{e.preventDefault(),document.getElementById((e.currentTarget||e.target).getAttribute("href").slice(1))?.scrollIntoView({behavior:"smooth"})})}),$B.onReady("j-general__start--other",function(){$B.query(".j-intro-link").forEach(e=>{$B.on(e,"click",t=>{t.preventDefault();const n=e.getAttribute("href"),i=document.querySelector(n);i&&i.scrollIntoView({behavior:"smooth",block:"start"})})})}),$B.onReady("j-general__start--other",function(){var e=$B.queryOnce(".j-blogside-copy-link");e&&$B.on(e,"click",function(t){t.preventDefault(),navigator.clipboard&&navigator.clipboard.writeText(window.location.href).then(function(){var t=e.querySelector("span");if(t){var n=t.textContent;e.classList.add("is-copied"),t.textContent=e.getAttribute("data-copied-label")||n,setTimeout(function(){t.textContent=n,e.classList.remove("is-copied")},2e3)}}).catch(function(){})})})}();

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.