PageSourceSearch

https://www.admitad.com/wp-content/uploads/cmn-rocket-cache/min/1/…/themes/site/dist/second.js?ver=1789970586

js admitad.com collected 2026-10-01 07:35:35 UTC 11,540 bytes, 1 lines download raw bytes

1!function(){"use strict";var e=function(e){var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},t=function(){$(".tabs--head-label").on("click",function(){var e=$(this).attr("data-id"),t=$(this).closest(".tabs--container").find(".tabs--body");e&&t.find('[data-id="'.concat(e,'"]')).length&&($(this).addClass("active").siblings(".active").removeClass("active"),t.find('[data-id="'.concat(e,'"]')).addClass("active").siblings(".active").removeClass("active"))})};e(t);var n=function(){var e=".snippet__faq--item-body";$(e).length&&$(".snippet__faq--item-head").on("click",function(){var t=$(this).parent(".snippet__faq--item");t.toggleClass("active").find(e).slideToggle(),t.siblings().removeClass("active").find(e).slideUp()})};e(n);var i=function(){var e=0,t=$(".block__target-groups--item-head");t.length&&(t.each(function(t){$(this).css("height","");var n=parseInt($(this).outerHeight());n>e&&(e=n)}),e>0&&t.each(function(){window.innerWidth<1280?$(this).css("height",""):$(this).css("height",e)}))};e(i);var o=function(){var e=".block__hero-logos--swiper";$(e).length&&new Swiper(e,{autoplay:{delay:200,disableOnInteraction:!1},spaceBetween:8,centeredSlides:!0,loop:!0,speed:1e3,allowTouchMove:!1,slidesPerView:"auto"})};function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a,r,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}e(o);var s=function(){var e=document.querySelector(".block__hero-logos"),t=e?e.querySelector(".block__hero-logos--sticky-btn"):null;if(e&&t){var n=document.querySelector(".block__footer"),i={scrolledPast:!1,footerReached:!1},o=function(){var e=i.scrolledPast&&!i.footerReached;t.classList.toggle("block__hero-logos--sticky-btn-visible",e)};new IntersectionObserver(function(e){var t=a(e,1)[0];i.scrolledPast=!t.isIntersecting&&t.boundingClientRect.top<0,o()},{threshold:0}).observe(e),n&&new IntersectionObserver(function(e){var t=a(e,1)[0];i.footerReached=t.isIntersecting,o()},{threshold:0}).observe(n)}};e(s);var c=function(){var e=".block__reviews--swiper",t=".block__reviews--swiper-nav";$(e).length&&new Swiper(e,{loop:!1,pagination:{el:".block__reviews--swiper-pagination",clickable:!0},navigation:{nextEl:"".concat(t,"-next"),prevEl:"".concat(t,"-prev")},breakpoints:{300:{slidesPerView:"auto",spaceBetween:20},1280:{slidesPerView:3,spaceBetween:32}}})};e(c);var l=function(){var e=".block__logos-carousel--swiper";$(e).length&&new Swiper(e,{autoplay:{delay:200,disableOnInteraction:!1},spaceBetween:8,centeredSlides:!0,loop:!0,speed:1e3,allowTouchMove:!1,slidesPerView:"auto"})};e(l);var u=function(){var e=".block__solutions-carousel--swiper",t=".block__solutions-carousel--swiper-nav";$(e).length&&new Swiper(e,{slidesPerView:"auto",loop:!1,pagination:{el:".block__solutions-carousel--swiper-pagination",clickable:!0},navigation:{nextEl:"".concat(t,"-next"),prevEl:"".concat(t,"-prev")},breakpoints:{300:{spaceBetween:20},1280:{spaceBetween:32}}})};e(u);var d=function(){var e=".block__carousel-blog--swiper",t=".block__carousel-blog--swiper-nav";$(e).length&&new Swiper(e,{loop:!1,pagination:{el:".block__carousel-blog--swiper-pagination",clickable:!0},navigation:{nextEl:"".concat(t,"-next"),prevEl:"".concat(t,"-prev")},breakpoints:{300:{slidesPerView:"auto",spaceBetween:20},1280:{slidesPerView:4,spaceBetween:32}}})};e(d);var f=function(){var e=".block__carousel-cases--swiper",t=".block__carousel-cases--swiper-nav";$(e).length&&new Swiper(e,{loop:!1,pagination:{el:".block__carousel-cases--swiper-pagination",clickable:!0},navigation:{nextEl:"".concat(t,"-next"),prevEl:"".concat(t,"-prev")},breakpoints:{300:{slidesPerView:"auto",spaceBetween:20},1280:{slidesPerView:4,spaceBetween:32}}})};e(f);var h=function(){$('[data-action="grid-sort"] .grid-sort--btn').on("click",function(){var e=$
1(this).closest('[data-action="grid-sort"]'),t=$(this).attr("data-filter");if(e.length){var n=e.find('[data-items="grid-sort-box"] .grid-sort-item');n.length&&(n.each(function(e){"all"===t||$(this).hasClass(t)?$(this).show():$(this).hide()}),$(this).addClass("active"),$(this).siblings().removeClass("active"))}})};e(h);var v=function(){var e=$(".page__default--privacy-nav-box");if(e.length){var t=e.find(".current-menu-item a"),n=e.find(".page__default--privacy-nav-box-head");t.length&&n.html(t.text()),$(n).on("click",function(){$(this).toggleClass("active"),$(this).siblings("nav").slideToggle()}),$(".page__default--privacy-nav-box a").on("click",function(){n.html($(this).text()),window.innerWidth<768&&$(this).closest("nav").slideUp()})}};e(v);var p=function(){setTimeout(function(){var e=document.querySelectorAll(".table__calc .block__publisher-table--cell-calc");if(0!==e.length){var t=0;e.forEach(function(e){e.style.width="";var n=e.offsetWidth;n>t&&(t=n)}),e.forEach(function(e){e.style.width="".concat(t,"px")})}},300)};function g(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="expires="+i.toUTCString();document.cookie=e+"="+t+";"+o+";path=/"}e(p);var w=function(){var e="cmn-geo",t=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(8,o.length)}return""}(e);t?"RU"===t&&b():fetch(template.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:template.actions.geo,nonce:template.nonce})}).then(function(e){return e.json()}).then(function(t){t&&t.success&&t.data&&t.data.country_code?("RU"===t.data.country_code&&b(),g(e,t.data.country_code,1)):(console.log("GeoIp error"),g(e,"empty",1))}).catch(function(t){console.log("Error:",t),g(e,"empty",1)})};function b(){var e=["/sso/login/","/aboard/registration/","/webmaster/registration/"];document.querySelectorAll("a[href]").forEach(function(t){var n=function(e,t){try{var n=new URL(e,location.origin);if("store.admitad.com"===n.hostname&&t.some(function(e){return n.pathname.endsWith(e)}))return n.searchParams.set("sso_client","ru"),n.toString()}catch(e){}return e}(t.href,e);n!==t.href&&(t.href=n)})}e(w);var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"init",t=$(".block__plans");if(t.length){var n=$(".block__plans--item-head"),i=0;n.each(function(e){$(this).css("height","");var t=parseInt($(this).outerHeight());t>i&&(i=t)}),i>0&&n.each(function(){window.innerWidth<768?$(this).css("height",""):$(this).css("height",i)}),"init"===e&&$(".block__plans--switch p").on("click",function(){t.attr("data-price",$(this).attr("data-price")),$(this).addClass("active").siblings().removeClass("active")})}};e(_);var m=function(){var e=".block__video-cards--init",t=".block__video-cards--swiper-nav";if($(e).length){var n=new Swiper(e,{loop:!1,slidesPerView:"auto",centeredSlides:!0,pagination:{el:".block__video-cards--swiper-pagination",clickable:!0},initialSlide:$(e).attr("data-index"),navigation:{nextEl:"".concat(t,"-next"),prevEl:"".concat(t,"-prev")},on:{init:function(){window.innerWidth>=1280&&y(document.querySelector("".concat(e," .swiper-slide-active")))}},breakpoints:{300:{spaceBetween:20},1280:{spaceBetween:32}}});document.querySelector(".block__video-cards--init .swiper-wrapper").addEventListener("click",function(e){var t=e.target.closest(".swiper-slide");if(t){var i=Array.from(document.querySelectorAll(".block__video-cards--init .swiper-slide")).indexOf(t);i>=0&&n.slideTo(i,400)}}),n.on("slideChangeTransitionEnd",function(){document.querySelectorAll(".block__video-cards--init .swiper-slide").forEach(function(e){y(e)})}),$("".concat(e," .swiper-slide img")).on("click",function(){var e=$
1(this).closest(".swiper-slide");e.hasClass("swiper-slide-active")&&y(e[0])})}};function y(e){var t=e.querySelector("video"),n=e.querySelector("img");e.classList.contains("swiper-slide-active")?(t.style.display="block",n.style.display="block",t.addEventListener("timeupdate",function e(){t.currentTime>0&&t.removeEventListener("timeupdate",e)}),t.play().catch(function(e){return console.warn("Video play error",e)})):(t.pause(),t.currentTime=0,t.style.display="none",n.style.display="block")}e(m);var k=function(){var e=document.querySelectorAll(".block__stage-carousel--scroll");e.length&&e.forEach(x)};function x(e){var t=e.querySelector(".block__stage-carousel--sticky"),n=e.querySelector(".block__stage-carousel--track"),i=Array.from(e.querySelectorAll(".block__stage-carousel--slide"));if(t&&n&&!(i.length<2)){var o=i[0],a=i[i.length-1],r=function(e){return e.offsetLeft+e.offsetWidth/2},s=function(){return Math.max(0,r(a)-r(o))},c=100,l=function(){var n=t.offsetHeight;c=Math.round(Math.max(0,Math.min(100,(window.innerHeight-n)/2))),e.style.setProperty("--stage-pin-top","".concat(c,"px")),e.style.setProperty("--stage-sticky-h","".concat(n,"px")),e.style.setProperty("--stage-scroll-len","".concat(s(),"px"))},u=-1,d=function(){var o,a,r=(o=e.offsetHeight-t.offsetHeight,a=-e.getBoundingClientRect().top+c,o>0?Math.min(1,Math.max(0,a/o)):0);n.style.transform="translate3d(".concat(-r*s(),"px, 0, 0)");var l=Math.floor(r*(i.length-1)+1e-6);l!==u&&(u=l,i.forEach(function(e,t){e.classList.toggle("is-current",t===l),e.classList.toggle("is-passed",t<l)}))},f=!1;l(),d(),window.addEventListener("scroll",function(){f||(f=!0,requestAnimationFrame(function(){f=!1,d()}))},{passive:!0});var h=0,v=0,p=0,g=null,w=!1;t.addEventListener("touchstart",function(n){if(1===n.touches.length){var i,o,a=n.touches[0];h=p=a.clientX,v=a.clientY,g=null,i=e.offsetHeight-t.offsetHeight,o=-e.getBoundingClientRect().top+c,w=!(o<0)&&o<=i}else w=!1},{passive:!0}),t.addEventListener("touchmove",function(e){if(w&&1===e.touches.length){var t=e.touches[0];if(null===g){var n=Math.abs(t.clientX-h),i=Math.abs(t.clientY-v);if(Math.max(n,i)<8)return;g=n>i?"x":"y"}if("x"===g){e.cancelable&&e.preventDefault();var o=p-t.clientX;p=t.clientX,window.scrollTo({top:window.scrollY+o,behavior:"instant"})}}},{passive:!1});var b=function(){l(),d()};window.addEventListener("resize",b),window.ResizeObserver&&new ResizeObserver(b).observe(n)}}e(k);var S=function(){var e=document.querySelector(".block__hero-flow--logos-box");e&&new InfiniteMarquee({element:e,speed:e.dataset.speed,smoothEdges:!0,pauseOnHover:!1,duplicateCount:1,spaceBetween:"8px"})};e(S),jQuery(window).on("load",function(e){t(),n(),i(),o(),S(),s(),c(),l(),u(),d(),f(),f(),h(),v(),p(),w(),_(),m(),k(),window.formEventManager.on("ajax_success",function(e,t,n){try{n.length&&"HeroBanner"===n.attr("data-id")&&(n.hide(),n.siblings(".block__hero-logos--form-success").show())}catch(e){}})}),jQuery(window).on("resize",function(e){i(),p(),_("resize")})}()

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.