PageSourceSearch

https://js2.labirint.ru/search.min.js?1705914330

js labirint.ru collected 2026-10-02 02:20:19 UTC 8,502 bytes, 1 lines download raw bytes

1function number_format(e,t,n,a){var i,o;return isNaN(t=Math.abs(t))&&(t=2),void 0===n&&(n=","),void 0===a&&(a="."),(o=(i=parseInt(e=(+e||0).toFixed(t))+"").length)>3?o%=3:o=0,(o?i.substr(0,o)+a:"")+i.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+a)+(t?n+Math.abs(e-i).toFixed(t).replace(/-/,0).slice(2):"")}var SectionSearch=function(){var e,t={list:[],add:function(e){this.list.push(e)},fire:function(){var e=Array.prototype.slice.call(arguments,0);for(var t in this.list)this.list[t].apply(null,e)}};function n(e){var t=$(e).parents(".b-search-e-inputs-list").find("input:checked"),n=[];t.length&&t.each((function(){var e=$(this);n.push('<span class="js-b-search-checked-list-item" data-name="'+this.name+'" data-value="'+e.val()+'">'+e.siblings(".b-radio-txt").text()+"</span>")})),$(".js-b-search-checked-list-items").html(n.join(", ")),$(".js-b-search-checked-list").toggle(!!n.length)}function a(){void 0!==e.data("qtip")&&e.qtip("api").destroy(!0),e.parents(".responsive-modal").length&&clearWindow(!0)}function i(n){var a=e.serializeArray(),i=(e.find("input[type=submit]"),e.data("counturl")||"/ajax/searchcount/");a=a.concat($("form.navisort-form input[type=hidden]").serializeArray()),a="none"===$(".desktop-subnavigagions-block").css("display")?a.concat($("form.navisort-form > :not(.desktop-subnavigagions-block) input[type!=hidden]").serializeArray()):a.concat($("form.navisort-form > :not(.mobile-subnavigagions-block) input[type!=hidden]").serializeArray()),(a=$.param(a))&&$.ajax({url:i,data:a,success:function(a){a=a?$.parseJSON(a):{count:0},t.fire(e,a),"function"==typeof n&&n(e,a,!1)},error:function(){"function"==typeof n&&n(e,{count:0},!0)}})}var o={content:{text:""},position:{my:"left middle",at:"right middle",target:!0,adjust:{x:0}},style:{classes:"qtip-sctn-search",tip:{corner:!0,color:"#1868A0",left:"-20px",height:20,width:30}},show:!1,hide:!1};function s(t,n,a){if(n.is(":visible")){var i=e.qtip("api");i.show(),i.set("content.text",a),i.elements.target=n,i.reposition()}}function c(e,t,n,a){return'<div class="qtip-sctn-search-content form"><div class="qtip-message">'+e+"</div>"+(0===parseInt(n,10)?"":'<div class="qtip-act"><a class="btn btn-primary btn-small qtip-btn '+(a.nopushstate?"":" pushstate")+'" href="'+(a.action?a.action:"")+"?"+t+'">ПОКАЗАТЬ</a></div>')+'<div class="adv-act"><span class="act-reset">Сбросить</span><span class="act-close ml10">Закрыть</span></div></div>'}function r(t,n){if(!("ontouchstart"in window)||"undefined"!=typeof showGoodsButton){var a=$(n).parents(".row:last"),r=!0;if(e.find("[name=price_min]").length){var d=e.find("[name=price_min]").val().replace(" ",""),p=e.find("[name=price_max]").val().replace(" ","");d>0&&p>0&&parseInt(d)>parseInt(p)&&(r=!1)}var u,l=!0;if(e.find("[name=age_min]").length){var h=e.find("[name=age_min]").val(),f=e.find("[name=age_max]").val();h>0&&f>0&&parseInt(h)>parseInt(f)&&(l=!1)}r&&l||(u="Мы ничего не нашли. Возможно вы ввели некорректные значения"),r||"price_min"!=n.name&&"price_max"!=n.name?l||"age_min"!=n.name&&"age_max"!=n.name?r?l||(a=e.find("[name=age_max]").parent()):a=e.find("[name=price_max]").parent():a=e.find("[name=age_max]").parent():a=e.find("[name=price_max]").parent(),e.data("qtip")||e.qtip(o);var m=0===a.closest(".no-search-qtip").length;l&&r?i((function(e,t,n){var i=e.find("input[type=submit]"),o=e.serialize();t.count>0?(u="Мы нашли "+t.txt,i.attr("disabled",!1).removeClass("btn-disabled")):0==t.count&&!0!==n?(u="Мы ничего не нашли. Попробуйте изменить параметры навигатора",i.attr("disabled",!0).addClass("btn-disabled")):(u="Ошибка! Попробуйте повторить позднее",i.attr("disabled",!0).addClass("btn-disabled")),"undefined"!=typeof showGoodsButton&&!0===showGoodsButton&&updateSearchButton(null,t),m&&s(0,a,c(u,o,t.count,{action:e.attr("action"),nopushstate:e.data("nopushstate")}))})):(m&&s(0,a,c(u)),"undefined"!=typeof showGoodsButton&&!0===showGoodsButton&&updateSearchButton(null,{txt:"0 товаров",count:0}))}}var d=getLazyFunction(r,300),p=getLazyFunction(r,800),u=getLazyFunction((function(e){var t=$(e),n=(t.val(),t.closest(".inputs-block")),a=n.find(".js-tinyscrollbar"),i=n.find(".js-filter-container"),o=t.parents("form").serializeArray();
1$(".js-b-search-checked-list-item").each((function(){var e=$(this).data();o.push({name:"checkedvalue_"+e.name,value:e.value}),o.push({name:"checkedname_"+e.name,value:$(this).text()})})),o=function(e){var t={};return jQuery.map(e,(function(e){if(e.name.indexOf("[")>-1){var n=e.name.replace(/\[\d*\]/gi,"");void 0===t[n]&&(t[n]=[]),t[n].push(e.value||"")}else t[e.name]=e.value||""})),t}(o),$.ajax("/suggests/pubhouses/",{data:o,type:"GET",dataType:"html",success:function(e,t,n){var o=[];$(".b-search-e-inputs-list input:checked").each((function(e,t){$(t).attr("checked","checked"),o.push($(t).parents(".b-search-e-list-item")[0].outerHTML)})),i.html(o.join(" ")+e+'<div style="height: 15px;"></div>'),a.height()<i.height()?(a.css("height","350px"),i.css("position","absolute")):(a.css("height","auto"),i.css("position","relative")),void 0!==a.data("plugin_tinyscrollbar")&&a.data("plugin_tinyscrollbar").update()}})}),180);function l(){e.find("input[type=checkbox]:checked").prop("checked",!1).trigger("change"),e.find("input[type=radio]:checked").prop("checked",!1),e.find("input[type=text]").val(""),e.find("input[name=sex]:checked").eq(0).prop("checked",!0).button("refresh"),a()}return{onCount:function(e){t.add(e)},getCount:i,hideQtip:a,showQtip:d,updateCheckedList:n,reset:l,init:function(){(e=$(".form-sctn-search form")).find("input[name=sex]").button(),a(),$(".menu-show-btn").on("click",(function(){$(this).siblings("ul").toggle()})),$(".openable .bl-name, .openable .open-link").on("click",(function(e){e.stopImmediatePropagation(),$(this).parent().toggleClass("opened")})),$(document).on("click",".act-reset",l),e.on("submit",(function(){a()})),$(document).on("click",".act-close",(function(e){a()})),$(".qtip-sctn-search .btn").on("click",(function(){a()})),e.find("input.number[type=text]").add(".navisort input.number[type=text]").on("keyup.qtip",(function(e){var t=$(this),n=t.val().replace(" ","");""!==n&&$("input.number[type=text][name="+t.attr("name")+"]").val(number_format(parseInt(n),0,"."," "))})),e.find("[name=child]")&&(e.find("[name=child]").on("change.agerow",(function(){var t=e.find("[name=age_min]").parents(".row:last");if(!0===$(this).prop("checked")){var n=e.find("[name=adult]");!0===n.prop("checked")&&n.prop("checked",!1).trigger("change");var a=parseInt(e.find("[name=age_min]").val()),i=parseInt(e.find("[name=age_max]").val());isNaN(a)&&e.find("[name=age_min]").val(0),isNaN(i)&&e.find("[name=age_max]").val(17),t.show()}else t.hide(),e.find("[name=age_min],[name=age_max]").val("")})),e.find("[name=adult]").on("change.agerow",(function(){if(!0===$(this).prop("checked")){var t=e.find("[name=child]");!0===t.prop("checked")&&t.prop("checked",!1).trigger("change"),e.find("[name=age_min],[name=age_max]").val("")}})),e.find("[name=child]").trigger("change.agerow")),e.find("input.number[type=text]").add(".navisort input.number[type=text]").on("keydown.qtip",(function(e){return e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105||8==e.keyCode||46==e.keyCode?(p(e,this),!0):e.keyCode>=35&&e.keyCode<=39||116==e.keyCode||13==e.keyCode||9==e.keyCode||65==e.keyCode&&!0===e.ctrlKey||67==e.keyCode&&!0===e.ctrlKey})),e.find("input[type=checkbox], input[type=radio]").on("change.qtip",(function(e){d(e,this)})),$(document).on("change",".navisort-menu input",(function(e){d(e,this)})),void 0!==$.fn.tinyscrollbar&&e.find(".js-tinyscrollbar-pubhouse").tinyscrollbar(),e.find(".js-b-search-clear-filter").on("click",(function(){$(this).closest(".inputs").find("input[type=checkbox]:checked").prop("checked",!1).first().trigger("change")})),e.find(".b-search-e-list-item input").on("change",(function(){n(this)})),e.find(".js-b-search-pubhouse-input").on("keyup",(function(){u(this)}))}}}();$((function(){"undefined"!=typeof histlab&&histlab.setOpts({outer:"#wrapper-bottom",inner:"#
1inner",before:SectionSearch.hideQtip,callback:SectionSearch.init,loading:!0}),SectionSearch.init()})),$(document).on("click",".js-filter-menu",(function(){var e=$(".b-search-page-menu"),t={tobody:!1};return e.length||(e=$(".search-wrapper")),e.attr("id","search-filters-window-mobile"),t.id=e.attr("id"),overlayWindow(t),!1}));

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.