PageSourceSearch

https://www.lampornu.se/static/version1791237598/frontend/Wwl/anyl…/js/shipping-price-notification.js

js lampornu.se collected 2026-10-07 21:50:33 UTC 2,291 bytes, 1 lines download raw bytes

1require(["jquery","underscore","ko","Magento_Customer/js/customer-data"],function($,e,s,i){"use strict";var n,c;function o(){var e=$('<div style="display: none;" id="free-shipping-notice" class="free-shipping-notice"></div>'),s=document.body.classList.contains("tax-display-excluding")?c():n();if(s){var i=$(".cart__products-list").parent(),o=$("#free-shipping-notice"),t=$("#surcharge-message");t.length>0&&t.stop(!0,!0).slideUp(),o.length>0?(o.html(s),"none"===o.css("display")&&o.slideDown()):(e.html(s),i.prepend(e),e.slideDown())}}i.get("cart").subscribe(function(e){var s=document.body.classList.contains("tax-display-excluding")?"excl_tax":"incl_tax";e.free_shipping_messages&&(window.checkoutConfig.free_shipping_messages.incl_tax=e.free_shipping_messages.incl_tax,window.checkoutConfig.free_shipping_messages.excl_tax=e.free_shipping_messages.excl_tax,e.free_shipping_messages[s]?(o(),$(window).on("wwl:tax-toggled",o)):($("#free-shipping-notice").slideUp(),e.surcharge_messages&&(window.checkoutConfig.surcharge_messages={},window.checkoutConfig.surcharge_messages.incl_tax=e.surcharge_messages.cart_text_incl,window.checkoutConfig.surcharge_messages.excl_tax=e.surcharge_messages.cart_text_excl,window.checkoutConfig.surcharge_messages[s]?(g(),$(window).on("wwl:tax-toggled",g)):$("#surcharge-message").slideUp())))}),n=function(){return!(!window.checkoutConfig||!window.checkoutConfig.free_shipping_messages)&&window.checkoutConfig.free_shipping_messages.incl_tax},c=function(){return!(!window.checkoutConfig||!window.checkoutConfig.free_shipping_messages)&&window.checkoutConfig.free_shipping_messages.excl_tax};var t=function(){return!(!window.checkoutConfig||!window.checkoutConfig.surcharge_messages.incl_tax)&&window.checkoutConfig.surcharge_messages.incl_tax},a=function(){return!(!window.checkoutConfig||!window.checkoutConfig.surcharge_messages.excl_tax)&&window.checkoutConfig.surcharge_messages.excl_tax};function g(){var e=$('<div style="display: none;" id="surcharge-message" class="free-shipping-notice"></div>'),s=document.body.classList.contains("tax-display-excluding")?a():t();if(s){var i=$("#maincontent").find(".page.messages"),n=$("#surcharge-message");n.length>0?(n.html(s),"none"===n.css("display")&&n.slideDown()):(e.html(s),i.append(e),e.slideDown())}}});

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.