PageSourceSearch

https://senla.ru/wp-content/themes/senla-wp-master/assets/js/build/main.min.js?ver=1790687065

js senla.ru collected 2026-10-09 05:25:30 UTC 62,017 bytes, 2 lines download raw bytes

1"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var o,n,r,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return n=!(o=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){n=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(n)throw r}}};if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var o;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(o="Object"===(o=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}!function(){gsap.config({nullTargetWarn:!1}),window.App={},App.config={headroom:{enabled:!0,options:{classes:{initial:"headroom",pinned:"is-pinned",unpinned:"is-unpinned",top:"is-top",notTop:"is-not-top",bottom:"is-bottom",notBottom:"is-not-bottom",frozen:"is-frozen"}}},ajax:{enabled:!0},cursorFollower:{enabled:!0,disableBreakpoint:"992"}},App.html=document.querySelector("html"),App.body=document.querySelector("body"),App.SMcontroller=new ScrollMagic.Controller,App.config.headroom.enabled&&(App.headroom=new Headroom(document.querySelector(".js-header"),App.config.headroom.options)),window.onload=function(){CustomEase.create("quart.out","0.25, 1, 0.5, 1"),CustomEase.create("quart.inOut","0.76, 0, 0.24, 1"),gsap.registerEffect({name:"mastheadShapes",effect:function(e,t){return gsap.fromTo(e,{opacity:0,y:t.y},{ease:t.easing,duration:t.duration,opacity:1,y:"0%"})},extendTimeline:!0,defaults:{easing:"quart.out",duration:3,y:"90%"}}),gsap.registerEffect({name:"uiElementsAnimate",effect:function(e,t){var o,n,r;if(document.querySelector(".js-header-logo")&&(o=document.querySelector(".js-header-logo")),document.querySelector(".js-header-menu")&&(n=document.querySelector(".js-header-menu")),document.querySelector(".js-ui")&&(r=document.querySelectorAll(".js-ui")),o||n||r)return gsap.fromTo([o,n,r],{y:t.y,opacity:0},{ease:t.easing,duration:t.duration,y:"0px",opacity:1})},extendTimeline:!0,defaults:{easing:"quart.out",duration:.8,y:"30px"}}),gsap.registerEffect({name:"mastheadBackground",effect:function(e,t){return gsap.fromTo(e,{scale:1.4,opacity:0},{ease:"quart.inOut",duration:1.4,scale:1,opacity:1})},extendTimeline:!0}),V.init(),App.config.headroom.enabled&&App.headroom.init(),App.config.cursorFollower.enabled&&Q.init(),document.fonts.ready.then(function(){N.init(),document.querySelector(".js-lazy")&&new LazyLoad({elements_selector:".js-lazy"}),(t=App.body.classList.contains("page-reveal-off")?document.querySelectorAll("[data-split='lines']:not([data-split-page-reveal])"):document.querySelectorAll("[data-split='lines']")).length&&t.forEach(function(e){var t;0<e.querySelectorAll("* > *:not(br):not(span)").length&&(t=e.querySelectorAll("* > *:not(br):not(span)")),new SplitText(t,{type:"lines",linesClass:"overflow-hidden"}),t.forEach(function(e){e=e.querySelectorAll(".overflow-hidden");new SplitText(e,{type:"lines",linesClass:"split__line"})}),gsap.set(e.querySelectorAll(".split__line"),{y:"100%"})});var e,t=document.querySelector(".js-backButton");t&&(e=window.document.documentElement,t.addEventListener("click",function(){gsap.to(e,{duration:e.scrollTop<1600?1:2.2,ease:"power2.inOut",scrollTo:0})}),new ScrollMagic.Scene({offset:"400px"}).setClassToggle(t,"is-visible").addTo(App.SMcontroller));var o,t=document.querySelector(".js-ui-scroll-button"),t=(t&&(o=document.querySelector("section:nth-of-type(2)"),t.addEventListener("click",function(){gsap.to(window.document.documentElement,{duration:1,ease:"power2.inOut",scrollTo:o.offsetTop})})),document.querySelectorAll(".js-scroll-to-id")),u=(t.length&&t.forEach(function(t){t.addEventListener("click",function(e){e.preventDefault();e=t.getAttribute("href"),e=document.querySelector("#".concat(e.slice(1)));gsap.to(window.document.documentElement,{duration:1.2,ease:"power2.inOut",scrollTo:e.offsetTop})})}
1),document.querySelectorAll(".js-section-slider"));if(u.length)for(var d=0;d<u.length;d++)!function(){var e=u[d],t=0,o=!1,n=!1,r=!1,i=!1,i=(e.getAttribute("data-gap")&&(t=e.getAttribute("data-gap")),e.hasAttribute("data-loop")&&(o=!0),e.hasAttribute("data-center")&&(n=!0),e.hasAttribute("data-dynamic")&&(i=!0),e.hasAttribute("data-pagination")&&(r={el:e.querySelector(".js-pagination"),bulletClass:"pagination__item",bulletActiveClass:"is-active",bulletElement:"div",clickable:!0,dynamicBullets:i}),e.getAttribute("data-slider-col").split(" ")),a=1,c=1,s=1,l=1;i.forEach(function(e){e.includes("base")&&(a=e.slice(-1)),e.includes("lg")&&(c=e.slice(-1)),e.includes("md")&&(s=e.slice(-1)),e.includes("sm")&&(l=e.slice(-1))}),new Swiper(e,{speed:800,autoHeight:!0,spaceBetween:parseInt(t),centeredSlides:n,parallax:!0,touchEventsTarget:"wrapper",loop:o,lazy:{loadPrevNext:!0},slidesPerView:parseInt(a),breakpoints:{1199:{slidesPerView:parseInt(c)},991:{slidesPerView:parseInt(s)},767:{slidesPerView:parseInt(l)}},navigation:{prevEl:e.querySelector(".js-prev"),nextEl:e.querySelector(".js-next")},pagination:r})}();feather.replace(),GLightbox({autoplayVideos:!1,touchNavigation:!1}),(t=gsap.timeline()).preloaderInitial(),t=D.init(t)})};e=document.querySelector(".js-preloader"),n=e.querySelector(".preloader__bg"),M=e.querySelector(".preloader__progress"),B=e.querySelector(".preloader__progress__inner");var e,n,M,B,r,i,F,W,P,a,c,s,Y,V={init:function(){e&&(gsap.registerEffect({name:"preloaderInitial",effect:function(e,t){document.documentElement.classList.add("html-overflow-hidden");var o=gsap.timeline();return document.body.classList.contains("preloader-visible")?o.fromTo(B,{},{scaleY:1,ease:"none",duration:1,delay:.3,onStart:function(){n.classList.add("origin-top")}}).to(M,{duration:.5,ease:"quart.inOut",opacity:0,scale:.75},">-0.1").to(n,{ease:"quart.inOut",duration:.6,scaleY:0,onComplete:function(){document.documentElement.classList.remove("html-overflow-hidden");var e=new URL(location.href).hash;e&&document.getElementById(e.substring(1)).scrollIntoView({behavior:"smooth",block:"start"})}},">-0.5"):(document.documentElement.classList.remove("html-overflow-hidden"),o)},extendTimeline:!0}),gsap.registerEffect({name:"preloaderHide",effect:function(e,t){return gsap.timeline().to(M,{delay:.15,duration:.5,ease:"quart.inOut",opacity:0,scale:.75,onStart:function(){n.classList.add("origin-top")}}).to(n,{ease:"quart.inOut",duration:.6,scaleY:0,onComplete:function(){document.documentElement.classList.remove("html-overflow-hidden"),document.documentElement.classList.remove("overflow-hidden"),document.body.classList.remove("overflow-hidden")}},">-0.5")},extendTimeline:!0}))}},N=(Y=gsap.timeline(),{init:function(){var o,e;r=document.querySelector(".js-nav-inner"),a=document.querySelector(".js-header-menu"),r&&a&&(i=r.querySelector(".js-nav-bg"),F=r.querySelector(".js-navList"),W=r.querySelectorAll(".js-navList > li > a"),P=r.querySelectorAll(".js-navInfo-item"),c=a.querySelector(".js-nav-open"),s={top:c.querySelector(".header__top-line"),middle:c.querySelector(".header__middle-line"),bottom:c.querySelector(".header__bottom-line")}),(e=document.querySelectorAll(".js-navList .menu-item-has-children")).length&&e.forEach(function(r){var e=r.querySelector("li > a");e.removeAttribute("href"),e.addEventListener("click",function(){var e,t,o=r.parentElement,n=r.lastElementChild;t=n,n=(e=o).children,n=(n=Array.from(n)).map(function(e){return e.querySelector("li > a")}),o=t.children,o=(o=Array.from(o)).map(function(e){return e.querySelector("li > a")}),Y.clear().to(n,{ease:"quart.out",stagger:-.04,duration:1,y:"100%",onStart:function(){t.classList.add("is-visible"),e.classList.remove("is-visible")}}).to(o,{ease:"quart.out",stagger:.08,duration:1.2,y:"0%"},">-0.6")})}),a&&(o=!1,a.addEventListener("click",function(){var e,t;o?(App.config.headroom.enabled&&App.headroom.unfreeze(),e=r.querySelector(".is-visible"),t=r.querySelectorAll(".is-visible > li > a"),gsap.timeline().to(t,{ease:"quart.out",duration:.8,y:"-100%",onStart:function(){e.classList.remove("is-visible"),i.classList.add("origin-top")}},">-0.4").to(P,{opacity:0,y:"-34px",ease:"quart.out",duration:.8},"<").to(i,{ease:"quart.inOut",duration:.8,scaleY:0,onStart:function(){document.body.style.overflowY="visible",a.classList.remove("closeMode"),s.top.style.backgroundColor="",s.bottom.style.backgroundColor="",c.style.scale="initial"},onComplete:function(){a.classList.remove("pointer-events-none"),i.classList.remove("origin-top"),r.classList.remove("is-active")}},">-0.6").to(s.middle,{opacity:1,onStart:function(){s.top.classList.remove("closeMode"),s.bottom.classList.remove("closeMode")}})):(App.config.headroom.enabled&&App.headroom.freeze(),r.classList.add("is-active"),gsap.timeline().set(W,{opacity:1}).to(s.middle,{opacity:0,onStart:function(){s.top.classList.add("closeMode"),s.bottom.classList.add("closeMode")}}).fromTo(i,{scaleY:0},{scaleY:1,duration:.7,ease:"quart.inOut",onComplete:function(){document.body.style.overflowY="hidden",a.classList.add("closeMode"),s.top.style.backgroundColor="#fff",s.bottom.style.backgroundColor="#fff",c.style.scale=2.3}}).fromTo(W,{y:"100%"},{ease:"quart.out",stagger:.08,duration:1.2,y:"0%"},">-0.7").fromTo(P,{opacity:0,y:"34px"},{ease:"quart.out",stagger:.08,duration:1,opacity:1,y:"0px",onComplete:function(){F.classList.add("is-visible")}},"<")),o=!o}
1)),(e=document.querySelector(".js-header"))&&new ScrollMagic.Scene({offset:"2px"}).setClassToggle(e,"is-sticky").addTo(App.SMcontroller)}});var D={init:function(e){var t,o,n,r,i,a,c,s,l,u,d,f,m,y,p,v,_,h,g,q,b,S,L;return document.querySelector(".page-reveal-off")||(document.querySelector(".js-slider-full-page")?App.html.classList.add("full-page-slider"):App.html.classList.remove("full-page-slider"),(document.querySelector(".js-page-header")||document.querySelector(".js-masthead-type-1")||document.querySelector(".js-masthead-type-2")||document.querySelector(".js-masthead-type-3")||document.querySelector(".js-masthead-type-4")||document.querySelector(".js-masthead-type-work-1")||document.querySelector(".js-masthead-blog-article"))&&ie.init(),b=e,document.querySelector(".js-masthead-type-1")&&(n=!1,i=(t=document.querySelector(".js-masthead-type-1")).querySelector(".js-text"),a=t.querySelector(".js-button"),t.querySelector(".js-title")&&(n=t.querySelectorAll(".js-title .split__line")),r={stagger:.1,duration:1.2,ease:"quart.out",y:"0%"},c={stagger:.1,duration:1,ease:"quart.out",y:"0%",opacity:1},gsap.set([i,a],{y:"35px",opacity:0}),t.classList.contains("js-shapes")&&(o=t.querySelectorAll(".js-shape"),b.mastheadShapes(o,">-0.7").to(n,r,">-2.3").to([i,a],c,">-0.8").uiElementsAnimate(null,">-0.8")),t.classList.contains("js-bg"))&&(o=t.querySelector(".js-bg-item"),b.mastheadBackground(o,">-0.0").to(n,r,">-0.5").to([i,a],c,">-0.8").uiElementsAnimate(null,">-0.8")),t=e,document.querySelector(".js-masthead-type-2")&&(o=(b=document.querySelector(".js-masthead-type-2")).querySelectorAll(".js-shape"),n=b.querySelector(".js-bg-item"),r=b.querySelector(".js-title"),i=b.querySelector(".js-text"),b=b.querySelector(".js-button"),a=">-0.1",o.length?(t.mastheadShapes(o,">-0.2"),t.uiElementsAnimate(null,">-2.5"),a=">-0.9"):n&&(t.mastheadBackground(n,">-0.8"),t.uiElementsAnimate(null,">-0.1"),a=">-0.1"),t.fromTo(r.querySelectorAll(".split__line"),{y:"100%"},{stagger:.12,duration:1.4,ease:"quart.out",y:"0%"},a).fromTo(i.querySelectorAll(".split__line"),{y:"100%"},{stagger:.08,duration:1.2,ease:"quart.out",y:"0%"},">-0.8").fromTo(b,{y:"100%"},{ease:"quart.out",duration:1.2,y:"0%"},">-0.8")),c=e,document.querySelector(".js-masthead-type-3")&&(d=u=b=!1,m=(s=document.querySelector(".js-masthead-type-3")).querySelector(".js-button"),s.querySelector(".js-subtitle")&&(b=s.querySelectorAll(".js-subtitle .split__line")),s.querySelector(".js-title")&&(u=s.querySelectorAll(".js-title .split__line")),s.querySelector(".js-text")&&(d=s.querySelectorAll(".js-text .split__line")),f={stagger:.1,duration:1.2,ease:"quart.out",y:"0%"},y={ease:"quart.out",duration:1.2,y:"0%"},gsap.set(m,{y:"100%"}),s.classList.contains("js-shapes")&&(l=s.querySelectorAll(".js-shape"),c.mastheadShapes(l,">-0.7").to(b,f,">-2.0").to(u,f,">-0.9").to(d,f,">-0.9").to(m,y,">-0.9").uiElementsAnimate(null,">-0.9")),s.classList.contains("js-bg"))&&(l=s.querySelector(".js-bg-item"),c.mastheadBackground(l,">-0.0").to(b,f,">-0.5").to(u,f,">-0.9").to(d,f,">-0.9").to(m,y,">-0.9").uiElementsAnimate(null,">-0.9")),s=e,document.querySelector(".js-masthead-type-4")&&(b=(l=document.querySelector(".js-masthead-type-4")).querySelector(".js-image"),u=l.querySelector(".js-image-cover"),m=f=d=!1,y=l.querySelector(".js-button"),l.querySelector(".js-subtitle")&&(d=l.querySelectorAll(".js-subtitle .split__line")),l.querySelector(".js-title")&&(f=l.querySelectorAll(".js-title .split__line")),l.querySelector(".js-text")&&(m=l.querySelectorAll(".js-text .split__line")),gsap.set(b,{scale:2.2}),gsap.set(y,{y:"101%"}),s.to(u,{duration:.8,ease:"quart.inOut",scaleX:0},">-0.1").to(b,{duration:.8,ease:"quart.inOut",scale:1},">-0.8").to(d,{stagger:.1,duration:1,ease:"quart.out",y:"0%"},">-0.3").to(f,{stagger:.1,duration:1,ease:"quart.out",y:"0%"},">-0.8").to(m,{stagger:.1,duration:1,ease:"quart.out",y:"0%"},">-0.8").to(y,{ease:"quart.out",duration:1,y:"0%"},">-0.8").uiElementsAnimate(null,">-0.8")),b=e,document.querySelector(".js-masthead-type-work-1")&&(p=(S=document.querySelector(".js-masthead-type-work-1")).querySelectorAll(".js-subtitle .split__line"),v=S.querySelectorAll(".js-title .split__line"),_=S.querySelectorAll(".js-info-item .split__line"),h={stagger:.1,duration:1,ease:"quart.out",y:"0%"},g={stagger:.08,duration:.8,ease:"quart.out",opacity:1,y:"0px"},gsap.set(_,{opacity:0,y:"34px"}),S.classList.contains("js-shapes")&&(L=S.querySelectorAll(".js-shape"),q=S.querySelector(".js-image"),gsap.set(q,{opacity:0,y:"34px"}),b.mastheadShapes(L,">-0.8").to(p,h,">-2.3").to(v,h,">-0.8").to(_,g,">-0.8").to(q,{duration:1,ease:"quart.out",opacity:1,y:"0px"},">-0.5")),S.classList.contains("js-bg"))&&(L=S.querySelector(".js-image"),gsap.set(L,{opacity:0,scale:1.3}),b.to(L,{duration:1,ease:"quart.inOut",opacity:1,scale:1},">-0.2").uiElementsAnimate(null,">-0.4").to(p,h,">-0.6").to(v,h,">-0.8").to(_,g,">-0.8")),q=e,document.querySelector(".js-masthead-blog-article")&&(b=(S=document.querySelector(".js-masthead-blog-article")).querySelector(".js-info"),S=S.querySelector(".js-title"),q.fromTo(b,{opacity:0,y:"34px"},{duration:1,ease:"quart.out",opacity:1,y:"0px"},">-0.2").to(S.querySelectorAll(".split__line"),{stagger:.1,duration:1,ease:"quart.out",y:"0%"},">-0.7")),L=e,document.querySelector(".js-page-header"))||document.querySelector(".js-masthead-type-1")||document.querySelector(".js-masthead-type-2")||document.querySelector(".js-masthead-type-3")||document.querySelector(".js-masthead-type-4")||document.querySelector(".js-masthead-type-work-1")||document.querySelector(".js-masthead-blog-article")||L.add(function(){ie.init()}),e}};l=document.querySelector(".js-cursor");var R,U,t,X,G,Z,J,K,o,l,Q={init:function(){l&&(l.querySelector(".js-follower"),R=l.querySelector(".js-label"),U=l.querySelector(".js-icon"),G=X=-100,Z=l.offsetWidth/2,J=l.offsetHeight/2,o=!1,t=window.matchMedia("(hover: hover) and (pointer: fine)"),o=!0,l.classList.add("is-enabled"),document.addEventListener("mousedown",function(e){l.classList.add("is-mouse-down")}),document.addEventListener("mouseup",function(e){l.classList.remove("is-mouse-down")}),document.addEventListener("mousemove",function(e){X=e.clientX,G=e.clientY}),requestAnimationFrame(function e(){l.style.transform="translate(".concat(X-Z,"px, ").concat(G-J,"px)"),requestAnimationFrame(e)}),oe(),App.config.cursorFollower.disableBreakpoint)&&(re(),window.addEventListener("resize",re),t.addEventListener?t.addEventListener("change",re):t.addListener&&t.addListener(re))},leaveHandler:te,update:oe,clear:ne,hide:function(){l&&l.classList.add("is-hidden")},show:function(){l&&l.classList.remove("is-hidden")}};function ee(e){var e=e.target;l.classList.add("is-active"),e.getAttribute("data-cursor-label")&&(App.body.classList.add("is-cursor-active"),l.classList.add("has-label"),R.innerHTML=e.getAttribute("data-cursor-label")),e.getAttribute("data-cursor-icon")&&(App.body.classList.add("is-cursor-active"),l.classList.add("has-icon"),e=e.getAttribute("data-cursor-icon"),U.innerHTML=feather.icons[e].toSvg())}function te(){App.body.classList.remove("is-cursor-active"),l.classList.remove("is-active"),l.classList.remove("has-label"),l.classList.remove("has-icon"),R.innerHTML="",U.innerHTML=""}function oe(){l&&(K=document.querySelectorAll(["button","a","input","[data-cursor]","[data-cursor-label]","[data-cursor-icon]","textarea","label",".why-senla__radio-option",".career-courses__tab h4",".pagination__item",".feedback__arrow_right",".feedback__arrow_left"])).forEac
1h(function(e){e.addEventListener("mouseenter",ee),e.addEventListener("mouseleave",te)})}function ne(){l&&K&&K.forEach(function(e){e.removeEventListener("mouseenter",ee),e.removeEventListener("mouseleave",te)})}function re(){(0<window.innerWidth?window.innerWidth:screen.width)>=Number(App.config.cursorFollower.disableBreakpoint)&&t.matches?o||(o=!0,l.classList.add("is-enabled"),oe()):o&&(o=!1,G=X=-100,l.classList.remove("is-enabled"),l.classList.remove("is-mouse-down"),te(),ne())}var ie={init:function(){ae(),ce()}};function ae(){var e=document.querySelectorAll("[data-anim]");if(e.length)for(var o=0;o<e.length;o++)!function(){var t=e[o];new ScrollMagic.Scene({offset:"160px",triggerElement:t,triggerHook:"onEnter",reverse:!1}).on("enter",function(e){se(t)}).addTo(App.SMcontroller)}()}function ce(){var e=document.querySelectorAll("[data-anim-wrap]");if(e.length)for(var t=0;t<e.length;t++)!function(){var o=e[t];new ScrollMagic.Scene({offset:"160px",triggerElement:o,triggerHook:"onEnter",reverse:!1}).on("enter",function(e){var t=o.querySelectorAll("[data-anim-child]");o.classList.add("animated"),t.forEach(se)}).addTo(App.SMcontroller)}()}function se(e){var t,o=e.getAttribute("data-anim")?e.getAttribute("data-anim"):e.getAttribute("data-anim-child");o.includes("delay-")&&(t=(t=o.split(" ").pop()).substr(t.indexOf("-")+1)/10),o.includes("counter")?function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,o=e.getAttribute("data-counter"),n=e.getAttribute("data-counter-add"),r="",i={count:0},a=e.querySelector(".js-counter-num"),e=String(o).split("."),c=0;1<e.length&&(c=e[1].length);n&&(r=n);gsap.to(i,{count:o,delay:t,duration:1.8,ease:"power3.inOut",onUpdate:function(){a.innerHTML=i.count.toFixed(c)+r}})}(e,t):o.includes("line-chart")?function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,o=e.getAttribute("data-percent"),n=(gsap.fromTo(e.querySelector(".js-bar"),{scaleX:0},{delay:.45+t,duration:1,ease:"power3.inOut",scaleX:o/100}),{count:0}),r=e.querySelector(".js-number");gsap.to(n,{count:o,delay:.45+t,duration:1,ease:"power3.inOut",onUpdate:function(){r.innerHTML="".concat(Math.round(n.count),"%")}})}(e,t):o.includes("split-lines")?function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=e.querySelectorAll(".split__line");gsap.to(e,{delay:t,stagger:.08,duration:.85,ease:"power2.out",y:"0%"})}(e,t):e.classList.add("is-in-view")}function le(){var n=document.querySelector(".form-alert"),r=n.querySelector("p");function i(){n.className="form-alert",r.textContent=""}return n.querySelector("button").addEventListener("click",i),{showErrorNotification:function(e,t){r.textContent=e,n.classList.add("active"),n.classList.add("is-error"),setTimeout(function(){i()},t)},showSuccessNotification:function(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";n.classList.add("active"),n.classList.add("is-success"),o&&n.classList.add(o),r.textContent=e,setTimeout(function(){i()},t)}}}function ue(e){var t,o,n,r,i,a,c,s,l;e.dataset.requestFormInitialized||(e.dataset.requestFormInitialized="true",i=e.querySelectorAll(".request-form__developers-counter"),e.querySelectorAll(".request-form__counter--next").forEach(function(e){e.classList.add("active")}),i.forEach(function(t){var e=t.querySelectorAll(".request-form__counter"),o=t.querySelector(".request-form__counter--back"),n=t.querySelector("input.request-form__counter-output"),r=null;o&&n&&e.forEach(function(e){e.addEventListener("click",function(){e.classList.contains("request-form__counter--back")?0<(r=Number(n.value))&&(--r,n.value=r):e.classList.contains("request-form__counter--next")&&(r=Number(n.value),r+=1,n.value=r),1<=r?(o.classList.add("active"),t.previousElementSibling.classList.add("active")):(o.classList.remove("active"),t.previousElementSibling.classList.remove("active"))})})}),t=function(e){e&&(e.style.height="".concat(e.scrollHeight,"px"))},(o=e.querySelector('textarea[name="comment"]'))&&(o.addEventListener("input",function(){0===o.value.length?o.style.height="".concat(54,"px"):t(this)}),o.addEventListener("blur",function(){t(this)})),n=e.querySelectorAll("input.request-form__input"),r=function(e){"text"!==e.getAttribute("type")&&"email"!==e.getAttribute("type")&&!e.classList.contains("request-form__input")||e.classList.add("form__input--is-error"),0===e.value.length?e.classList.add("form__input--is-error"):"text"!==e.getAttribute("type")&&e.classList.add("form__input--is-valid")}
1,n.forEach(function(t){t.addEventListener("blur",function(){!1===t.checkValidity()&&r(t)}),t.addEventListener("input",function(){var e;(t.classList.contains("form__input--is-error")||t.classList.contains("form__input--is-valid"))&&((e=t).classList.remove("form__input--is-valid"),e.classList.remove("form__input--is-error"))})}),(i=e.querySelector(".request-form__submit-btn"))&&i.addEventListener("click",function(){for(var e=0;e<n.length;e++){var t=n[e];!1===t.checkValidity()&&r(t)}}),(i=e.querySelector(".request-form__form"))&&(i.onsubmit=function(){t(o)}),i=e.querySelector(".request-form__select-title"),a=e.querySelector(".request-form__menu-btn"),c=document.querySelector(".hero__quote-button"),s=e.querySelector(".request-form__options"),l=function(){a&&s&&(a.classList.toggle("active"),s.classList.toggle("active"))},i&&i.addEventListener("click",function(){l()}),c&&s&&c.addEventListener("click",function(){s.classList.contains("active")||l()}))}var de=2,fe=3,me=688,ye=24;function pe(e,t,o,n){var r,i=0,a=0,c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var s=r.value;("all"===e||Object.prototype.hasOwnProperty.call(s.dataset,e))&&(a+=1,i<o)?(s.classList.remove("hidden"),i+=1):s.classList.add("hidden")}}catch(e){c.e(e)}finally{c.f()}n.classList[a<=i?"add":"remove"]("hidden")}function ve(e){var t,o,n,r,i,a,c,s,l,u,d,f;e.dataset.clientsIndustriesInitialized||(t=e.querySelector(".clients-industries__custom-select"))&&(o=t.querySelector(".clients-industries__select-header"),n=t.querySelector(".clients-industries__selected-value"),r=t.querySelectorAll(".clients-industries__dropdown-list li"),i=e.querySelector(".clients-industries__clients"),a=e.querySelector(".clients-industries__button"),o)&&n&&r.length&&i&&a&&(c=i.querySelectorAll(".clients-industries__client-item")).length&&(l=i.offsetWidth>me?de:fe,u=function(e,t){for(var o=0,n=t;n<e;)0!==o&&(n+=ye),o+=1,n+=t;return o}(i.offsetWidth,c[0].offsetWidth)*l,d=u,e.dataset.clientsIndustriesInitialized="true",o.addEventListener("click",function(){t.classList.toggle("active")}),(f=function(e){s=e.dataset.value,n.textContent=e.textContent;var t,o=_createForOfIteratorHelper(r);try{for(o.s();!(t=o.n()).done;)t.value.classList.remove("active")}catch(e){o.e(e)}finally{o.f()}e.classList.toggle("active"),pe(e.dataset.value,c,d,a)})(r[0]),r.forEach(function(e){e.addEventListener("click",function(){f(e),t.classList.remove("active")})}),document.addEventListener("click",function(e){t.contains(e.target)||t.classList.remove("active")}),a.addEventListener("click",function(){pe(s,c,d+=u,a)}))}function _e(e){var t,o;e.dataset.businessDirectionsInitialized||(t=e.querySelectorAll(".business-directions__item-wrapper")).length&&(e.dataset.businessDirectionsInitialized="true",t.forEach(function(t){t.addEventListener("click",function(){var e=t.classList.contains("is-open");o&&o.classList.remove("is-open"),o===t&&(o!==t||e)||t.classList.add("is-open"),o=t})}))}function he(e){var a,c;e.dataset.companyExpertiseInitialized||(a=e.querySelectorAll(".company-expertise__filter button"),c=e.querySelectorAll(".company-expertise__items"),a.length&&c.length&&(e.dataset.companyExpertiseInitialized="true",a.forEach(function(e,i){e.addEventListener("click",function(){var e,t=i,o=_createForOfIteratorHelper(a);try{for(o.s();!(e=o.n()).done;)e.value.classList.remove("active")}catch(e){o.e(e)}finally{o.f()}a[t].classList.add("active");var n,t=i,r=_createForOfIteratorHelper(c);try{for(r.s();!(n=r.n()).done;)n.value.classList.remove("active")}catch(e){r.e(e)}finally{r.f()}c[t].classList.add("active")})})))}function ge(e){var t,o,n;e.dataset.ownProductsInitialized||(t=e.querySelector(".expand-content"))&&(o=t.querySelector(".expand-button"),n=t.querySelector(".expand-text"),o)&&n&&(e.dataset.ownProductsInitialized="true",o.addEventListener("click",function(){t.classList.toggle("expanded");var e=t.classList.contains("expanded");n.textContent=e?"Свернуть":"Развернуть"}))}var qe,be,Se,Le,we,ke,u,Ee,Ae,d,f,m,xe,je,ze,Te,Ce,y,p,Oe,Ie,He,Me,Be,Fe,v,_,h,We,Pe,g,q,Ye,Ve,b,Ne,S,De,Re,$e,Ue,Xe,Ge,Ze,Je,L,Ke,Qe,et,tt,ot,nt,w,rt,it,at,ct,st,lt,ut,dt,ft,mt,yt,pt,vt,_t,ht,gt,qt,bt,St,Lt,wt,kt,Et,At,xt,k,jt,zt,Tt,Ct,Ot,E,It,Ht,Mt,Bt,Ft,Wt,Pt,A,Yt,Vt,Nt,x,j,z,T,Dt,Rt,$t,Ut,Xt,Gt,Zt,Jt,Kt,Qt,eo,to,oo;function no(r,i,a){ht.forEach(function(e){var t,o,n;e.id===r?(e.classList.add("active"),o=(e.offsetParent||gt||_t).getBoundingClientRect(),_t.classList.contains("company-map-alt")?(e.style.top="".concat(i.top-o.top+30,"px"),t=e.getBoundingClientRect(),n=i.left-o.left-t.width/2,0<(o=o.left+n+t.
1width-window.innerWidth)&&(n-=32+o),e.style.left="".concat(n,"px")):(e.style.top="".concat(i.top-a.top+i.height+10,"px"),t=e.getBoundingClientRect(),o=gt.getBoundingClientRect(),n=i.left+t.width/2>=o.width?i.left+t.width/2-o.width+20:0,e.style.left="".concat(i.left-a.left-t.width/2+i.width/2-n,"px"))):e.classList.remove("active")})}f=document.querySelector(".cookies-banner"),m=document.querySelector(".settings-banner"),f&&m&&(p=f.querySelectorAll(".open-settings-cookies"),He=m.querySelector(".settings-banner__closing-button"),Me=m.querySelectorAll(".settings-banner__switch-label"),S=m.querySelectorAll(".settings-banner__open-accordion"),qe=m.querySelectorAll(".settings-banner__cookie-accordion"),Te=document.querySelectorAll(".accept-all-cookies"),y=f.querySelector(".cookies-banner__only-necessary"),Oe=m.querySelector(".settings-banner__save-preferences"),ze=m.querySelectorAll(".settings-banner__cookie-provider"),be="NecessaryCookies",u={NecessaryCookies:!0,AnalyticsCookies:!(ke="OtherCookies"),AdvertisingCookies:!(we="PerformanceCookies"),PerformanceCookies:!(Le="AdvertisingCookies"),OtherCookies:!(Se="AnalyticsCookies")},Ee=function(){return m.classList.toggle("hidden")},Ae=function(){return f.classList.toggle("hidden")},d=function(){return document.body.classList.toggle("overlay")},ze.forEach(function(e){e.innerHTML=window.location.host}),Te.forEach(function(e){return e.addEventListener("click",function(){m.classList.add("hidden"),f.classList.add("hidden"),document.cookie="".concat(be,"=true"),document.cookie="".concat(Se,"=true"),document.cookie="".concat(Le,"=true"),document.cookie="".concat(we,"=true"),document.cookie="".concat(ke,"=true"),d()})}),y.addEventListener("click",function(){Ae(),document.cookie="".concat(be,"=true"),d()}),Oe.addEventListener("click",function(){Ee(),d(),Object.keys(u).forEach(function(e){u[e]&&(document.cookie="".concat(e,"=true"))})}),p.forEach(function(e){e.addEventListener("click",function(){Ee(),Ae()})}),He.addEventListener("click",function(){Ee(),Ae()}),Me.forEach(function(t){var o=t.querySelector(".settings-banner__toggle-circle");
1"NecessaryCookies"===t.id&&(t.classList.add("active"),o.classList.add("active"),t.classList.add("disabled")),t.addEventListener("click",function(){var e;t.classList.contains("disabled")||o.classList.contains("disabled")||(e=t.id,u[e]=!u[e],o.classList.toggle("active"),t.classList.toggle("active"))})}),S.forEach(function(e,t){e.addEventListener("click",function(){e.classList.toggle("active"),qe[t].classList.toggle("hidden")})}),document.addEventListener("DOMContentLoaded",function(){d()})),document.querySelector(".about-senla")&&((xe=document.querySelectorAll(".about-senla__item"))[0].classList.add("active"),xe.forEach(function(t){t.addEventListener("click",function(){var e=t.classList.contains("active");xe.forEach(function(e){e.classList.contains("active")&&e.classList.remove("active")}),t.classList[e?"remove":"add"]("active")})})),document.querySelectorAll('a[href*="#"]').forEach(function(o){o.addEventListener("click",function(e){var t=o.getAttribute("href").split("#"),t=document.getElementById(t[1]);t&&(e.preventDefault(),t=(e=t.getBoundingClientRect()).top+window.pageYOffset-100,e=e.top+window.pageYOffset-68,document.querySelector(".is-not-top")?window.scrollTo({top:e,behavior:"smooth"}):window.scrollTo({top:t,behavior:"smooth"}))})}),document.querySelector(".article-navigation")&&((je=document.querySelectorAll(".article-navigation__nav-btn a"))[0].parentElement.classList.add("active"),ze=document.querySelectorAll(".article-chapter"))&&(Te={root:null,threshold:.01,rootMargin:"0px 0px ".concat(-80,"% 0px")},Ce=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t,o=e.target.getAttribute("id"),n=_createForOfIteratorHelper(je);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.getAttribute("href").split("#")[1]===o?r.parentElement.classList.add("active"):r.parentElement.classList.remove("active")}}catch(e){n.e(e)}finally{n.f()}}})},Te),ze.forEach(function(e){Ce.observe(e)})),(y=document.querySelector(".article-why-senla"))&&(84<(y=(y=y.querySelectorAll(".article-why-senla__item"))[y.length-1].querySelector("h3")).offsetHeight&&y.offsetHeight<132?y.classList.add("three-columns"):132<=y.offsetHeight&&y.classList.add("four-columns")),(Oe=document.querySelector(".js-filter"))&&(p=function(){var e=document.querySelectorAll(".dropdown");e&&e.forEach(function(e){var t=e.querySelector(".dropdown__button"),o=e.querySelector(".dropdown__list"),n=o.querySelectorAll(".dropdown__list-item");t.addEventListener("click",function(){o.classList.toggle("dropdown__list_visible"),this.classList.toggle("dropdown__button_active")}),n.forEach(function(e){e.addEventListener("click",function(e){n.forEach(function(e){e.classList.remove("dropdown__list-item_active")}),e.target.classList.add("dropdown__list-item_active"),t.innerText=this.innerText,o.classList.remove("dropdown__list_visible")})}),document.addEventListener("click",function(e){e.target!==t&&(t.classList.remove("dropdown__button_active"),o.classList.remove("dropdown__list_visible"))})})},new MutationObserver(p).observe(Oe,{attributes:!1,childList:!0}),p()),Ie=document.querySelector(".js-backButton"),window.addEventListener("scroll",function(){var e=document.documentElement.scrollHeight,t=document.documentElement.clientHeight;e-150<(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)+t?Ie.classList.add("backButton-onFooter"):Ie.classList.contains("backButton-onFooter")&&Ie.classList.remove("backButton-onFooter")}),document.querySelector(".career-vacancies")&&(He=document.querySelector(".career-vacancies__columns"),Me=document.querySelectorAll(".vacancies-filter__search input"),Be=function(){var t,e,o,n;window.innerWidth<1024?(t=document.querySelector(".career-vacancies__filter"),e=document.querySelector(".career-vacancies__filter-open"),o=document.querySelector(".career-vacancies__close-filter"),n=function e(){t.classList.remove("active"),document.querySelector("body").style.overflowY="scroll",o.removeEventListener("click",e),window.removeEventListener("keydown",e)},window.addEventListener("keydown",function(e){"Escape"===e.key&&n()}),e.addEventListener("click",function(){t.classList.add("active"),document.querySelector("body").style.overflowY="hidden"}),o.addEventListener("click",function(){n()})):document.querySelector("body").style.overflowY="scroll"},new MutationObserver(function(){Be()}).observe(He,{attributes:!1,childList:!0}),Me.forEach(function(e){e&&e.addEventListener("input",function(e){var t,o,n;e=e.target,t=e.closest(".vacancies-filter__search"),o=t.nextElementSibling.querySelectorAll(".vacancies-filter__checkbox"),t=t.nextElementSibling.querySelectorAll("label"),n=e.value.toLowerCase(),t.forEach(function(e,t){-1<e.textContent.toLowerCase().indexOf(n)?o[t].style.display="":o[t].style.display="none"})})}),window.addEventListener("load",function(){Be()}),window.addEventListener("resize",function(){Be()})),(Ze=document.querySelector(".career-form"))&&(Fe=document.querySelector(".career-form__wrapper"),v=document.querySelector("body"),S=document.querySelector(".career-form__file-input"),_=document.querySelector(".career-form__file-input input"),h=document.querySelector(".career-form__file-button"),We=document.querySelector(".career-form__file-button-remove"),Pe=["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf"],q=function(e){le().showErrorNotification(e,4e3)},Ye=function(){var e=document.querySelector(".career-form__file"),t=document.querySelector(".career-form__file-name");h.style.display="none",e.classList.add("is-visible"),t.textContent=g.name,We.addEventListener("click",function(){_.value="",e.classList.remove("is-visible"),h.style.display="block"})},h.addEventListener("click",function(){_.click()}),_.addEventListener("change",function(){var e=(g=this.files[0]).type;3e6<g.size?(_.value="",q("The file is just too large")):Pe.includes(e)?Ye():(_.value="",q("Wrong file format"))}),S.addEventListener("dragover",function(e){e.stopPropagation(),e.preventDefault()}),S.addEventListener("dragleave",function(e){e.stopPropagation(),e.preventDefault()}),S.addEventListener("drop",function(e){var t;return e.stopPropagation(),e.preventDefault(),1<e.dataTransfer.files.length?(q("Only one file can be attached"),!1):(t=(g=e.dataTransfer.files[0]).type,3e6<g.size?(q("The file is too large"),!1):Pe.includes(t)?(_.files=e.dataTransfer.files,void Ye()):(q("Wrong file format"),!1))}),Ve=function(e){e.style.height="".concat(e.scrollHeight,"px")},(b=document.querySelector('.career-form textarea[name="about-yourself"]'))&&(b.addEventListener("input",function(){0===b.value.length?b.style.height="".concat(56,"px"):Ve(this)}),b.addEventListener("blur",function(){Ve(this)})),(Ne=document.querySelector(".form__privacy-checkbox")).addEventListener("click",function(){Ne.classList.toggle("checked")}),(S=document.querySelector(".career-form form")).onsubmit=function(){return Ve(b),_.value?Ne.classList.contains("checked")?void 0:(q("Please check this box if you want to proceed."),!1):(q("No file attached"),!1)},S.onreset=function(){var e=document.querySelector(".career-form__file");_.value="",e.classList.remove("is-visible"),h.style.display="block"},De=function(){var e,t;Ze.classList.contains("vacancies-description__form")||(e=document.querySelector('.career-form input[name="linkedin"]'),t=document.querySelector('.career-form input[name="phone"]'),window.innerWidth<460?(v.classList.contains("lang-ru"),e.placeholder="Linkedin"):v.classList.contains("lang-ru")?e.placeholder="Telegram":e.placeholder="Link to your Linkedin",window.innerWidth<420?v.classList.contains("lang-ru")?t.placeholder="Телефон":t.placeholder="Phone":v.classList.contains("lang-ru")?t.placeholder="Номер телефона":t.placeholder="Phone number")},"day-offer"!==Ze.getAttribute("data-purpose")&&(Re=document.querySelector('.career-form__field[data-name="technologies"]'),document.querySelectorAll('input[name="position-level"]').forEach(function(n,e){n.addEventListener("click",function(e){if("intern"===n.value)Re.classList.remove("hidden");else{Re.classList.add("hidden");var t,o=_createForOfIteratorHelper(document.querySelectorAll('input[name="technologies[]"]'));try{for(o.s();!(t=o.n()).done;)t.value.checked=!1}
1catch(e){o.e(e)}finally{o.f()}}})})),($e=document.querySelector('input[name="recommended-vacancy"]'))&&(Ue=document.querySelector('.career-form__field[data-name="recommender"]'),Xe=Ue.querySelector("textarea"),$e.addEventListener("click",function(e){$e.checked?(Ue.classList.remove("hidden"),Xe.required=!0):(Ue.classList.add("hidden"),Xe.required=!1,Xe.value="")})),Ge=function(){var e;"career-form"===Ze.getAttribute("data-form")&&(window.innerWidth<=768?(e=document.querySelector(".career-form__confirmation").offsetHeight,Fe.style.cssText="padding-bottom: ".concat(e+24,"px")):Fe.style.cssText="padding-bottom: 0")},window.addEventListener("load",function(){De(),Ge()}),window.addEventListener("resize",function(){De(),Ge()})),document.querySelector(".case-book")&&(Je=document.querySelector(".case-book__pages"),L=Je.querySelectorAll(".case-book__page"),Ke=document.querySelectorAll(".case-book__inner-pages"),Qe=document.querySelector(".js-cursor"),it=document.querySelector(".bb-custom-grid"),w=document.querySelectorAll(".case-book__close-btn"),rt=document.querySelectorAll(".case-book__next-section-button"),document.querySelectorAll(".case-book__content-quote").forEach(function(e){e.closest(".case-book__page--main-layout")&&e.closest(".case-book__page--main-layout").classList.add("case-book__page--quote")}),et=function(){var e=Je.querySelectorAll(".case-book__page"),t=e[0].querySelector(".case-book__side--first"),e=e[e.length-1].querySelector(".case-book__side--second");t.style.cursor="default",e.style.cursor="default",Ke.forEach(function(e){var t,o,n,r,i=e.querySelectorAll(".case-book__page");1===i.length?(t=e.querySelector(".case-book__control--prev"),o=e.querySelector(".case-book__control--next"),n=e.querySelector(".case-book__side--first"),r=e.querySelector(".case-book__side--second"),t.style.display="none",o.style.display="none",n.style.cursor="default",r.style.cursor="default"):1<i.length&&(t=i[0].querySelector(".case-book__control--prev"),o=i[i.length-1].querySelector(".case-book__control--next"),n=i[0].querySelector(".case-book__side--first"),r=i[i.length-1].querySelector(".case-book__side--second"),t.style.display="none",o.style.display="none",n.style.cursor="default",r.style.cursor="default"),1<i.length?(i[i.length-1].querySelector(".case-book__next-section-button--desktop").style.display="block",(window.innerWidth<=1050||800<window.innerWidth&&window.innerHeight<700)&&(i[i.length-1].querySelector(".case-book__next-section-button--mobile").style.visibility="visible")):1===i.length&&(e.querySelector(".case-book__next-section-button--desktop").style.display="block",window.innerWidth<=1050||800<window.innerWidth&&window.innerHeight<700)&&(e.querySelector(".case-book__next-section-button--mobile").style.visibility="visible")})},Je.addEventListener("click",function(e){var o,t=e.target.classList.contains("case-book__open-btn"),n=e.target.closest(".case-book__open-btn");(t||n)&&(o=e.target.closest(".case-book__page"),L.forEach(function(e,t){e===o&&document.querySelectorAll(".case-book__inner-pages")[t].classList.add("active")}))}),rt.forEach(function(e){e.addEventListener("click",function(e){e.target.closest(".case-book__inner-pages").classList.remove("active")})}
1),w.forEach(function(e){e.addEventListener("click",function(e){e.target.closest(".case-book__inner-pages").classList.remove("active")})}),it.addEventListener("mouseenter",function(){Qe.style.display="none"}),it.addEventListener("mouseleave",function(){Qe.style.display="block"}),window.addEventListener("resize",function(){et()}),nt=$("#bb-custom-grid"),{init:function(){nt.find("div.bb-bookblock").each(function(){var e=$(this),t=nt.find(".case-book__pages"),o=e.find(".case-book__side--second"),n=e.find(".case-book__side--first"),r=e.find(".case-book__close-btn"),i=e.find(".case-book__next-section-button"),a=e.find(".case-book__control--next"),c=e.find(".case-book__control--prev");e.bookblock({speed:600,shadows:!0,shadowSides:.8,shadowFlip:.7,circular:!1,onEndFlip:function(e,t){document.querySelectorAll(".case-book__page-content").forEach(function(e){e.scrollTop=0})}}),o.on("click",function(){return e.bookblock("next"),!1}),a.on("click",function(){return e.bookblock("next"),!1}),n.on("click",function(){return e.bookblock("prev"),!1}),c.on("click",function(){return e.bookblock("prev"),!1}),r.on("click",function(){return e.bookblock("first"),!1}),i.on("click",function(){return e.bookblock("first"),t.bookblock("next"),!1})})}}.init(),document.querySelectorAll(".case-book__content-image--diagram").forEach(function(e){var t=e.querySelector("img");t.naturalWidth<t.naturalHeight&&e.classList.add("case-book__content-image--diagram-alt"),t.addEventListener("load",function(){t.naturalWidth<t.naturalHeight&&e.classList.add("case-book__content-image--diagram-alt")})}),et(),L.forEach(function(e,t){tt=e.querySelector(".case-book__page-counter span:first-child"),ot=e.querySelector(".case-book__page-counter span:last-child"),tt.textContent=t+1,ot.textContent=L.length;var e=document.querySelector(".case-book__pages .case-book__page-counter--desktop span:first-child"),o=document.querySelector(".case-book__pages .case-book__page-counter--desktop span:last-child");e.textContent=t+1,o.textContent=L.length})),(rt=document.querySelector(".js-filter"))&&(w=function(){var e=document.querySelectorAll(".articles-filter__dropdown");e&&e.forEach(function(e){var t=e.querySelector(".articles-filter__button"),o=e.querySelector(".articles-filter__list"),n=o.querySelectorAll(".articles-filter__item");t.addEventListener("click",function(){o.classList.toggle("visible"),this.classList.toggle("active")}),n.forEach(function(e){e.addEventListener("click",function(e){n.forEach(function(e){e.classList.remove("active")}),e.target.classList.add("active"),t.innerText=this.innerText,o.classList.remove("visible")})})})},new MutationObserver(w).observe(rt,{attributes:!1,childList:!0}),w()),document.querySelector(".career-courses")&&(it=document.querySelector(".career-courses__tabs"),(at=document.querySelectorAll(".career-courses__tab"))[0].classList.add("active"),ct=function(e){e=e.closest(".career-courses__tab");e.classList.contains("active")||(at.forEach(function(e){e.classList.remove("active")}),e.classList.add("active"))},it.addEventListener("click",function(e){e=e.target;(e.classList.contains("career-courses__tab")||e.closest(".career-courses__tab"))&&ct(e)})),document.querySelector(".development-process")&&1050<window.innerWidth&&document.querySelectorAll(".development-process__button").forEach(function(t){t.addEventListener("click",function(e){e.target,document.querySelectorAll(".development-process__step").forEach(function(e){e.classList.remove("active")}),t.closest(".development-process__step").classList.toggle("active")})}),document.querySelector(".career-faq")&&(st=document.querySelectorAll(".career-faq__card"),mt=document.querySelector(".career-faq__cards"),lt=function(e){e=e.closest(".career-faq__card");e.classList.contains("active")?e.classList.remove("active"):(st.forEach(function(e){e.classList.remove("active")}),e.classList.add("active"))},mt.addEventListener("click",function(e){var t=e.target;e.target.closest(".career-faq__texts")||(t.classList.contains("career-faq__sub-title")||t.classList.contains("career-faq__close-button")||t.closest(".career-faq__card"))&&lt(t)})),document.querySelector(".feedback__slider")&&(document.querySelectorAll(".feedback__arrow_left"),document.querySelectorAll(".feedback__arrow_right")),document.querySelector(".career-hiring")&&(ut=null,dt=!1,ft=document.querySelector(".career-hiring__swiper .swiper-pagination"),(mt=function(){window.innerWidth<=768?dt||(dt=!0,ut=new Swiper(".career-hiring__swiper",{direction:"horizontal",slidesPerView:1,centeredSlides:!0,autoHeight:!0,spaceBetween:16,speed:800,parallax:!0,touchEventsTarget:"wrapper",pagination:{el:ft,clickable:!0}})):dt&&(ut.destroy(!0,!0),ut=null,dt=!1,ft)&&(ft.innerHTML="")})(),window.addEventListener("resize",mt)),document.querySelector(".industries-hero")&&(kt=document.querySelectorAll(".industries-hero__animation-item"),yt=gsap.timeline({defaults:{duration:1},repeat:-1,repeatDelay:0}),kt.forEach(function(e){yt=yt.to(e,{top:"20%",opacity:1,ease:"power3.out"},"-=0.5").to(e,{duration:1,top:"20%"}
1).to(e,{yPercent:300,opacity:0,duration:.5})}),Array.from(document.querySelectorAll(".working-areas__link")).filter(function(e){return e.href==="".concat(window.location,"#")}).forEach(function(e){e.addEventListener("click",function(e){return e.preventDefault()}),e.classList.add("pointer-events-none")})),vt=document.getElementById("officeMap"),_t=document.querySelector(".js-company-map"),ht=document.querySelectorAll(".company-map__office-tip"),gt=document.querySelector(".company-map__image"),vt&&(pt=vt.querySelectorAll(".company-map__office"),_t.addEventListener("click",function(t){var e=new Set([].concat(_toConsumableArray(ht),_toConsumableArray(pt)));Array.from(e).find(function(e){return e.contains(t.target)})||no()}),ht.forEach(function(e){return e.querySelector("svg").addEventListener("click",function(){no("")})}),pt.forEach(function(e){e.addEventListener("click",function(){no(e.id.replace("office-",""),e.getBoundingClientRect(),vt.getBoundingClientRect())})})),(bt=document.querySelector(".js-parallax"))&&(qt=function(){Array.from(bt.querySelectorAll(".case-item-wrapper")).forEach(function(e){var t=e.getBoundingClientRect(),o=window.pageYOffset+t.top,t=window.pageYOffset+t.bottom,n=window.pageYOffset,r=window.pageYOffset+document.documentElement.clientHeight;n<t&&o<r&&(e.querySelectorAll("div[data-anim]").forEach(function(e){e.classList.add("is-in-view")}),o=-25*(t-n)/e.clientHeight,r=e.querySelector(".img-parallax"),o<0)&&-50<o&&(r.style.top="".concat(o,"%"),r.style.transform="translate(-50%, ".concat(o,"%)"))})},new MutationObserver(function(){qt()}).observe(bt,{childList:!0}),document.addEventListener("scroll",function(){window.requestAnimationFrame(qt)}),document.addEventListener("DOMContentLoaded",function(){window.requestAnimationFrame(qt)})),document.querySelector(".cards-list--grid")&&(St=null,Lt=!1,wt=document.querySelector(".cards-list__swiper .swiper-pagination"),(kt=function(){window.innerWidth<=768?Lt||(Lt=!0,St=new Swiper(".cards-list__swiper",{direction:"horizontal",slidesPerView:1,centeredSlides:!0,autoHeight:!0,spaceBetween:32,speed:800,parallax:!0,touchEventsTarget:"wrapper",pagination:{el:wt,clickable:!0}})):Lt&&(St.destroy(!0,!0),St=null,Lt=!1,wt)&&(wt.innerHTML="")})(),window.addEventListener("resize",kt)),(A=document.querySelector(".quiz-form"))&&(Yt=A.querySelectorAll(".ui-checkbox input"),z=A.querySelectorAll(".ui-radio-button input"),Et=function(e){e.closest(".quiz-form__user-option").querySelector(".quiz-form__textarea").removeAttribute("disabled"),e.closest(".quiz-form__user-option").querySelector(".quiz-form__textarea").focus(),e.closest(".quiz-form__user-option").querySelector(".quiz-form__textarea").value=""},At=function(e){e.closest(".quiz-form__fieldset").querySelector(".quiz-form__textarea").setAttribute("disabled",""),e.closest(".quiz-form__fieldset").querySelector(".quiz-form__textarea").value=""},z.forEach(function(e){e.addEventListener("change",function(){(e.closest(".quiz-form__user-option")?Et:At)(e)})}),Yt.forEach(function(n){n.addEventListener("change",function(){var e=n.closest(".quiz-form__fieldset");if(e.querySelector(".quiz-form__user-option")){var t=e.querySelectorAll(".ui-checkbox input");if(n.closest(".quiz-form__user-option"))if(n.checked){Et(n);for(var o=0;o<t.length-1;o++)t[o].checked=!1}else At(n);else n.checked&&(t[t.length-1].checked=!1)}})}),A.classList.contains("quiz-form--short")&&document.querySelectorAll(".quiz-form__step")[0].classList.add("active"),A.classList.contains("quiz-form--full"))&&(xt=document.querySelector(".quiz-form__step-bar"),k=document.querySelectorAll(".quiz-form__step"),jt=document.querySelector(".quiz-form__current-step"),z=document.querySelector(".quiz-form__form"),zt=A.querySelector(".ui-button--back"),Tt=A.querySelector(".ui-button--next"),Ct=document.querySelectorAll(".quiz-form__user-option .quiz-form__textarea"),Ot=Math.round(100/(k.length-1)),E=z.dataset.stepCounter,It=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t.forEach(function(e){e.style.display="none"})},Ht=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t.forEach(function(e){e.style.display="block"})},Mt=function(){var e=document.querySelector(".quiz-form__privacy"),t=A.querySelector(".ui-button--submit"),o=document.querySelector(".quiz-form__step-counter");
11===Number(E)?(It(e,zt,t),Ht(o)):E===k.length?(It(Tt,o),Ht(e,zt,t)):(It(e,t),Ht(zt,Tt,o))},Bt=function(){jt.textContent=E,xt.style.width="".concat(Ot*E,"%")},Ft=function(){k.forEach(function(e){e.classList.remove("active")})},Wt=function(){k.forEach(function(){k[E-1].classList.add("active")})},Pt=function(e){"prev"===e&&0<E?(Ft(),E--,Wt(),Mt(),Bt()):"next"===e&&E<k.length&&(Ft(),E++,Wt(),Mt(),Bt())},zt.addEventListener("click",function(){Pt("prev")}),Tt.addEventListener("click",function(){Pt("next")}),window.addEventListener("load",function(){k.forEach(function(e,t){e.classList.contains("active")&&(jt.textContent=t+1,E=t+1)}),Mt(),xt.style.width="".concat(Ot*E,"%"),Ct.forEach(function(e){e.setAttribute("disabled","")}),k[E-1].classList.add("active")})),function(e){e=0<arguments.length&&void 0!==e?e:document,document.querySelector("body").classList.contains("presentation-page")||(e.matches&&e.matches(".request-form")?[e]:e.querySelectorAll(".request-form")).forEach(ue)}(),document.querySelector(".presentation-page .request-form")&&(Yt=document.querySelector(".request-form__submit-btn"),Vt=document.querySelectorAll("input.request-form__input"),Nt=document.querySelector('.request-form__input[name="fullname"]'),x=document.querySelector('.request-form__input[name="contact"]'),j=function(e){"text"===e.getAttribute("type")&&e.classList.add("form__input--is-error"),0===e.value.length?e.classList.add("form__input--is-error"):"text"!==e.getAttribute("type")&&e.classList.add("form__input--is-valid")},z=function(e){var e=e.target.value,t=2===e.split("@").length,o=e[0];if(t&&"@"!==o)e.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)?isContactValid=!0:j(x);else{if("+"===o||"0123456789".includes(o)||"("===o){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!"0123456789+-(). ".includes(i))return void j(x)}}catch(e){r.e(e)}finally{r.f()}}else{if("@"!==o&&!"abcdefghijklmnopqrstuvwxyz".includes(o))return j(x),!1;var a,c=_createForOfIteratorHelper(e);try{for(c.s();!(a=c.n()).done;){var s=a.value;if(!"abcdefghijklmnopqrstuvwxyz".includes(s.toLowerCase())&&!"0123456789_@".includes(s))return void j(x)}}catch(e){c.e(e)}finally{c.f()}}isContactValid=!0}},Vt.forEach(function(t){"fullname"===t.getAttribute("name")&&"contact"===t.getAttribute("name")||(t.addEventListener("blur",function(){!1===t.checkValidity()&&j(t)}),t.addEventListener("input",function(){var e;(t.classList.contains("form__input--is-error")||t.classList.contains("form__input--is-valid"))&&((e=t).classList.remove("form__input--is-valid"),e.classList.remove("form__input--is-error"))}))}),Vt.forEach(function(e){e.setAttribute("autocomplete","disabled")}),Nt.addEventListener("input",function(e){var e=(e=e).target.value.split(" "),t=/^[а-яА-ЯёЁa-zA-Z]+$/;if(3<e.length||e.length<2)return j(Nt),!1;e.forEach(function(e){if(!e.match(t))return j(Nt),!1})}),x.addEventListener("input",z),Yt.addEventListener("click",function(e){for(var t=0;t<Vt.length;t++){var o=Vt[t];"fullname"===o.getAttribute("name")&&"contact"===o.getAttribute("name")||!1===o.checkValidity()&&j(o)}})),(H=document.querySelector(".similar-vacancies"))&&(Gt=document.querySelectorAll(".vacancies-detail__item"),Zt=H.querySelector(".swiper-button-next"),H=H.querySelector(".swiper-button-prev"),Gt.length<4?(Zt.style.visibility="hidden",H.style.visibility="hidden"):(Zt.style.visibility="visible",H.style.visibility="visible")),document.querySelector(".why-senla")&&(T=document.querySelector(".why-senla__range-input"),Dt=document.querySelector(".why-senla__range-button"),Rt=document.querySelector(".why-senla__range-value"),$t=document.querySelector(".why-senla__progress-bar"),Rt.innerHTML=T.value,T.oninput=function(){var e,t;e=T.getAttribute("max"),t=T.getAttribute("min"),e="".concat((T.value-t)/(e-t)*100,"%"),Rt.innerHTML=T.value,Dt.style.left=e,$t.style.width=e},Ut=document.querySelectorAll(".why-senla__radio-option--tech"),Xt=document.querySelectorAll(".why-senla__radio-option--location"),Gt=document.querySelector(".why-senla__tech-options"),Zt=document.querySelector(".why-senla__location-options"),Jt=function(e){var t,o,n=+e.slice(1);return 9999<n&&n<99999?(t=e.slice(0,3),o=e.slice(3),"".concat(t,",").concat(o)):99999<n&&n<999999?(t=e.slice(0,4),o=e.slice(4),"".concat(t,",").concat(o)):999999<n?(t=e.slice(0,2),o=e.slice(2,5),n=e.slice(5),"".concat(t,",").concat(o,",").concat(n)):void 0},Kt=function(e){e.forEach(function(e){var t=e.querySelector("input");e.classList.remove("active"),t.removeAttribute("checked")})},Qt=function(e){var t=e.querySelector("input");e.classList.add("active"),t.setAttribute("checked","")},eo=function(e){var t,o=document.querySelector(".why-senla__procentage-value");switch(e){case"europe":t="38%";break;case"north-america":t="55%";break;case"united-kingdom":t="46%";break;case"israel":t="42%"}o.textContent=t},to=function(e,t){var o,n=document.querySelector(".why-senla__content-price[data-talent]");switch(e){case"europe":o="€".concat(10232*t);break;case"north-america":o="$".concat(15300*t);break;case"united-kingdom":o="£".concat(9930*t);break;case"israel":o="₪".concat(38898*t)}o=Jt(o),n.textContent=o},oo=function(e,t){var o,n=document.querySelector(".why-senla__content-price[data-administrative]");switch(e){case"europe":o="€".concat(5416*t);break;case"north-america":o="$".concat(8100*t);break;case"united-kingdom":o="£".concat(6750*t);break;case"israel":o="₪".concat(20593*t)}o=Jt(o),n.textContent=o},Gt.addEventListener("click",function(e){var e=e.target,t=e.closest(".why-senla__radio-option");e.classList.contains("why-senla__radio-option")?(Kt(Ut),Qt(e)):t&&(Kt(Ut),Qt(t))}),Zt.addEventListener("click",function(e){var t,o,n=T.value,e=e.target,r=e.closest(".why-senla__radio-option");e.classList.contains("why-senla__radio-option")?(o=(t=e.querySelector("input")).value,Kt(Xt),Qt(e),eo(o),t.hasAttribute("checked")&&(to(o,n),oo(o,n))):r&&(o=(t=r.querySelector("input")).value,Kt(Xt),Qt(r),eo(o),t.hasAttribute("checked"))&&(to(o,n),oo(o,n))}),T.addEventListener("change",function(){var t=T.value;document.querySelectorAll(".why-senla__radio-option--location input").forEach(function(e){e.hasAttribute("checked")&&(e=e.value,to(e,t),oo(e,t))})}),document.addEventListener("DOMContentLoaded",function(){Xt.forEach(function(e){var e=e.querySelector("input"),t=e.value,o=T.value;e.hasAttribute("checked")&&(to(t,o),oo(t,o),eo(t))})}));var C,O,ro,I,io,H=document.forms.quizLanding;if(H){O=(C=H).elements.tab1,ro=C.elements.tab2,I=C.querySelectorAll("button.quiz-landing-form__tab-item"),io=C.querySelectorAll(".quiz-landing-form__tab-content");for(var ao=new Set,co=0;co<O.elements.length;co++){var so=O.elements[co];so.name&&ao.add(so.name)}for(var lo=new Set(_toConsumableArray(ao)),uo=0;uo<ro.elements.length;uo++){var fo=ro.elements[uo];fo.name&&lo.add(fo.name)}
1ao.forEach(function(e){O.querySelectorAll('input[name="'.concat(e,'"]')).forEach(function(e){e.addEventListener("change",function(){var e,t,o;e=ao,t=0,o=O.querySelector(".quiz-landing-form__footer-next-tab"),e.forEach(function(e){O.querySelector("input[name=".concat(e,"]:checked"))&&t++}),e.size>t?(I[I.length-1].disabled=!0,o.classList.remove("quiz-landing-form__footer-next-tab--valid")):(I[I.length-1].disabled=!1,o.classList.add("quiz-landing-form__footer-next-tab--valid"))})})}),lo.forEach(function(e){C.querySelectorAll('input[name="'.concat(e,'"]')).forEach(function(e){e.addEventListener("change",function(){var t,e,o;t=0,(e=lo).forEach(function(e){C.querySelector("input[name=".concat(e,"]:checked"))&&t++}),t===e.size&&ro.querySelector(".quiz-landing-form__footer-sent").classList.add("quiz-landing-form__footer-sent--valid"),e=C.querySelector(".quiz-landing-form__tab-content--active"),o=e.querySelector(".quiz-landing-form__step--active").querySelector('input[type="radio"]:checked'),(e=e.querySelector(".ui-button--next")).disabled=!o})})}),I.forEach(function(e){e.addEventListener("click",function(){I.forEach(function(e){return e.classList.remove("quiz-landing-form__tab-item--active")}),io.forEach(function(e){return e.classList.remove("quiz-landing-form__tab-content--active")}),e.classList.add("quiz-landing-form__tab-item--active"),document.getElementById(e.getAttribute("data-tab-id")).classList.add("quiz-landing-form__tab-content--active")})}),mo(O),mo(ro)}function mo(e){var t,o,n=e.querySelectorAll(".quiz-landing-form__step"),r=e.querySelector(".quiz-landing-form__amount-step"),i=e.querySelector(".ui-button--next"),a=e.querySelector(".ui-button--back"),c=e.querySelector(".ui-button--next-tab");c&&(I.forEach(function(e){e.classList.contains("quiz-landing-form__tab-item--active")&&(t=e)}),o=t.nextElementSibling,c.addEventListener("click",function(){return o.click()})),r.textContent=n.length,i.addEventListener("click",function(){return po(e,"next")}),a.addEventListener("click",function(){return po(e,"back")}),yo(e)}function yo(e){var o=e.querySelectorAll(".quiz-landing-form__step"),n=e.querySelector(".ui-button--next"),r=e.querySelector(".quiz-landing-form__current-step"),i=e.querySelector(".quiz-landing-form__counter-bar"),a=82*Math.PI;i.setAttribute("stroke-dasharray",a),o.forEach(function(e,t){e.classList.contains("quiz-landing-form__step--active")&&(e.querySelector('input[type="radio"]:checked')?n.disabled=!1:n.disabled=!0,r.textContent=t+1,i.setAttribute("stroke-dashoffset",a-100/o.length*(t+1)/100*a))})}function po(e,t){var o=e.querySelector(".quiz-landing-form__step--active"),n=o.nextElementSibling,r=o.previousElementSibling,i=e.querySelector(".quiz-landing-form__footer-back"),a=e.querySelector(".quiz-landing-form__footer-forward"),c=e.querySelector(".quiz-landing-form__footer-next-tab"),s=e.querySelector(".quiz-landing-form__footer-sent");"next"===t&&(o.classList.remove("quiz-landing-form__step--active"),n.classList.add("quiz-landing-form__step--active"),a.style.display=n.nextElementSibling?"block":"none",i.style.display=n.previousElementSibling?"block":"none",c&&c.classList.contains("quiz-landing-form__footer-next-tab--valid")&&(c.style.display=n.nextElementSibling?"none":"block"),s)&&s.classList.contains("quiz-landing-form__footer-sent--valid")&&(s.style.display=n.nextElementSibling?"none":"block"),"back"===t&&(o.classList.remove("quiz-landing-form__step--active"),r.classList.add("quiz-landing-form__step--active"),a.style.display=r.nextElementSibling?"block":"none",i.style.display=r.previousElementSibling?"block":"none",c&&c.classList.contains("quiz-landing-form__footer-next-tab--valid")&&(c.style.display=r.nextElementSibling?"none":"block"),s)&&s.classList.contains("quiz-landing-form__footer-sent--valid")&&(s.style.display=r.nextElementSibling?"none":"block"),yo(e)}!function(e){((e=0<arguments.length&&void 0!==e?e:document).matches&&e.matches(".clients-industries")?[e]:e.querySelectorAll(".clients-industries")).forEach(ve)}(),(H=document.querySelectorAll(".swiper-wrapper"))&&H.forEach(function(n){var e=n.querySelectorAll(".expand-content");e&&e.forEach(function(o){var e=o.querySelector(".expand-button");o.offsetHeight<=202?e.classList.add("hidden"):o.classList.add("collapsed"),e.addEventListener("click",function(){o.classList.toggle("collapsed");var e=o.classList.contains("collapsed"),t=n.querySelector(".swiper-slide-active");n.style.height="".concat(t.offsetHeight,"px"),e&&t.scrollIntoView({behavior:"smooth",block:"center"}),o.querySelector(".expand-text").textContent=e?"Развернуть":"Свернуть"})})}),function(e){((e=0<arguments.length&&void 0!==e?e:document).matches&&e.matches(".own-products__about")?[e]:e.querySelectorAll(".own-products__about")).forEac
1h(ge)}(),function(e){((e=0<arguments.length&&void 0!==e?e:document).matches&&e.matches(".business-directions")?[e]:e.querySelectorAll(".business-directions")).forEach(_e)}(),function(e){((e=0<arguments.length&&void 0!==e?e:document).matches&&e.matches(".company-expertise")?[e]:e.querySelectorAll(".company-expertise")).forEach(he)}()}();
2//# sourceMappingURL=main.min.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.