1'use strict';!function(x){function r(c){for(var e=c[0],k=c[1],f=c[2],a,b,d=0,g=[];d<e.length;d++)b=e[d],p[b]&&g.push(p[b][0]),p[b]=0;for(a in k)Object.prototype.hasOwnProperty.call(k,a)&&(x[a]=k[a]);for(t&&t(c);g.length;)g.shift()();n.push.apply(n,f||[]);return l()}function l(){for(var c,e=0;e<n.length;e++){for(var k=n[e],f=!0,a=1;a<k.length;a++)0!==p[k[a]]&&(f=!1);f&&(n.splice(e--,1),c=h(h.s=k[0]))}return c}function h(c){if(u[c])return u[c].exports;var e=u[c]={i:c,l:!1,exports:{}};x[c].call(e.exports, 2e,e.exports,h);e.l=!0;return e.exports}var u={},p={6:0},n=[];h.m=x;h.c=u;h.d=function(c,e,k){h.o(c,e)||Object.defineProperty(c,e,{enumerable:!0,get:k})};h.r=function(c){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"});Object.defineProperty(c,"__esModule",{value:!0})};h.t=function(c,e){1&e&&(c=h(c));if(8&e||4&e&&"object"===typeof c&&c&&c.__esModule)return c;var k=Object.create(null);h.r(k);Object.defineProperty(k,"default",{enumerable:!0, 3value:c});if(2&e&&"string"!=typeof c)for(var f in c)h.d(k,f,function(a){return c[a]}.bind(null,f));return k};h.n=function(c){var e=c&&c.__esModule?function(){return c["default"]}:function(){return c};h.d(e,"a",e);return e};h.o=function(c,e){return Object.prototype.hasOwnProperty.call(c,e)};h.p="";var m=window.webpackJsonp=window.webpackJsonp||[],y=m.push.bind(m);m.push=r;m=m.slice();for(var v=0;v<m.length;v++)r(m[v]);var t=y;n.push([148,0]);l()}({148:function(x,r,l){function h(f){h="function"===typeof Symbol&& 4"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};return h(f)}function u(f,a){if(!(f=function(b){if(Array.isArray(b))return b}(f)||function(b,d){var g=[],q=!0,w=!1,A=void 0;try{for(var B,z=b[Symbol.iterator]();!(q=(B=z.next()).done)&&(g.push(B.value),!d||g.length!==d);q=!0);}catch(C){w=!0,A=C}finally{try{if(!q&&null!=z["return"])z["return"]()}finally{if(w)throw A;}}return g}(f, 5a)))throw new TypeError("Invalid attempt to destructure non-iterable instance");return f}function p(f,a){for(var b=0;b<a.length;b++){var d=a[b];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(f,d.key,d)}}function n(f){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(f)}function m(f,a){return(m=Object.setPrototypeOf||function(b,d){b.__proto__=d;return b})(f,a)}l.r(r);var y=l(1),v={selectors:{selected:"#comparisoncollector__selected", 6max:"#comparisoncollector__max",list:".comparisoncollector__list",button:"#comparisoncollector__button",buttonLink:"#comparisoncollector__button .button__link",accordion:".accordion__container",clearAll:".comparisoncollector__clearAll[]",accordionSplit:".comparisoncollector__accordion .accordion__split"},classes:{buttonDisabled:"button--disabled",listEmpty:"comparisoncollector__list--empty",ispinned:"is-pinned",collapsed:"accordion--collapsed"},maxMobile:2,maxDesktop:3},t=l(4),c=l(0),e=l(6),k=l(5); 7r=function(){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");!0;var a=arguments.length;for(var b=Array(a),d=0;d<a;d++)b[d]=arguments[d];var g;a=(g=n(f)).call.apply(g,[this].concat(b,[v]));if(!a||"object"!==h(a)&&"function"!==typeof a){if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");g=this}else g=a;g=null!==(a=g).el.closest(".slb-modal, .slb-modal--full, .slbContent");e.a.isAuthor()||g||a.init();return a} 8!function(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}});b&&m(a,b)}(f,y.a);!function(a,b,d){b&&p(a.prototype,b);d&&p(a,d)}(f,[{key:"init",value:function(){this.cacheElements(this.config.selectors);this.manuallyCollapsed=!1;this.cloneComparisonCollector();this.detectComparisonCollectorPosition();this.addEventListeners();this.checkInitialStatus(); 9this.setCardsIndex()}},{key:"checkInitialStatus",value:function(){this.accordionId?this.checkStatus():this.subscribeOnce(c.PAGE_LOADED,this.checkStatus)}},{key:"addEventListeners",value:function(){var a=this;this.subscribe(c.VIEWPORT_CHANGE,this.updateTitle);this.els.accordionSplit.addEventListener("click",this.handleManualCollapse.bind(this));this.els.clearAll.forEach(function(b){b.addEventListener("click",a.onRemoveAllProducts.bind(a))});this.subscribe(c.COMPARE_ADDED,this.onProductAdded);this.subscribe(c.COMPARE_REMOVED, 10this.onProductRemoved);this.subscribe(c.ACCORDION_EXPANDED,this.onExpand);this.subscribe(c.ACCORDION_COLLAPSED,this.onCollapse)}},{key:"cloneComparisonCollector",value:function(){var a=this.el.parentElement,b=a&&a.parentElement;b&&a.classList.contains("breadcrumb")&&b.insertBefore(this.el,a)}},{key:"detectComparisonCollectorPosition",value:function(){var a=this;(new IntersectionObserver(function(b){var d=u(b,1)[0];b=1>d.intersectionRatio;d.target.classList.toggle(a.config.classes.ispinned,b);
10b||a.expanded|| 11setTimeout(function(){a.publish(c.ACCORDION_EXPAND,a.accordionId)},200);b&&a.manuallyCollapsed&&setTimeout(function(){a.publish(c.ACCORDION_COLLAPSE,a.accordionId)},200)},{threshold:[1]})).observe(this.el)}},{key:"handleManualCollapse",value:function(){this.manuallyCollapsed=!this.els.accordion.classList.contains(this.config.classes.collapsed)}},{key:"setCardsIndex",value:function(){var a=this.el.querySelectorAll(".productcomparisoncollector .productcard");a&&Array.from(a).forEach(function(b,d){(b= 12b.querySelector(".productcard__close"))&&b.setAttribute("data-index",d)})}},{key:"onProductAdded",value:function(){var a=this;this.checkStatus();this.fetchProducts();this.expanded=!0;setTimeout(function(){a.publish(c.ACCORDION_EXPAND,a.accordionId)},200)}},{key:"onProductRemoved",value:function(a){var b=a&&a.id;b&&(a=this.el.querySelectorAll(".productcomparisoncollector .productcard__container"),a=Array.from(a).filter(function(d){return d.getAttribute("data-id")===b}),a[0]&&a[0].parentElement.remove()); 13this.isDirty();this.checkStatus();this.setCardsIndex()}},{key:"onRemoveAllProducts",value:function(){var a=this,b=this.el.querySelectorAll(".productcard__container");if(b){var d={};Array.from(b).forEach(function(q){var w=q.getAttribute("data-id");w&&(q.parentElement.remove(),d.id=w);a.publish(c.COMPARE_REMOVED,d)});b=Object(k.b)(t.b);var g={};if(b)try{g=JSON.parse(b)}catch(q){g={}}g.compare=[];Object(k.d)(t.b,JSON.stringify(g));this.expanded=!0;this.publish(c.ACCORDION_EXPANDED,this.accordionId); 14this.isDirty();this.checkStatus()}}},{key:"onExpand",value:function(a){a===this.accordionId&&(this.fetchProducts(),this.expanded=!0,this.publish(c.ACCORDION_EXPAND,this.accordionId))}},{key:"onCollapse",value:function(a){a===this.accordionId&&(this.expanded=!1);this.manuallyCollapsed=!0}},{key:"checkStatus",value:function(){this.products.length?(this.el.classList.remove("hidden"),this.updateTitle(),this.updateButton()):(this.el.classList.add("hidden"),this.publish(c.ACCORDION_COLLAPSE,this.accordionId))}}, 15{key:"updateTitle",value:function(){this.els.selected.textContent=this.products.length;this.els.max.textContent=this.max}},{key:"updateButton",value:function(){1<this.products.length?this.els.button.classList.remove(this.config.classes.buttonDisabled):this.els.button.classList.add(this.config.classes.buttonDisabled)}},{key:"fetchProducts",value:function(){var a=this;if(this.isDirty()||this.els.list.classList.contains(this.config.classes.listEmpty))try{this.config.collector&&fetch("".concat(this.config.collector)).then(function(b){return b.text()}).then(function(b){a.els.list.innerHTML= 16b;a.__mediator.scanElement(a.els.list);a.els.list.classList.remove(a.config.classes.listEmpty);a.isDirty();a.checkStatus();a.setCardsIndex()})}catch(b){console.warn(b)}}},{key:"isDirty",value:function(){if(this.cachedProducts&&this.cachedProducts===JSON.stringify(this.products))return!1;this.cachedProducts=JSON.stringify(this.products);return!0}},{key:"products",get:function(){var a=Object(k.c)(t.b,"compare");return a&&0!==a.length?a.slice(0,e.a.isMobile()?this.config.maxMobile:this.config.maxDesktop): 17[]}},{key:"max",get:function(){return e.a.isMobile()?this.config.maxMobile:this.config.maxDesktop}},{key:"accordionId",get:function(){return this.els.accordion?this.els.accordion.dataset.componentId:void 0}}]);return f}();l(3).a.queue({ComparisonCollector:r})}});
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.