1if (!window.shop_dp) { 2 window.shop_dp = { 3 plugin_url: '/wa-apps/shop/plugins/dp/', 4 dialog_url: '/dp-plugin/dialog/', 5 service_url: '/dp-plugin/service/', 6 calculate_url: '/dp-plugin/calculate/', 7 svg_url: '/dp-plugin/svg/', 8 point_url: '/dp-plugin/city-save/', 9 city_search_url: '/dp-plugin/city-search/', 10 city_save_url: '/dp-plugin/city-save/', 11 location: { 12 country_code: 'kgz', 13 country_name: 'ÐиÑÐ³Ð¸Ð·Ð¸Ñ (ÐÑÑгÑзÑÑан)', 14 region_code: '66', 15 region_name: '', 16 city: 'ÐиÑкек' 17 }, 18 loader: { 19 assets: {}, 20 loadCSS: function(url) { 21 $('<link>') 22 .appendTo('head') 23 .attr({ 24 type: 'text/css', 25 rel: 'stylesheet', 26 href: url 27 }); 28 }, 29 load: function(asset, callback) { 30 var self = this; 31 32 var resolve = function (is_from_cache) { 33 if (typeof callback === 'function' && asset in self.assets) { 34 callback.call(window.shop_dp.loader.assets[asset], is_from_cache); 35 } 36 }; 37 38 if (window['shop_dp_is_loading_asset_' + asset]) { 39 $(document).on('shop_dp_asset_loaded_' + asset, resolve); 40 return false; 41 } 42 43 if (!(asset in this.assets) && !window['shop_dp_is_loading_asset_' + asset]) { 44 window['shop_dp_is_loading_asset_' + asset] = true; 45 46 $.ajax({ 47 dataType: 'script', 48 cache: false, 49 url: 50 window.shop_dp.plugin_url + 51 'js/' + 52 (asset === 'core' ? 'core' : 'frontend.' + asset) + 53 '.js', 54 complete: function() { 55 window['shop_dp_is_loading_asset_' + asset] = false; 56 $(document).trigger('shop_dp_asset_loaded_' + asset); 57 resolve(false); 58 } 59 }); 60 } else { 61 resolve(true); 62 } 63 } 64 }, 65 map_service: 'yandex', 66 map_params: {"yandex_key":"ac9b69ae-dea0-491f-b6e5-dcf0695b1229"} 67 }; 68 69 (function($) { 70 window.shop_dp.loader.load('core'); 71 })(jQuery); 72}
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.