PageSourceSearch

https://www.lampdirect.nl/static/version1790658255/frontend/Wwl/an…/Wwl_Tax/js/inline/tax-class-inline.js

js lampdirect.nl collected 2026-10-04 14:36:40 UTC 1,535 bytes, 1 lines download raw bytes

1let parsedCustomerPreference;function showTaxSwitcher(){const e="header__vat-switcher--checked",t=document.body.getElementsByClassName("vat-switcher header__vat-switcher")[1],s=document.body.getElementsByClassName("vat-switcher__value value-excluding")[0],i=document.body.getElementsByClassName("vat-switcher__value value-including")[0];let a="";parsedCustomerPreference&&(a=parsedCustomerPreference.customer_tax_display),"including"===a?(t&&t.classList.add(e),s&&s.classList.add("hidden"),i&&i.classList.remove("hidden")):(t&&t.classList.remove(e),s&&s.classList.remove("hidden"),i&&i.classList.add("hidden"))}function getCustomerPreference(){const e=localStorage.getItem("mage-cache-storage");if(!e)return null;const t=JSON.parse(e);return t&&t.hasOwnProperty("customer-preference")?t["customer-preference"]:null}function init(){var e=getCustomerPreference(),t="tax-display-including",s="tax-display-excluding",i="",a=window.location.search;a&&/(^\?|&)qcd=/.test(a)?i="including":e&&(i=e.customer_tax_display),"including"===i?(document.body.classList.remove(s),document.body.classList.add(t,"tax-display-initialized")):"excluding"===i?(document.body.classList.remove(t),document.body.classList.add(s,"tax-display-initialized")):document.body.classList.add("tax-display-initialized")}!function e(){if(document.body)return init();window.requestAnimationFrame(e)}(),function e(){if(document.body&&document.body.getElementsByClassName("vat-switcher__value value-excluding")[0])return showTaxSwitcher();window.requestAnimationFrame(e)}();

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.