1(function($){var initialized=!1;var selectedStoreId=$.urlParam('store_id');$(document).on('freshopInitialized',function(){freshop.on('initialized',init);function init(){if(initialized)return;initialized=!0;var $listContainer=$("#dropdown-store .dropdown-list");if($listContainer&&$listContainer.length>0){freshop.getStores(function(data){var sortedArray=_.sortBy(data.items,function(item){return[item.state,item.name]});var listContainer=$("#dropdown-store .dropdown-list");$.each(sortedArray,function(index,store){isSelected='';if(store.id==selectedStoreId)isSelected=' data-selected="true"';var listItem='<li class="dropdown-list-item" role="presentation" data-store-id="'+freshop.ui.encodeForHtml(store.id)+'"><a href="javascript:;" role="menuitem" data-value="'+freshop.ui.encodeForHtml(store.store_number)+'"'+isSelected+'>'+freshop.ui.encodeForHtml(store.name)+'</a></li>';listContainer.append(listItem)});$("#dropdown-store").dropdown(function(value){var $item=$(this).data('dropdown').__getSelected(),$storeName=$('#store-name').add($('#dropdown-store').closest('.store-dropdown-wrapper').next('input[type="hidden"]')).val($item.text()),$storeNumber=$storeName.parents('form').find('.contact-store-number input');var selectedStore=_.findWhere(sortedArray,{name:$item.text()});if(selectedStore)$storeNumber.val('store_id:'+selectedStore.id);else $storeNumber.val('')}).data('dropdown').onChange()})}} 2setTimeout(function(){if(freshop.initialized)init()},1000)})})(jQuery)
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.