1"use strict";var DropdownEvent;(function(e){e.SHOW="show",e.HIDE="hide"})(DropdownEvent||(DropdownEvent={}));var DropdownButtonText;(function(e){e.MORE="More",e.LESS="Less"})(DropdownButtonText||(DropdownButtonText={}));var DoTaggingResult;(function(e){e.INCREASE="increase",e.DECREASE="decrease"})(DoTaggingResult||(DoTaggingResult={}));var PriceStak=(function(){function e(){this.getElements(),this.addDropdownListeners(),this.addDropdownResizeObserver(),this.initRebateIconMaskStyling()}return e.prototype.getElements=function(){this._elementSelectorName="data-pricestak-element",this._dropdownSelector="[".concat(this._elementSelectorName,'="collapse"]'),this._dropdownButtonSelector="[".concat(this._elementSelectorName,'="collapse-button"]'),this._dropdownButtonLabelSelector="[".concat(this._elementSelectorName,'="collapse-button-label"]'),this._dropdowns=document.querySelectorAll(this._dropdownSelector),this._dropdownButtons=document.querySelectorAll(this._dropdownButtonSelector),this._dropdownButtonLabels=document.querySelectorAll(this._dropdownButtonLabelSelector)},e.prototype.toggleAllDropdowns=function(t){for(var n=t===DropdownEvent.SHOW?DropdownButtonText.LESS:DropdownButtonText.MORE,r=t===DropdownEvent.SHOW?DoTaggingResult.DECREASE:DoTaggingResult.INCREASE,o=0;o<this._dropdownButtons.length;o++){var s=this._dropdownButtonLabels[o],i=this._dropdowns[o],l=this._dropdownButtons[o];l.dataset.dotaggingEventActionResult=r,s.innerText=n,$(i).collapse(t)}},e.prototype.addDropdownListeners=function(){var t=this;if(this._dropdowns&&this._dropdownButtonLabels){for(var n=0;n<this._dropdownButtons.length;n++){var r=this._dropdownButtons[n];r.addEventListener("click",function(o){t.dropdownButtonCallback(o)})}window.jQuery(this._dropdowns).on("hidden.bs.collapse",function(o){t.toggleDropdownResizeObservation(!1)}),window.jQuery(this._dropdowns).on("shown.bs.collapse",function(o){t.toggleDropdownResizeObservation(!1)})}},e.prototype.dropdownButtonCallback=function(t){var n;t.preventDefault();var r=t.target,o=r.closest(this._dropdownButtonSelector),s=(n=o?.dataset)===null||n===void 0?void 0:n.target;this._currentDropdown=document.querySelector(s);var i=document.documentElement.scrollTop,l=document.documentElement.scrollHeight;this._currentScrollbarRatio=i/l;var d=o.getAttribute("aria-expanded");if(this.toggleDropdownResizeObservation(!0),d!=null){var a=d==="true"?DropdownEvent.HIDE:DropdownEvent.SHOW;this.toggleAllDropdowns(a)}},e.prototype.addDropdownResizeObserver=function(){var t=this;this._resizeObserver=new ResizeObserver(function(){var n=document.documentElement.scrollHeight,r=n*t._currentScrollbarRatio;document.documentElement.scrollTo({top:r})})},e.prototype.toggleDropdownResizeObservation=function(t){this._currentDropdown&&(t?this._resizeObserver.observe(this._currentDropdown):this._resizeObserver.unobserve(this._currentDropdown))},e.prototype.initRebateIconMaskStyling=function(){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=document.querySelectorAll(".priceBlockItemPriceButton .priceBlockItemPriceButtonIcon img"),o=r.length>0?r.item(0).src:"https://cdn.dlron.us/static/industry-automotive/icons/icon_info.svg";n.innerHTML=` 2 :root { 3 --rebate-icon-url: url('`.concat(o,`'); 4 } 5 `),t.appendChild(n)},e})();document.readyState==="loading"?window.addEventListener("DOMContentLoaded",function(){return new PriceStak}):new PriceStak;
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.