PageSourceSearch

https://dialog-changanauto.ru/static/js/dealer.js?v=1774430732

js dialog-changanauto.ru collected 2026-10-07 16:46:57 UTC 17,550 bytes, 2 lines download raw bytes

1(()=>{var e={8480(){$(document).ready(function(){var e=$(".hamburger"),t=$(".dealer-hamburger"),n=$(".dealer-header"),s=!1;t.click(function(){s||(s=!0,e.hasClass("is-active")&&e.click(),$(this).toggleClass("is-active"),$("body").toggleClass("no-scroll menued"),n.toggleClass("active"),setTimeout(function(){return s=!1},550))})})},466(){$(document).ready(function(){var e=$(".header"),t=$(".dealer-header");scrollClass="header_scrolled";var n=t.outerHeight();e.css("top",n+"px");var s=function(){if($(window).width()>768?e.css({top:Math.max(0,70-$(document).scrollTop())}):e.css({top:0}),$(window).scrollTop()>e.height()){if(t.hasClass(scrollClass))return;t.addClass(scrollClass)}else e.css("top",n+"px"),t.removeClass(scrollClass)};s(),$(window).on("scroll",s),$(window).on("resize",s)})},5113(e,t,n){"use strict";n.r(t),n.d(t,{animateScroll:()=>s});var s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];$("html, body").animate({scrollTop:n||e.offset().top},t)}},7607(){Array.prototype.remove=function(e,t){var n=this.slice((t||e)+1||this.length);return this.length=e<0?this.length+e:e,this.push.apply(this,n)}},5455(e,t,n){"use strict";n.r(t),n.d(t,{clear:()=>c,empty:()=>r,makeid:()=>i,preg_quote:()=>l,preparePhone:()=>o,prepareSite:()=>d});var s=n(8287);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var r=function(e){return""===e||0===e||!1===e||null==e||0===e.length||"object"===a(e)&&0===Object.keys(e).length};function i(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=0;s<e;s++)t+=n.charAt(Math.floor(62*Math.random()));return 0!==$(document).find("#"+t).length?i(e):t}function o(e){return e.replace(/\s/g,"").replace(/-/g,"").replace(/\(/g,"").replace(/\)/g,"")}function l(e,t){return(e+"").replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\"+(t||"")+"-]","g"),"\\$&")}function c(e){e.find("input:not([type=hidden]), textarea").val(""),e.find("select").val(""),s.A.get(e).updateAll()}function d(e){var t=new RegExp("https?://([^/]+)/?$");return e?e.match(t).length?e.match(t)[1]:e:""}},4180(e,t,n){"use strict";function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,r(s.key),s)}}function r(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=s(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}n.d(t,{A:()=>i});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,s=[{key:"get",value:function(t,n){return e.setGlobal(),window.Registry.instances[n]?window.Registry.instances[n][t]:null}},{key:"set",value:function(t,n,s){return e.setGlobal(),window.Registry.instances[n]=window.Registry.instances[n]||{},window.Registry.instances[n][t]=s,window.Registry}},{key:"forget",value:function(t,n){return e.setGlobal(),void 0!==window.Registry.instances[n]&&delete window.Registry.instances[n][t],window.Registry}},{key:"setGlobal",value:function(){void 0===window.Registry&&(e.instances={},window.Registry=e)}}],(n=null)&&a(t.prototype,n),s&&a(t,s),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,s}()},8287(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(4180),a=n(5455);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var s=0,a=function(){};return{s:a,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw r}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function l(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,c(s.key),s)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var d=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=t,this.obj="string"==typeof t?$(this.selector):this.selector,this.select=this.obj.find("select:not([multiple])"),this.multiSelect=this.obj.find("select[multiple]"),this.onchanges=[],this.width=this.obj.width(),this.i(),this}return t=e,n=[{key:"i",value:function(){if(!this.obj.hasClass("initialized"))return this.initSelect(),this.initMultiSelect(),this.addEvents(),this.addClasses(),this}},{key:"updateAll",value:function(){var e=this;return this.select.each(function(){e.update($(this))}),this.multiSelect.each(function(){e.update($(this))}),this}},{key:"update",value:function(e){return this.makeList(e,!!e.attr("multiple")),this.addClasses(),this.checkSelectVal(e.parent().find(".select-list")),e.change(),this}},{key:"initSelect",value:function(){if(this.select.length){var e=this;return e.select.each(function(){e.makeList($(this),!1)}),this}}},{key:"initMultiSelect",value:function(){if(this.multiSelect.length){var e=this;return e.multiSelect.each(function(){e.makeList($(this),!0)}),this}}},{key:"makeList",value:function(e,t){e.parent().find(".select__arrow").remove();var n="1"===e.data("simple")?" simple":"";e.attr("select-class")&&(n+=" "+e.attr("select-class"));var s='<div class="select-head'.concat(n,'" \n            data-text="').concat(e.parent().find("legend").text(),'" ').concat(e.attr("disabled")?" disabled":"",">\n            ").concat(e.parent().find("legend").html(),"\n            </div>"),a='<div class="select select--single" >',r="</div></div></div>";return e.data("input")&&(s='<div class="select__arrow"></div><input placeholder="'.concat(e.parent().find("legend").text(),'" \n                type="').concat(e.data("input-type")?e.data("input-type"):"text",'" \n                class="select-head searchbar" \n                data-text="').concat(e.parent().find("legend").text(),'" \n                autocomplete="off" \n                ').concat(e.attr("disabled")?"disabled":"",">"),e.parent().addClass("arrowed")),t&&(a='<div class="select select--multi" >'),e.data("searchbar")&&(a+='<div class="select__searchbar"><input type="text" class="searchbar" placeholder="Введите.."></div>',r='</div></div><div class="select__buttons"><div class="btn btn-small btn-apply">Применить</div><div class="btn btn-reset btn-small btn-apply">Сбросить фильтр</div></div></div>'),a=s+(a+='<div class="select-list-wrap"><div class="select-list">'),a+=this.addHtml(e),a+=r,e.parent().find(".select-head, .select").remove(),$(a).insertAfter(e),this.countElements(e.siblings(".select"),!1,!0),this}},{key:"addHtml",value:function(e){var t=e.children("option"),n=e.children("optgroup"),s="",a=this;return t.each(function(){s+=a.addOption($(this))}
1),n.each(function(){var e=$(this).attr("data-checkbox")?'<div class="checkmark"></div>':"",t=$(this).attr("data-checkbox")?" select-group--simple":"";s+='<div class="select-group--head select__item'.concat(t,'">').concat(e).concat($(this).attr("label"),"</div>"),s+='<div class="select-group">',s+=a.addHtml($(this)),s+="</div>"}),s}},{key:"addOption",value:function(e){var t=e.attr("selected")?"selected":"",n=e.data("url")?'data-url="'.concat(e.data("url"),'" '):"",s='<div class="checkmark__box"></div>',a="";return"false"===e.attr("data-check")?(s="",t+=" select__item--nop"):t+=" checkmark",e.data("footnote")&&(a='<br><span class="select__item-footnote">'.concat(e.data("footnote"),"</span>")),'<div class="select__item '.concat(t,'" \n            ').concat(n,'\n            data-value="').concat(e.val(),'">\n            ').concat(s,"\n            ").concat(e.html(),"\n            ").concat(a,"\n            </div>")}},{key:"addEvents",value:function(){var e=this.obj.attr("id"),t=this;return $(document).on("click","#"+e+" .select-head",function(){$(this).attr("disabled")||($(this).hasClass("open")||$(this).parents("form").find(".select, .arrowed, .select-head, .select__arrow").removeClass("open"),t.checkSelectPosition($(this)),$(this).toggleClass("open"),$(this).parent().find(".select__arrow").toggleClass("open"),$(this).parent().find(".select").toggleClass("open"),$(this).parents(".arrowed").eq(0).toggleClass("open"))}),$(document).on("click","#"+e+" .select--single .select__item",function(){$(document).find(".select-head").attr("disabled",!1),$(this).hasClass("selected")?($(this).removeClass("selected"),$(this).parents(".form-group").find("select").val("").trigger("change")):($(this).parents(".select").find(".selected").removeClass("selected"),$(this).addClass("selected"),$(this).parents(".form-group").find("select").val($(this).data("value")).trigger("change"),function(){var e=!0;try{var t="__ls_test";window.localStorage.setItem(t,t),window.localStorage.removeItem(t)}catch(t){e=!1,console.warn("localStorage not available:",t)}return{getItem:function(t){return e?window.localStorage.getItem(t):null},setItem:function(t,n){if(e)try{window.localStorage.setItem(t,n)}catch(e){}},removeItem:function(t){if(e)try{window.localStorage.removeItem(t)}catch(e){}}}}().setItem("mapCityId",$(this).parents(".form-group").find("select").val()),window.dispatchEvent(new CustomEvent("mapCityIdChange",{detail:{value:$(this).parents(".form-group").find("select").val()}}))),$(this).parents(".form-group").find(".open").removeClass("open"),t.countElements($(this).parents(".select"),!0);var e,n=i(t.onchanges);try{for(n.s();!(e=n.n()).done;){var s=e.value;t.onchanges[s]($(this),$(this).parents(".form-group").eq(0).children("select"))}}catch(e){n.e(e)}finally{n.f()}$(this).parents(".form-group").find(".select-head").removeClass("error"),$(this).parents(".form-group").find("label.error").remove(),$(this).parents(".select-head").attr("disabled",!1)}),$(document).on("click","#"+e+" .select--multi .select__item",function(){var e=[];""===$(this).attr("data-value")&&$(this).parents(".select").find(".selected").removeClass("selected"),$(this).hasClass("select-group--head")&&($(this).hasClass("selected")?$(this).next().find(".select__item").removeClass("selected"):$(this).next().find(".select__item").addClass("selected")),$(this).toggleClass("selected"),$(this).parents(".select").find(".selected").each(function(t,n){$(n).hasClass("select-group--head")||e.push($(n).attr("data-value"))}),e.indexOf("")+1&&e.length>1&&(e.splice(e.indexOf(""),1),$(this).parents(".select").find('[data-value=""]').removeClass("selected")),$(this).parent(".select-group").length&&($(this).parent(".select-group").children().length!==$(this).parent(".select-group").find(".selected").length?$(this).parent().prev().removeClass("selected"):$(this).parent().prev().addClass("selected")),$(this).parents(".form-group").find("select").val(e).change(),t.countElements($(this).parents(".select")),$(this).parents(".form-group").find(".select-head").removeClass("error"),$(this).parents(".form-group").find("label.error").remove()}),$(document).on("click","#"+e+"input:not(.searchbar):not(.select-head)",function(){$(this).parents("form").find(".select").removeClass("open"),$(this).parents("form").find(".select-head").removeClass("open")}),$(document).on("click","#"+e+" input.searchbar",function(){$(this).parent().find(".select__item").show()}),$(document).click(function(t){var n=$("body").find("#"+e+" .select-head.open");if(n.length){var s=$(t.target);s.parents("#"+e+" .select").length||s.hasClass("open")||n.click()}}),$(document).on("input","#"+e+" .searchbar",function(e){e.preventDefault(),e.stopImmediatePropagation(),$(this).hasClass("open")||$(this).click();var t=$(this).parents(".form-group").find(".select__item"),n=$(this).val().replace("(","\\(").replace(")","\\)").replace(".","\\.").replace("\\","\\\\"),s=new RegExp(n,"gi"),a=0;t.each(function(){$(this).text().match(s)?(a++,$(this).show()):$(this).hide()}),a?$(this).parent().find(".select").show():$(this).parent().find(".select").hide()}),$(window).trigger("resize"),this.obj.find(".select-list").each(function(){t.checkSelectVal($(this))}),this}},{key:"checkSelectVal",value:function(e){var t=0;return e.find(".select__item").each(function(){$(this).hasClass("selected")&&t++}),t||e.parents(".form-group").find("select").val([]),this}},{key:"checkSelectPosition",value:function(e){var t=$("body").innerHeight,n=e.parents(".form-group");return t-(n.offset().top+n.height())<n.find(".select").get(0).scrollHeight?n.find(".select").addClass("select--top"):n.find(".select").removeClass("select--top"),this}},{key:"countElements",value:function(e,t,n){var s=e.find(".selected:not(.select-group--head)"),r=s.length,i=e.parents(".form-group").find(".select-head"),o=s.find(".select__item-footnote").text().length,l=i.hasClass("searchbar"),c="",d=e.parents(".form-group").find("select").data("footnote");return n?(0,a.empty)(s.data("value"))?(c=s.length?""===s.data("value")?i.data("text"):s.text().substr(0,s.text().length-o):i.data("text"),i.html((void 0===d?"":'<span class="footnote">'+d+"</span>")+c)):r>1?i.text("Выбрано "+r):"INPUT"===i[0].tagName?i.val(s.text().trim()):i.html((void 0===d?"":'<span class="footnote">'+d+"</span>")+s.text().substr(0,s.text().length-o).trim()):t?r&&""!==s.data("value")?(c=s.text().substr(0,s.text().length-o).trim(),l?"number"===i.attr("type")&&c.match(/\D/g)?i.prop("value",""):i.val(c):i.html((void 0===d?"":'<span class="footnote">'+d+"</span>")+c)):(c=i.data("text").trim(),l?"number"===i.attr("type")&&c.match(/\D/g)?i.prop("value",""):i.val(c):i.html((void 0===d?"":'<span class="footnote">'+d+"</span>")+c)):1===r?""===s.data("value")?(c=i.data("text"),l?"number"===i.attr("type")&&c.match(/\D/g)?i.prop("value",""):i.val(c):i.html((void 0===d?"":'<span class="footnote">'+d+"</span>")+c)):(c=s.text().substr(0,s.text().length-o).trim(),l?"number"===i.attr("type")&&c.match(/\D/g)?i.prop("value",""):i.val(c):i.html((void 0===d?"":'<span class="footnote">'+d+"</span>")+c)):r>1?i.text("Выбрано "+r):(i.text(i.data("text")),e.parent().find('[data-value=""]').addClass("selected")),this}},{key:"addClasses",value:function(){return this.obj.addClass("initialized"),this.select.addClass("initialized"),this.multiSelect.addClass("initialized"),this.select.find(".select__item").addClass("initialized"),this.multiSelect.find(".select__item").addClass("initialized"),this.obj.find(".none").removeClass("none"),this}},{key:"onChange",value:function(e){this.onchanges.push(e)}}],r=[{key:"get",value:function(t){var n=s.A.get("Select",t);return n||(n=new e(t),s.A.set("Select",t,n),n)}}],n&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();window.Select=d;const u=d},8999(e,t,n){var s={"./_dealer-hamburger.js":8480,"./_dealer-header.js":466};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}a.keys=function(){return Object.keys(s)},a.resolve=r,e.exports=a,a.id=8999},4543(e,t,n){var s={"./animate.js":5113,"./array.js":7607,"./functions.js":5455};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}a.keys=function(){return Object.keys(s)},a.resolve=r,e.exports=a,a.id=4543}},t={};function n(s){var a=t[s];if(void 0!==a)return a.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})};var s=n(4543);s.keys().forEach(function(e){s(e)}),function(){"use strict";window.fuckIE=!!window.MSInputMethodContext&&!!document.documentMode;var e=n(8999);e.keys().forEach(function(t){e(t)})}()})();
2//# sourceMappingURL=dealer.js.map

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.