PageSourceSearch

https://www.esselte.com/assets/scripts/chunks/5070.chnk.js?v=fbc757c

js esselte.com collected 2026-09-26 04:22:42 UTC 2,563 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkacco_brands_europe=self.webpackChunkacco_brands_europe||[]).push([[5070],{5070:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var i=r(1083);function n(e){return n="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},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,s(i.key),i)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}const a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.item=t,this.itemPrice=this.item.querySelector(".price-info"),this.itemLink=this.item.querySelector(".btn-more a"),this.seller="",this.url="/CommerceConnector/GetShops",this.query=this.setQuery(),this.ui={loadingClass:"d2c-phase1--loading",readyClass:"d2c-phase1--ready"}},t=[{key:"init",value:function(){document.querySelector("#header #cart-layer")||this.checkServer()}},{key:"checkServer",value:function(){var e=this;e.item.classList.add("d2c-phase1--loading"),i.A.post(e.url,e.query,{responseType:"json"}).then(function(t){e.item.classList.remove("d2c-phase1--loading"),t.data&&200===t.status&&e.updateItem(t.data.Shops)}).catch(function(e){console.error("unexpected exception trying to get shops",e)})}},{key:"updateItem",value:function(e){var t=this.itemPrice.dataset.sellerid;"0"!==t?(this.seller=function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}(e,function(e){return e.Id==t}),this.seller&&parseFloat(this.seller.Price)&&this.render(this.seller.Price,this.seller.Url)):console.log("No seller ID for product "+this.itemPrice.dataset.ean)}},{key:"setQuery",value:function(){return{eanCode:this.itemPrice.dataset.ean,language:dojoConfig.language,country:dojoConfig.country}}},{key:"render",value:function(e,t){e&&t&&(this.itemPrice.querySelector(".price").textContent=parseFloat(e).toFixed(2),this.itemLink&&(this.itemLink.href=t,this.itemLink.setAttribute("target","_blank"),this.itemLink.classList.add("cart-button")),this.item.classList.add("d2c-phase1--ready"))}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()}}]);

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.