"use strict";(self.webpackChunkgulp_template=self.webpackChunkgulp_template||[]).push([[7594,6531],{3567:function(e,t,n){var i,o=n(1136),s=n(6531),r=n(2785),a=n(2936),l=n(6708),c=n(9743);function u(e,t,n,i,o,s,r){try{var a=e[s](r),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}function d(){(0,o.r)(),(0,s.default)({loop:!0,slidesPerView:1,spaceBetween:10,autoHeight:!0,breakpoints:{996:{slidesPerView:"auto",autoHeight:!1}}},"js-feed-slider"),(0,s.default)({loop:!0,slidesPerView:1,centeredSlides:!0,pagination:{el:".swiper-pagination",type:"fraction"},navigation:{nextEl:".slider-arrow-button-next",prevEl:".slider-arrow-button-prev"}},"js-new-detail-slider")}window.addEventListener("DOMContentLoaded",(i=function*(){const e=document.querySelector(".js-contact-form");if((0,r.k)(),(0,a.A)(),e){const{default:t}=yield Promise.all([n.e(8096),n.e(8611)]).then(n.bind(n,8611));t(e)}const t=document.querySelectorAll(".js-scroll-seminar-table");t&&t.length&&t.forEach((e=>{new c.A(e,{autoHide:!1})})),d(),(0,l.A)("detail")},function(){var e=this,t=arguments;return new Promise((function(n,o){var s=i.apply(e,t);function r(e){u(s,n,o,r,a,"next",e)}function a(e){u(s,n,o,r,a,"throw",e)}r(void 0)}))})),window.addEventListener("initNewsDetail",(()=>{d()}))},3218:function(e,t,n){function i(){const e=document.body,t=window.innerWidth-e.clientWidth;if(e.style.transition="margin-right 0.3s easy-in-out",e.style.marginRight=`${t}px`,e.style.overflow="hidden",!window.matchMedia("(min-width: 996px)").matches){const t=window.pageYOffset;e.style.top=-t+"px",e.style.position="fixed",e.style.width="100%"}}function o(){const e=document.body;if(e.style.transition="margin-right 0s easy-in-out",e.style.marginRight="0",e.style.overflow="unset",!window.matchMedia("(min-width: 996px)").matches){const t=Math.abs(parseInt(e.style.top||0,10));e.style.position="static",e.style.width="auto",e.style.removeProperty("top"),window.scrollTo(0,t||0)}}n.d(t,{$:function(){return i},W:function(){return o}})},2936:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(7371);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t{var o;const r=t.hasAttribute("data-select-with-search"),a=null===(o=t.closest(".js-select-wrapper"))||void 0===o?void 0:o.querySelector(".js-select-name"),l=new i(t,s({sortField:function(e,t){var n=this.items[e.id],i=this.items[t.id];return n.text.localeCompare(i.text)},maxOptions:500,render:{no_results:()=>'
Ничего не найдено
'},plugins:r?["dropdown_input"]:[],onInitialize:function(){r&&function(e,t){const n=t.querySelector(".dropdown-input-wrap");if(!n)return;const i=e.control_input;i.classList.add("input-base__input","js-input-base"),n.innerHTML='\n
\n \n \n
\n ',n.querySelector(".input-base__label").append(i),n.querySelector(".js-clear-button").addEventListener("click",(()=>{e.setTextboxValue(""),e.refreshOptions(!1),i.focus()}))}(this,this.dropdown)}},e));a&&a.addEventListener("click",(function(){l.focus()})),t.addEventListener("change",(function(){const e=t.closest(".select-wrapper");e&&e.classList.contains("error")&&e.classList.remove("error"),e&&e.classList.contains("success")&&e.classList.remove("success")})),n.push(l)})),n}},2785:function(e,t,n){function i(e,t){const n=Math.abs(e)%100,i=e%10;return n>10&&n<20?t[2]:i>1&&i<5?t[1]:1==i?t[0]:t[2]}n.d(t,{t:function(){return c},k:function(){return u}});var o=n(3016);let s=[];function r(e){const t=new DataTransfer;for(const n of e)t.items.add(n);return t.files}function a(e,t,n){const i=function(e){const t=document.createElement("template"),n=`\n
\n \n \n \n \n
\n \n \n
\n
\n `;for(let i=0;i{const s=i.querySelector(".js-file-name"),r=i.querySelector(".js-delete-file");s.innerText=function(e){return e.length>13?`${e.substring(0,6)}...${e.substring(e.length-6)}`:e}(t.files[o].name),r.addEventListener("click",(function(){l.call(this,e,t,n)}))})),e.append(...i))}function l(e,t,n){const o=e.closest(".js-file-input-container"),a=e.querySelectorAll(".js-file"),l=this.closest(".js-file");if(a.length&&l){const c=Array.from(a).findIndex((e=>l===e));-1!==c&&(s.splice(c,1),t.files=r(s),e.removeChild(l),o.classList.contains("error")&&o.classList.remove("error"),s.length?n.innerText=`${s.length} ${i(s.length,["файл","файла","файлов"])} ${i(s.length,["выбран","выбраны","выбраны"])}`:n.innerText=n.dataset.placeholder)}}function c(){const e=document.querySelectorAll(".js-file-input-container");s=[],e.length&&e.forEach((e=>{const t=e.querySelector(".js-file-input-info"),n=e.querySelector(".js-files-container");t.innerText=t.dataset.placeholder,n.innerHTML=""}))}function u(){const e=document.querySelectorAll(".js-file-input-container"),t=document.querySelector(".js-language-radio:checked")?document.querySelector(".js-language-radio:checked").value:"RU";e.length&&e.forEach((e=>{const n=e.querySelector(".js-files-container"),l=e.querySelector(".js-file-input"),c=e.querySelector(".js-file-input-info");l&&c&&l.addEventListener("change",(u=>{const d=s.length;u.target.files.length&&(u.target.hasAttribute("multiple")||(s=[],n.firstChild&&n.removeChild(n.firstChild)),s.push(...u.target.files));const m=function(e,t){const n={files:t||[],maxWeight:10},i={maxWeight:(0,o.tJ)(n),maxCount:(0,o.X5)(n)},s=document.querySelector(".js-language-radio:checked")?document.querySelector(".js-language-radio:checked").value:"RU";return i.maxWeight?!!i.maxCount||((0,o.Nh)(e,"filesMaxCount",".input-file-base",s),i.maxCount):((0,o.Nh)(e,"fileMaxWeight",".input-file-base",s),i.maxWeight)}(u.target,s);if(m?e.classList.contains("error")&&e.classList.remove("error"):(s=s.slice(0,d),u.target.value=""),s.length){const e="RU"===t?["файл","файла","файлов"]:["file","files","files"],n="RU"===t?["выбран","выбраны","выбраны"]:["selected","selected","selected"];c.innerText=`${s.length} ${i(s.length,e)} ${i(s.length,n)}`}else c.innerText=c.dataset.placeholder;a(n,l,c),u.target.files=r(s)}))}))}},2048:function(e,t,n){n.d(t,{A:function(){return o}});var i=n(3218);function o(e,t=!0){const n=document.querySelector(".js-loader");n&&(t?n.classList.add("loader-fixed"):n.classList.remove("loader-fixed"),n.classList.toggle(e),n.classList.contains("loader-fixed")&&(n.classList.contains("show-global")?(0,i.$)():(0,i.W)()))}},6708:function(e,t,n){n.d(t,{A:function(){return o}});var i=n(2048);function o(e){const t=document.querySelector("#map .js-loader");t&&(0,i.A)("show",!1);let n=window.dataMap;function o(){let o=11;n.zoom>0&&(o=n.zoom);const s=new ymaps.Map("map",{center:[59.935315,30.268019],zoom:o,behaviors:["default","scrollZoom"],controls:["geolocationControl","fullscreenControl","zoomControl"]});if("detail"===e){ymaps.templateLayoutFactory.createClass('\n
\n \n
$[properties.iconContent]
\n
\n ');const e=e=>{let t=ymaps.templateLayoutFactory.createClass(`\n ${e.name?'
'+e.name+"
":""}\n ${e.address?'
'+e.address+"
":""}\n ${e.workingHours?'
'+e.workingHours+"
":""}\n ${e.phone?'
'+e.phone+"
":""}\n ${e.email?'
'+e.email+"
":""}\n `);return new ymaps.Placemark([e.coords[0],e.coords[1]],{hintContent:""},{iconLayout:"default#image",iconImageHref:"/local/templates/stenova/img/map-mark.png",iconImageSize:[44,44],iconImageOffset:[-22,-22],openEmptyBalloon:!0,hideIconOnBalloonOpen:!1,balloonContentLayout:t,balloonOffset:[0,-25]})};s.geoObjects.add(e(n)),setTimeout((()=>{s.container.fitToViewport(),s.setCenter(n.coords),window.innerWidth<996&&s.setZoom(12)}),300)}else{const e=e=>{let t=e.coords.split([","]),n=ymaps.templateLayoutFactory.createClass(`\n ${e.name?'
'+e.name+"
":""}\n ${e.address?'
'+e.address+"
":""}\n ${e.workingHours?'
'+e.workingHours+"
":""}\n ${e.phone?'
'+e.phone+"
":""}\n ${e.email?'
'+e.email+"
":""}\n `);return new ymaps.Placemark([t[0],t[1]],{hintContent:""},{iconLayout:"default#image",iconImageHref:"/local/templates/stenova/img/map-mark.png",iconImageSize:[44,44],iconImageOffset:[-22,-22],openEmptyBalloon:!0,hideIconOnBalloonOpen:!1,balloonContentLayout:n,balloonOffset:[0,-25]})};n.map((t=>{s.geoObjects.add(e(t));let n=t.coords.split([","]);s.setCenter(n)})),setTimeout((()=>{n.length>5&&(s.setBounds(s.geoObjects.getBounds()),s.setZoom(4))}),300)}t&&(0,i.A)("show",!1)}n&&("undefined"!=typeof ymaps?ymaps.ready(o):document.addEventListener("YandexMapReady",(()=>{ymaps.ready(o)})))}},6531:function(e,t,n){n.r(t),n.d(t,{default:function(){return r}});var i=n(5914);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t{window.matchMedia("(min-width: 996px)").matches?n.classList.contains(`${t}--mobile`)||new i.Ay(n,s({modules:[i.Vx,i.dK,i.dF],navigation:{nextEl:".slider-button-next",prevEl:".slider-button-prev"},on:{init(e){e.isLocked&&(e.navigation&&e.navigation.nextEl&&e.navigation.prevEl&&(e.navigation.nextEl.style.display="none",e.navigation.prevEl.style.display="none"),e.pagination&&e.pagination.el&&(e.pagination.el.style.display="none")),e.slides&&e.slides.forEach(((e,t)=>{e.setAttribute("data-slide-index",t)}))}}},e)):n.classList.contains(`${t}--desktop`)||new i.Ay(n,s({modules:[i.Vx,i.dK,i.dF],navigation:{nextEl:".slider-button-next",prevEl:".slider-button-prev"},on:{init(e){e.slides&&e.slides.forEach(((e,t)=>{e.setAttribute("data-slide-index",t)}))}}},e))}))}},3016:function(e,t,n){n.d(t,{LF:function(){return s},M2:function(){return c},MG:function(){return h},Nh:function(){return m},X5:function(){return d},bB:function(){return r},lZ:function(){return o},tJ:function(){return u}});const i=e=>!isNaN(Number(e.trim())),o=e=>11===String(e).replace(/[^\d]/g,"").substring(0,11).length,s=e=>new RegExp(/^(\+?\d)\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{2})[- ]?(\d{2})$/).test(e),r=e=>i(e)&&12===String(e.trim()).length,a=e=>new RegExp(/^[^@]+@[\w\-]+(\.\w+)+\w$/).test(e)||0===e.trim().length,l=e=>new RegExp(/^[^@]+@[\w\-]+(\.\w+)*\.ru$/).test(e)||0===e.trim().length,c=e=>i(e)&&6===String(e).length,u=e=>{let t=!0;for(let n=0;n10){t=!1;break}return t},d=e=>e.files.length<=10,m=(e,t,n=".input-base",i="RU")=>{const o=e.closest(n);if(o){const e=o.querySelector(`${n}__error`);o.classList.add(g),e&&(e.innerText=p[t].text[i])}},f=e=>{const t=e.closest(".input-base-captcha")||e.closest(".input-base")||e.closest(".input-file-base")||e.closest(".js-select-wrapper"),n=document.querySelector(".js-navigation");if(t&&n){const e=t.getBoundingClientRect();document.querySelector('.dialog:not([aria-hidden="true"])')?document.querySelector('.dialog:not([aria-hidden="true"]) .dialog-wrapper').scrollTo({top:t.offsetTop-30,behavior:"smooth"}):window.scrollTo({top:e.top+window.pageYOffset-n.clientHeight-60,behavior:"smooth"})}},p={required:{text:{RU:"Поле должно быть заполнено",EN:"Field must be filled"},action:e=>0!==String(e).length},requiredFiles:{text:{RU:"Поле должно быть заполнено",EN:"Field must be filled"},action:e=>e.files&&e.files.length},phone:{text:{RU:"Номер телефона должен состоять из 11 цифр",EN:"Phone number must be 11 digits"},action:o},inn:{text:{RU:"ИНН должен состоять из 10 или 12 цифр",EN:"TIN must be 10 or 12 digits"},action:e=>i(e)&&(10===String(e.trim()).length||12===String(e.trim()).length)},innIP:{text:{RU:"ИНН должен состоять из 12 цифр",EN:"TIN must be 12 digits"},action:r},kpp:{text:{RU:"КПП должен состоять из 9 цифр",EN:"PPC must consist of 9 digits"},action:e=>i(e)&&9===String(e.trim()).length||0===String(e.trim()).length},email:{text:{RU:"Формат почты: name@domain.ru",EN:"Mail format: name@domain.ru"},action:a},emailWithRuDomain:{text:{RU:"Допустимы только адреса в домене .ru",EN:"Only addresses in domain . ru"},action:l},onlyNumbers:{text:{RU:"Поле должно содержать только цифры",EN:"The field must contain only numbers"},action:i},cardNumber:{text:{RU:"Номер карты должен состоять из 15 цифр",EN:"Card number must be 15 digits"},action:e=>{const t=e.replace(/\s/g,"");return 15===t.length&&i(t)||0===t.length}},cost:{text:{RU:"Поле должно состоять только из цифр",EN:"The field must contain only numbers"},action:e=>{const t=e.replace(/\s/g,"");return i(t)||0===t.length}},password:{text:{RU:"Пароль должен содержать не менее 8 символов",EN:"Password must contain at least 8 characters"},action:e=>e.length>7||0===e.length},confirmPassword:{text:{RU:"Пароли должны совпадать",EN:"Passwords must match"},action:({oldPassword:e,newPassword:t})=>e===t},korCheck:{text:{RU:"Корреспондентский счет должен состоять из 11 цифр",EN:"Correspondent account must be 11 digits"},action:e=>i(e)&&11===String(e.trim()).length||0===String(e.trim()).length},payCheck:{text:{RU:"Расчетный счет должен состоять из 14 цифр",EN:"Account must be 14 digits long"},action:e=>i(e)&&14===String(e.trim()).length||0===String(e.trim()).length},bik:{text:{RU:"БИК должен состоять из 12 цифр",EN:"BIC must be 12 digits"},action:e=>i(e)&&12===String(e.trim()).length||0===String(e.trim()).length},phoneOrEmail:{text:{RU:"Не корректно заполнен email или телефон",EN:"Incorrectly filled email or phone"},action:e=>s(e)||a(e)||0===String(e.trim()).length},phoneOrEmailWithRuDomain:{text:{RU:"Не корректно заполнен email (допустимы адреса в домене .ru) или телефон",EN:"Incorrectly filled email (only addresses in domain . ru) or phone"},action:e=>s(e)||a(e)&&l(e)||0===String(e.trim()).length},confirmCode:{text:{RU:"Код должен состоять из 6 цифр",EN:"Code must be 6 digits"},action:c},fileMaxWeight:{text:{RU:"Вес одного файла должен быть не более 10 Мбайт",EN:"The weight of one file should be no more than 10 MB"},action:u},filesMaxCount:{text:{RU:"Можно загрузить не более 10 файлов",EN:"You can upload a maximum of 10 files"},action:d},doNotConfirmPhone:{text:{RU:"Номер должен быть подтвержден",EN:"Number must be confirmed"},action:e=>!1},nominalMin1000:{text:{RU:"Номинал карты не может быть менее 1000",EN:"The denomination of the card cannot be less than 1000"},action:e=>e>=1e3}},g="error";function h(e){let t=!0,n=null;if(e.length){const i=document.querySelectorAll(".js-language-radio");let o="RU";if(0!==i.length){const e=Array.from(i).find((e=>e.checked));o=e.value}e.forEach((e=>{const i=e.dataset.validations.split(",");for(let n of i){let i=".input-base",r=e.classList.contains("js-file-input")?{files:e.files,maxWeight:10}:e.value;if(e.classList.contains("js-file-input")&&(i=".input-file-base"),e.classList.contains(".js-select-option")&&(i=".select-wrapper"),"confirmPassword"===n){const t=e.closest(".js-form-container");if(t){var s;const n=(null===(s=t.querySelector(".js-input-password"))||void 0===s?void 0:s.value)||null;n&&(r={oldPassword:n,newPassword:e.value})}}if(!p[n].action(r)){t&&(t=!1),m(e,n,i,o);break}}t||n||(n=e)}))}return n&&f(n),t}},1136:function(e,t,n){function i(e,t){const n=t.querySelector(".js-video-play"),i=t.querySelector(".js-video-poster"),o=t.querySelector(".js-video-dimmer");"play"===e?(o.style.bacgroundColor="transparent",n.style.display="none",i.style.display="none"):(o.style.backgroundColor="rgba(0, 0, 0, 0.35)",n.style.display="flex",i.style.display="block")}function o(){const e=document.querySelectorAll(".js-video");e&&e.length&&e.forEach((e=>{const t=e.closest(".video-block");t.querySelector(".js-video-dimmer").addEventListener("click",(()=>{e.paused?(i("play",t),e.play()):(i("pause",t),e.pause())}))}))}n.d(t,{S:function(){return i},r:function(){return o}})}},function(e){e.O(0,[8096],(function(){return e(e.s=3567)})),e.O()}]);