PageSourceSearch

https://cokertire.com/static/version1790768865/frontend/Silk/coker…/js/add_isp_config.min.js

js cokertire.com collected 2026-10-02 06:31:54 UTC 2,170 bytes, 14 lines download raw bytes

1if(typeof requirejs!=='undefined'){requirejs(['jquery','Magento_Customer/js/customer-data'],function($,customerData){'use strict';$(function(){var body=$('body'),reloading=false,skipped=false,pending=false;if(!(body.hasClass('catalog-product-view')||body.hasClass('catalog-category-view')||body.hasClass('instantsearchplus-result-index')||body.hasClass('catalogsearch-result-index'))){return;}
2function publishProductId(){var productId;if(!body.hasClass('catalog-product-view')){return;}
3productId=$('#product_addtocart_form input[name=product]').val()||$('input[type=hidden][name=product]').last().val();if(!productId){return;}
4if(typeof window.checkout!=='undefined'){window.checkout.isp_product_id=productId;}else{window.isp_product_id=productId;}}
5function applyConfig(data){if(!data||!data.hasOwnProperty('QuoteID')){return;}
6if(typeof window.checkout!=='undefined'){window.checkout.QuoteID=data.QuoteID;}else{window.isp_quote_id=data.QuoteID;}}
7function isNewer(section,config,orEqual){return section.data_id&&(!config.data_id||(orEqual?section.data_id>=config.data_id:section.data_id>config.data_id));}
8function refreshIfChanged(recheck){var cart,customer,config;if(reloading){skipped=true;return;}
9cart=customerData.get('cart')()||{};customer=customerData.get('customer')()||{};config=customerData.get('isp_config')()||{};if(!((isNewer(cart,config,recheck)&&(cart.summary_count>0||config.QuoteID))||isNewer(customer,config,recheck))){return;}
10reloading=true;customerData.reload(['isp_config'],false).done(function(){reloading=false;if(skipped){skipped=false;refreshIfChanged(true);}});}
11function scheduleRefresh(){if(!pending){pending=true;setTimeout(function(){pending=false;refreshIfChanged(false);},0);}}
12function start(){applyConfig(customerData.get('isp_config')());refreshIfChanged(false);}
13try{publishProductId();customerData.get('isp_config').subscribe(applyConfig);customerData.get('cart').subscribe(scheduleRefresh);customerData.get('customer').subscribe(scheduleRefresh);if(typeof customerData.getInitCustomerData==='function'){customerData.getInitCustomerData().done(start);}else{try{customerData.initStorage();}catch(e){}
14start();}}catch(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.