(function(e, t, n, o) { var enableTesting=undefined?true:false;if(!enableTesting){localStorage.removeItem("SEARCHBOOSTER_V2_AB_TEST_SEGMENT_A");localStorage.removeItem("SEARCHBOOSTER_V2_AB_TEST_SEGMENT_B");} var cdnUrl = "https://cdn2.searchbooster.net/scripts/v2/init.js"; var pathCdnUrl = new URL(cdnUrl).pathname; var scriptElement = document.querySelector('[data-sb-init-script]'); var regionId = ''; var segmentId = ''; var userId = ''; var debug = false; var c = cdnUrl; var b = 'https://cdn.searchbooster.io' + pathCdnUrl; var settings = {"apiKey":"493a604e-507a-4a41-8b61-1af0f509eaee","apiUrl":"https://api.searchbooster.net","optimizeWidget":true,"theme":{"variables":{"color-primary":"#000000","font-family-primary":"Ubuntu, Montserrat, Helvetica, sans-serif","font-family-secondary":"Ubuntu, Montserrat, Helvetica, sans-serif"}},"locales":{"ru":{"filters":{"byType":{"category":{"label":"Серия / Тип"}}}}},"completions":{"active":true,"taps":{"mobile":{"active":true,"count":5},"desktop":{"active":true,"count":5}}},"popup":true,"layout":{"filterPosition":"left"},"offer":{"taps":{"mobile":{"active":false,"count":5},"desktop":{"active":false,"count":5}}},"cartCount":{"active":false,"completions":{"count":false},"offer":{"count":false}},"completionSettings":{"orders":["brands","popular","categories","history","suggestions","special_offers","offers"],"totalCompletionCount":18,"limits":{"brands":6,"offers":12,"history":6,"popular":6,"categories":6,"suggestions":6,"special_offers":6}},"locale":"auto","initialized":function(sb) { sb.mount({"selector":"#search-btn-start","widget":"search-popup","options":{"cartCount":{"active":false,"completions":{"count":false},"offer":{"count":false}}}}); }}; if (scriptElement) { var scriptURL = new URL(scriptElement.src); regionId = scriptURL.searchParams.get('regionId'); segmentId = scriptURL.searchParams.get('segmentId'); userId = scriptURL.searchParams.get('userId'); debug = scriptURL.searchParams.get('debug'); } if (regionId) { settings.regionId = regionId; } if (segmentId) { settings.segmentId = segmentId; } if (userId) { settings.userId = userId; } if (debug) { settings.debug = true; } a = t.getElementsByTagName(n)[0]; function initFu(c, s) { if (s) { if (s.src === b) { s.remove(); return } s.remove(); } e[o] = e[o] || function() { (e[o].a = e[o].a || []).push(arguments) }, e[o].h = c, e[o].n = o, e[o].i = 1 * new Date; s = t.createElement(n); s.async = 1; s.src = c; a.parentNode.insertBefore(s, a); t.body.insertAdjacentHTML('beforeend', ''); function loadScriptFromCDN(s) { s.onerror = function() { initFu(b , s); }; searchbooster(settings); } loadScriptFromCDN(s) } initFu(c); })(window, document, "script", "searchbooster");