!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,n){n(1),e.exports=n(3)},function(e,t,n){var o,r,a;function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof self&&self,r=[t,n(2)],void 0===(a="function"==typeof(o=function(e,n){var r=window.document,t=new function e(){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"loading",!1),s(this,"ajaxRequest",null),s(this,"barGraph",null),s(this,"zone",null),s(this,"zoneEmpty",null),s(this,"zoneLoading",null),s(this,"contentLoaded",function(){i.zone=r.getElementById("sfrZone"),i.zoneEmpty=r.getElementById("sfrZone_empty"),i.zoneLoading=r.getElementById("sfrZone_loading"),i.barGraph=r.getElementById("bargraph"),null!==i.barGraph&&(i.barGraph.classList.add("show"),i.barGraph.passwordStrengthCalculator=new n,i.isInternetExplorer()?i.loadInternetExplorerPolyfill():i.attachToElement("sfrpassword","keyup",i.callTestPassword.bind(i))),i.attachToElement("sfrCountry","change",i.countryChanged.bind(i)),i.attachToElement("sfrCountry","keyup",i.countryChanged.bind(i)),i.attachToElement("uploadButton","change",i.uploadFile),i.attachToElement("removeImageButton","click",i.removeFile.bind(i))}),s(this,"showElement",function(e){e.classList.remove("d-none"),e.classList.add("d-block")}),s(this,"hideElement",function(e){e.classList.remove("d-block"),e.classList.add("d-none")}),s(this,"attachToElement",function(e,t,n){var o="object"===l(e)?e:r.getElementById(e);o&&o.addEventListener?o.addEventListener(t,n,!1):o&&o.attachEvent("on"+t,n)}),s(this,"callTestPassword",function(e){var t=e.target,n=i.barGraph.passwordStrengthCalculator.calculate(t.value);if("meter"===i.barGraph.tagName.toLowerCase())i.barGraph.value=n.score;else{var o=Math.min(Math.floor(n.score/3.4),10),r=(i.barGraph.contentDocument||i.barGraph.contentWindow.document).getElementsByClassName("blind"),a=i;Array.from(r).forEach(function(e,t){a[t<o?"hideElement":"showElement"](e)})}}),s(this,"isInternetExplorer",function(){var e=navigator.userAgent;return-1<e.indexOf("MSIE ")||-1<e.indexOf("Trident/")}),s(this,"loadInternetExplorerPolyfill",function(){var e=i,t=r.getElementsByTagName("body").item(0),n=r.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src","https://unpkg.com/meter-polyfill/dist/meter-polyfill.min.js"),n.onload=function(){meterPolyfill(e.barGraph),e.attachToElement("sfrpassword","keyup",e.callTestPassword.bind(this))},t.appendChild(n)}),s(this,"countryChanged",function(e){if(("keyup"===e.type&&(40===e.keyCode||38===e.keyCode)||"change"===e.type)&&!0!==i.loading&&i.zone){var t=e.target||e.srcElement,n=t.options[t.selectedIndex].value;i.loading=!0,i.zone.disabled=!0,i.hideElement(i.zoneEmpty),i.showElement(i.zoneLoading),i.ajaxRequest=new XMLHttpRequest,i.ajaxRequest.onreadystatechange=i.xhrReadyStateChanged.bind(i),i.ajaxRequest.open("POST","index.php?eID=sf_register"),i.ajaxRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),i.ajaxRequest.send("tx_sfregister[action]=zones&tx_sfregister[parent]="+n)}}),s(this,"xhrReadyStateChanged",function(e){var t=e.target;if(4===t.readyState&&200===t.status){var n=JSON.parse(t.responseText);i.hideElement(i.zoneLoading),"error"===n.status||0===n.data.length?i.showElement(i.zoneEmpty):i.addZoneOptions(n.data)}i.loading=!1}),s(this,"addZoneOptions",function(e){i.zone.length=0,i.zone.options=[],e.forEach(function(e,t){this.options[t]=new Option(e.label,e.value)}.bind(i.zone)),i.zone.disabled=!1}),s(this,"uploadFile",function(){r.getElementById("uploadFile").value=i.value}),s(this,"removeFile",function(){r.getElementById("removeImage").value=1,i.submitForm()}),s(this,"submitForm",function(){r.getElementById("sfrForm").submit()});var t=this;t.attachToElement(r,"DOMContentLoaded",t.contentLoaded.bind(t))};window.sfRegister_submitForm=function(){t.submitForm()},e.SfRegister=t})?o.apply(t,r):o)||(e.exports=a)},function(e,t,n){var o,r,a;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}r=[],void 0===(a="function"==typeof(o=function(){return function e(){var l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"verdictLength",function(e){var t=0,n="",o=e.length;switch(!0){case 0<o&&o<5:n="3 points for length ("+o+")",t=3;break;case 4<o&&o<8:n="6 points for length ("+o+")",t=6;break;case 7<o&&o<16:n="12 points for length ("+o+")",t=12;break;case 15<o:n="18 points for length ("+o+")",t=18}return{score:t,log:n}}),i(this,"verdictLetter",function(e){var t=0,n="",o=e.match(/[a-z]/),r=e.match(/[A-Z]/);return o?n=r?(t=7,"7 points for letters are mixed"):(t=5,"5 point for at least one lower case char"):r&&(t=5,n="5 points for at least one upper case char"),{score:t,log:n}}),i(this,"verdictNumbers",function(e){var t=0,n="",o=e.replace(/\D/gi,"");return 1<o.length?(t=7,n="7 points for at least three numbers"):0<o.length&&(t=5,n="5 points for at least one number"),{score:t,log:n}}),i(this,"verdictSpecialChars",function(e){var t=0,n="",o=e.replace(/[\w\s]/gi,"");return 1<o.length?(t=10,n="10 points for at least two special chars"):0<o.length&&(t=5,n="5 points for at least one special char"),{score:t,log:n}}),i(this,"verdictCombos",function(e){var t=0,n="";return 7===e.letter&&0<e.number&&0<e.special?(t=6,n="6 combo points for letters, numbers and special characters"):0<e.letter&&0<e.number&&0<e.special?(t=4,n="4 combo points for letters, numbers and special characters"):7===e.letter&&0<e.number?(t=2,n="2 combo points for mixed case letters and numbers"):0<e.letter&&0<e.number?(t=1,n="1 combo points for letters and numbers"):7===e.letter&&(t=1,n="1 combo points for mixed case letters"),{score:t,log:n}}),i(this,"finalVerdict",function(e){return e<16?"very weak":15<e&&e<25?"weak":24<e&&e<35?"mediocre":34<e&&e<45?"strong":"stronger"}),i(this,"calculate",function(e){var t=l.verdictLength(e),n=l.verdictLetter(e),o=l.verdictNumbers(e),r=l.verdictSpecialChars(e),a=l.verdictCombos({letter:n.score,number:o.score,special:r.score}),i=t.score+n.score+o.score+r.score+a.score,s=[t.log,n.log,o.log,r.log,a.log,i+" points final score"].join("\n");return{score:i,verdict:l.finalVerdict(i),log:s}})}})?o.apply(t,r):o)||(e.exports=a)},function(e,t,n){}]);(function(window,document,$,undefined){'use strict';var W=$(window),U=typeof undefined,D=$(document),toTopEl='#to-top',$navBar=$('.nav-bar');D.ready(function(){$('[data-add-to-cart="form"]').click(function(e){e.preventDefault();$.get($(this).attr('href'),function(data){$('[data-add-to-cart="result"]').html(data)})})});D.ajaxComplete(function(){$('[data-add-to-cart-uri]').submit(function(e){e.preventDefault();$('[data-add-to-cart-uri]').unbind("submit");var form=$(this);var url=form.attr('data-add-to-cart-uri');var data=new FormData(this);var submitButton=$("button[type='submit']",form);data.append($(submitButton).attr('name'),$(submitButton).attr('value'));$.ajax({type:"POST",url:url,data:data,processData:!1,contentType:!1,success:function(data){handleAddToCartSuccessResponse(form,data)}})})})}(window,document,jQuery));function updateCountry(billingCountry,shippingCountry,apiCountryCode,apiValid,$vat){var postParams={"tx_cart_cart[shipping_same_as_billing]":$("#shipping-same-as-billing").is(":checked"),"tx_cart_cart[billing_country]":billingCountry,"tx_cart_cart[shipping_country]":shippingCountry,"tx_cart_cart[api_country_code]":apiCountryCode,"tx_cart_cart[api_valid]":apiValid,"tx_cart_cart[vat]":$vat};$.ajax({async:"true",url:update_country,type:"POST",data:postParams,success:function(data){$("#checkout-step-shipping-method").html($(data).filter("#checkout-step-shipping-method").html());$("#checkout-step-payment-method").html($(data).filter("#checkout-step-payment-method").html());$("#checkout-step-summary").html($(data).filter("#checkout-step-summary").html())}})}
function updateCurrency(currencyCode,action){var postParams={"tx_cart_cart[currencyCode]":currencyCode};$.ajax({async:"true",url:action,type:"POST",data:postParams,success:function(data){$("#form-cart").html($(data).filter("#form-cart").html());$("#checkout-step-shipping-method").html($(data).filter("#checkout-step-shipping-method").html());$("#checkout-step-payment-method").html($(data).filter("#checkout-step-payment-method").html());$("#checkout-step-coupon").html($(data).filter("#checkout-step-coupon").html());$("#checkout-step-summary").html($(data).filter("#checkout-step-summary").html())}})}
function checkVat(billingCountry,shippingCountry,apiCountryCode,apiValid){var key='fbac15335cd715a9f909f6ae53167e34';var vat=$('#billingAddress-taxIdentificationNumber').val();var taxField=$('#billingAddress-taxIdentificationNumber');var vatCountry=vat.substr(0,2);if(!euCountries[billingCountry]){updateCountry(billingCountry,shippingCountry,apiCountryCode,apiValid);taxField.parent().removeClass('error-message')}else if(euCountries[billingCountry]=="BE"){updateCountry(billingCountry,shippingCountry,'BE',apiValid);taxField.parent().removeClass('error-message')}else if(euCountries[billingCountry]&&euCountries[billingCountry]!="BE"&&vat&&vatCountry==billingCountry){$.getJSON('https://vatstack.com/api/validate?key='+key+'&vat='+vat).done(function(result){apiCountryCode=result.country_code;apiValid=result.valid;if(apiValid===!1){taxField.parent().addClass('error-message')}else{taxField.parent().removeClass('error-message')}
updateCountry(billingCountry,shippingCountry,apiCountryCode,apiValid,'vat')}).fail(function(err){if(apiValid===!1){taxField.parent().addClass('error-message')}
updateCountry(billingCountry,shippingCountry,apiCountryCode,apiValid,'vat')})}else{updateCountry(billingCountry,shippingCountry,apiCountryCode,apiValid)}}
$("#billingAddress-taxIdentificationNumber").change(function(){var billingCountry=$("#billingAddress-country").val();var shippingCountry="";var apiCountryCode="";var apiValid=!1;if(!$("#shipping-same-as-billing").is(":checked")){shippingCountry=$("#shippingAddress-country").val()}
checkVat(billingCountry,shippingCountry,apiCountryCode,apiValid)});$("#billingAddress-country").change(function(){var billingCountry=$(this).val();var shippingCountry="";var apiCountryCode="";var apiValid=!1;if(!$("#shipping-same-as-billing").is(":checked")){shippingCountry=$("#shippingAddress-country").val()}
checkVat(billingCountry,shippingCountry,apiCountryCode,apiValid)});$("#shippingAddress-country").change(function(){var billingCountry=$("#billingAddress-country").val();var shippingCountry=$(this).val()});$("#shipping-same-as-billing").change(function(){$("#checkout-step-shipping-address").toggle(!this.checked);var billingCountry=$("#billingAddress-country").val();var shippingCountry=$("#shippingAddress-country").val();if(!$("#shipping-same-as-billing").is(":checked")){$("#checkout-step-shipping-address input, #checkout-step-shipping-address select").each(function(){if($(this).data("disable-shipping")){$(this).prop("disabled",!1)}})}else{$("#checkout-step-shipping-address input, #checkout-step-shipping-address select").each(function(){if($(this).data("disable-shipping")){$(this).prop("disabled",!0)}})}
updateCountry(billingCountry,shippingCountry)});$(".cart-currency-selector").change(function(){updateCurrency($(this).val(),$(this).closest("form").attr("action"))});$(".currency-selector").change(function(){var postParams={"tx_cart_currency[currencyCode]":$(this).val()};$.ajax({async:"true",url:$(this).closest("form").attr("action"),type:"POST",data:postParams,success:function(data){location.reload()}})});$("#checkout-step-payment-method").on("click",".set-payment",function(e){var url=$(this).attr("href");$.get(url,function(data){$("#checkout-step-shipping-method").html($(data).filter("#checkout-step-shipping-method").html());$("#checkout-step-payment-method").html($(data).filter("#checkout-step-payment-method").html());$("#checkout-step-summary").html($(data).filter("#checkout-step-summary").html())});e.preventDefault()});$("#checkout-step-shipping-method").on("click",".set-shipping",function(e){var url=$(this).attr("href");$.get(url,function(data){$("#checkout-step-shipping-method").html($(data).filter("#checkout-step-shipping-method").html());$("#checkout-step-payment-method").html($(data).filter("#checkout-step-payment-method").html());$("#checkout-step-summary").html($(data).filter("#checkout-step-summary").html())});e.preventDefault()});$("#be-variants-select").change(function(){var special_price=$(this).children().filter(":selected").data("special-price");var regular_price=$(this).children().filter(":selected").data("regular-price");var special_price_percentage_discount=$(this).children().filter(":selected").data("special-price-percentage-discount");$("#product-price .special_price .price").html(special_price);$("#product-price .regular_price .price").html(regular_price);$("#product-price .special_price_percentage_discount .price").html(special_price_percentage_discount)});$.fn.serializeObject=function(){var o={};var a=this.serializeArray();$.each(a,function(){if(o[this.name]!==undefined){if(!o[this.name].push){o[this.name]=[o[this.name]]}
o[this.name].push(this.value||"")}else{o[this.name]=this.value||""}});return o};function handleAddToCartSuccessResponse(form,data){var messageBlock;var messageTimeout=form.find('[data-ajax-message-timeout]').data('ajax-message-timeout');if(!messageTimeout){messageTimeout=3000}
var response=data;if(response.status==="200"){$("#cart-preview .cart-preview-count").html(response.count);$("#cart-preview .net").html(response.net);$("#cart-preview .gross").html(response.gross);if(response.count==1){$("#cart-preview .cart-preview-content .message").first().addClass('active').siblings().removeClass('active')}else{$("#cart-preview .cart-preview-content .message").last().addClass('active').siblings().removeClass('active')}
if(response.productsChanged){$.each(response.productsChanged,function(item,value){var title=value.title;var quantity=value.quantity;var price=value.price;var total=value.price_total;var id=value.id;var type=value.sku;if(type=='1'){type='PDF'}else{type='Hard copy'}
var row='<tr id="'+id+'" class=""><td colspan="2" class="col-md-6"><span class="basket-product-title"><span>'+type+'</span>'+title+'</span></td><td class="col-md-2 text-right"><span class="price">'+price+'.00 €</span></td><td class="col-md-1 text-left"> x '+quantity+'</td><td class="col-md-2 text-right"> '+total+'.00 €</td></tr>';if($('.checkout-product-table tbody tr#'+id).length){$('.checkout-product-table tbody tr#'+id).replaceWith(row)}else{$('.checkout-product-table tbody').append(row)}})}
if(response.count>0){$(".checkout-link").show();$("#cart-preview").addClass('show')}else{$(".checkout-link").hide();$("#cart-preview").removeClass('show')}
$(document).trigger("status.cartWasChanged",[!0]);form.each(function(){this.reset()});form.find('[data-ajax-success-message]').html(response.messageBody);form.find('[data-ajax-success-block]').show().delay(messageTimeout).fadeOut("slow")}else{form.find('[data-ajax-error-message]').html(response.messageBody);form.find('[data-ajax-error-block]').show().delay(messageTimeout).fadeOut("slow")}}
$("[data-ajax='1']").submit(function(e){var form=$(this);var serializedObject=form.serializeObject();$.ajax({async:"true",url:form.attr("action"),type:"POST",data:serializedObject,dataType:'JSON',success:function(data){handleAddToCartSuccessResponse(form,data)}});e.preventDefault()});$("#form-cart").submit(function(){$("input:submit").attr("disabled",!0)});$("#form-order").submit(function(){$("input:submit").attr("disabled",!0)});$("#form-coupon").submit(function(){$("input:submit").attr("disabled",!0)})