1"use strict";(self.webpackChunkneurosoft_website=self.webpackChunkneurosoft_website||[]).push([[744,5982,6045,6632,7384,8426,9570],{8356:function(e,t,n){n.d(t,{Em:function(){return o},J$:function(){return v},Kw:function(){return s},NV:function(){return g},Om:function(){return l},P8:function(){return h},PR:function(){return T},PT:function(){return u},PY:function(){return f},Qm:function(){return m},Sv:function(){return y},XY:function(){return d},Xt:function(){return r},b2:function(){return _},bo:function(){return S},e5:function(){return i},jq:function(){return L},kT:function(){return N},l5:function(){return p},oy:function(){return k},pj:function(){return b},qT:function(){return A},wX:function(){return E},yG:function(){return a},zK:function(){return c}});var r="commerce",i="general",o="school",a="hr",s="terra",u="service",c="course",l="conference",h="default",d="register-event",_="software-update",p="book",f="rating",A="subscribe",m="psycho",v="reset-password",y="change-password",g="register",b="login",k="marketing",T="callback",S="get-brochure",L="subscription-categories",E="neuro-form",N="user-auth"},15315:function(e,t,n){n.d(t,{AL:function(){return c},JH:function(){return u},Rd:function(){return h},kv:function(){return l},my:function(){return s}});var r,i=n(64467),o=n(78530),a=n(8356),s="working_hours",u="non_working_hours",c="OPEN",l="SUBMIT",h=(r={},(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,a.Xt,{analyticServices:[o.cu.YANDEX,o.cu.VK,o.cu.CALLTOUCH]}),a.e5,{analyticServices:[o.cu.YANDEX,o.cu.CALLTOUCH]}),a.zK,{analyticServices:[o.cu.YANDEX,o.cu.CALLTOUCH]}),a.Em,{analyticServices:[o.cu.CALLTOUCH]}),a.yG,{analyticServices:[o.cu.CALLTOUCH]}),a.Kw,{analyticServices:[o.cu.CALLTOUCH]}),a.PT,{analyticServices:[o.cu.CALLTOUCH]}),a.Om,{analyticServices:[o.cu.CALLTOUCH]}),a.P8,{analyticServices:[o.cu.CALLTOUCH]}),a.XY,{analyticServices:[o.cu.CALLTOUCH]}),(0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,a.b2,{analyticServices:[o.cu.CALLTOUCH]}),a.l5,{analyticServices:[o.cu.CALLTOUCH]}),a.Qm,{analyticServices:[o.cu.CALLTOUCH]}),a.bo,{analyticServices:[o.cu.CALLTOUCH]}))},16393:function(e,t,n){n.d(t,{A:function(){return a}});var r=n(23029),i=n(92901),o=(n(33110),n(39818)),a=function(){return(0,i.A)((function e(){(0,r.A)(this,e)}),null,[{key:"getDevices",value:function(){return o.A.sendRequest("get-device-block")}},{key:"getEquipmentsHtml",value:function(e){var t=e.id,n=e.type,r=e.kind,i=e.configuration,a=e.isBuyWith,s=void 0!==a&&a;return o.A.sendRequest("get-html-equipments",{method:"post",data:{id:t,type:n,kind:r,configuration:i,isBuyWith:s},responseType:"json"})}},{key:"getEquipmentsHtmlByTags",value:function(e){var t=e.tags,n=e.kind;return o.A.sendRequest("get-html-equipments-bytags",{method:"post",data:{tags:JSON.stringify(t),kind:n},responseType:"json"})}},{key:"getCategories",value:function(e){var t=e.type;return o.A.sendRequest("get-category-data",{method:"post",data:{type:t},responseType:"json"})}},{key:"getHistory",value:function(e){var t=e.id;return o.A.sendRequest("get-history-data",{method:"post",data:{id:t},responseType:"json"})}},{key:"getCompare",value:function(e){var t=e.list,n=e.category;return o.A.sendRequest("get-compare-data",{method:"post",data:{list:JSON.stringify(t),category:n},responseType:"json"})}},{key:"getSpecification",value:function(e){var t=e.id;return o.A.sendRequest("get-html-specification",{method:"post",data:{id:t},responseType:"json"})}},{key:"getEquipmentsInGroup",value:function(e){var t=e.group;return o.A.sendRequest("get-equipments-in-group",{method:"post",data:{group:t},responseType:"json"})}},{key:"searchDecrees",value:function(e,t){return o.A.sendRequest("search-decrees",{method:"post",data:{type:e,search_string:t},responseType:"json"})}}])}()},27800:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(43145);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(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)?(0,r.A)(e,t):void 0}}},30892:function(e,t,n){var r,i=n(64467),o=n(99448),a=n(8356),s=(r={},(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,a.Xt,o.A.translator.translate("ÐапиÑаÑÑ Ð² оÑдел пÑодаж")),a.Em,o.A.translator.translate("ÐапиÑаÑÑ Ð² ÑÑебнÑй ÑенÑÑ")),a.yG,o.A.translator.translate("ÐапиÑаÑÑ Ð² оÑдел кадÑов")),a.Kw,o.A.translator.translate("ÐаÑвка на пÑакÑикÑ")),a.PT,o.A.translator.translate("ÐапÑÐ¾Ñ Ð² ÑлÑÐ¶Ð±Ñ Ð¿Ð¾Ð´Ð´ÐµÑжки")),a.zK,o.A.translator.translate("ÐаÑвка на обÑÑение")),a.Om,o.A.translator.translate("ÐаÑвка на ÑÑаÑÑие в конÑеÑенÑии")),a.XY,o.A.translator.translate("ÐаÑвка на ÑегиÑÑÑаÑÐ¸Ñ Ð² меÑопÑиÑÑии")),a.b2,o.A.translator.translate("ÐапÑÐ¾Ñ Ð½Ð° обновление ÐÐ")),a.l5,o.A.translator.translate("Ðаказ книги")),(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,a.Qm,o.A.translator.translate("ÐапиÑаÑÑ Ð² оÑдел пÑодаж")),a.J$,o.A.translator.translate("ÐапÑÐ¾Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ паÑолÑ")),a.pj,o.A.translator.translate("ÐвÑоÑизаÑиÑ")),a.NV,o.A.translator.translate("РегиÑÑÑаÑÐ¸Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ полÑзоваÑелÑ")),a.PR,o.A.translator.translate("У Ð²Ð°Ñ Ð²Ð¾Ð·Ð½Ð¸ÐºÐ»Ð¸ вопÑоÑÑ?")),a.oy,o.A.translator.translate("ÐадаÑÑ Ð²Ð¾Ð¿ÑоÑ")),a.bo,o.A.translator.translate("ÐолÑÑиÑе инÑоÑмаÑÐ¸Ñ Ð¿Ð¾ напÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ Ð
1½Ð° ÑлекÑÑоннÑÑ Ð¿Ð¾ÑÑÑ")));t.A=s},43145:function(e,t,n){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:function(){return r}})},47561:function(e,t,n){n.d(t,{A:function(){return f}});n(88181);var r=n(80045),i=n(23029),o=n(92901),a=n(50388),s=n(53954),u=n(96045),c=n(15361),l=(n(46929),n(56478),n(92968)),h=n(94518),d=["windowHeight","define"];function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function p(e,t,n,r){var i=(0,u.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var f=function(e){function t(e){var n,o=e.windowHeight,u=void 0!==o&&o,c=e.define,h=void 0!==c&&c,p=(0,r.A)(e,d);(0,i.A)(this,t);var f,A,m,v=Object.assign({size:l.A.big,needBg:!0},p);return f=this,A=t,m=[v],A=(0,s.A)(A),n=(0,a.A)(f,_()?Reflect.construct(A,m||[],(0,s.A)(f).constructor):A.apply(f,m)),h?(n._definePopup(v.id),(0,a.A)(n)):(u&&(n._windowHeight=u,document.addEventListener("verticalResized",n.setPopupHeight.bind(n))),n)}return(0,c.A)(t,e),(0,o.A)(t,[{key:"createHTML",value:function(){p(t,"createHTML",this,3)([]),this._title=this._element.querySelector(".popup-header > .title"),this._subtitle=this._element.querySelector(".popup-header > .subtitle"),this._windowHeight&&this.setPopupHeight()}},{key:"_definePopup",value:function(e){this._element=document.body.querySelector("#".concat(e)),this.findOrCreateBg()}},{key:"show",value:function(){p(t,"show",this,3)([]),document.body.style.overflow="hidden"}},{key:"hide",value:function(){p(t,"hide",this,3)([]),document.body.style.overflow=""}},{key:"getTitleText",value:function(){return this._title.textContent}},{key:"setTitle",value:function(e){this._title.innerHTML=e}},{key:"getSubtitleText",value:function(){var e;return(null===(e=this._subtitle)||void 0===e?void 0:e.textContent)||""}},{key:"setSubtitle",value:function(e){this._subtitle&&(this._subtitle.innerHTML=e)}},{key:"setPopupHeight",value:function(){var e=window.innerHeight;this._element.style.height="".concat(e-30,"px")}},{key:"getPopupSize",value:function(){return{popupHeight:this._element.clientHeight,headerHeight:this._element.querySelector(".popup-header").scrollHeight}}}])}(h.A)},49809:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});n(60825);var r=n(10467),i=n(23029),o=n(92901),a=n(50388),s=n(53954),u=n(15361),c=n(54756),l=n.n(c),h=(n(2008),n(26099),n(3362),n(9391),n(98992),n(54520),n(78767)),d=n(39605),_=n(16393);n(42762);function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n,r,o,u,c=e.element;return(0,i.A)(this,t),r=this,o=t,u=[c],o=(0,s.A)(o),(n=(0,a.A)(r,p()?Reflect.construct(o,u||[],(0,s.A)(r).constructor):o.apply(r,u)))._input=n._element.querySelector("input"),n._buttonSearch=n._element.querySelector('[data-action="search"]'),n._cacheSearchText="",n._input&&n._buttonSearch?(n._buttonSearch.addEventListener("click",n._searchHandler.bind(n)),n._element.addEventListener("keypress",n._onKeyPressHandler.bind(n)),n):(0,a.A)(n)}return(0,u.A)(t,e),(0,o.A)(t,[{key:"setSearchString",value:function(e){this._input.value=e}},{key:"_searchHandler",value:function(){var e=this._input.value.trim().toLowerCase();this._cacheSearchText!==e&&(this._cacheSearchText=e,this._trigger("search:decree",{text:e}))}},{key:"_onKeyPressHandler",value:function(e){var t=e.charCode||e.keyCode||0;13===parseInt(t,10)&&this._searchHandler()}}])}(h.A),A=n(51101),m=(n(23792),n(47764),n(62953),n(8356));function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var y=function(e){function t(){return(0,i.A)(this,t),e=this,n=t,r=arguments,n=(0,s.A)(n),(0,a.A)(e,v()?Reflect.construct(n,r||[],(0,s.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,u.A)(t,e),(0,o.A)(t,[{key:"_defineForm",value:function(){this._type===m.Qm?Promise.all([n.e(4071),n.e(2642),n.e(9565)]).then(n.bind(n,28441)).then(this._createForm.bind(this)):this._type===m.pj?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(8174)]).then(n.bind(n,18174)).then(this._createForm.bind(this)):this._type===m.NV?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(7896)]).then(n.bind(n,97896)).then(this._createForm.bind(this)):this._type===m.J$?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(1390)]).then(n.bind(n,41390)).then(this._createForm.bind(this)):this._type===m.Sv?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(8571)]).then(n.bind(n,88571)).then(this._createForm.bind(this)):this._type===m.PR?Promise.all([n.e(4071),n.e(8514),n.e(2642),n.e(6482)]).then(n.bind(n,86082)).then(this._createForm.bind(this)):this._type===m.b2?Promise.all([n.e(4071),n.e(2642),n.e(2500),n.e(5262)]).then(n.bind(n,50874)).then(this._createForm.bind(this)):this._type===m.bo?Promise.all([n.e(4071),n.e(2642),n.e(5620)]).then(n.bind(n,76512)).then(this._createForm.bind(this)):this._type===m.jq?Promise.all([n.e(4071),n.e(2642),n.e(5620),n.e(8376)]).then(n.bind(n,28376)).then(this._createForm.bind(this)):this._type===m.XY?Promise.all([n.e(4071),n.e(2642),n.e(7377)]).then(n.bind(n,5509)).then(this._createForm.bind(this)):this._defineDefaultForm()}}])}(n(76632).default);function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}var b=function(e){function t(e){var n,r,o,u;(0,i.A)(this,t),r=this,o=t,u=[e],o=(0,s.A)(o),(n=(0,a.A)(r,g()?Reflect.construct(o,u||[],(0,s.A)(r).constructor):o.apply(r,u)))._createProgressIndicator({element:document.body});var c=document.querySelector('[data-element="search-filter"]');c&&(n.filter=new A.A({element:c,current:"order"}),n.filter.on("filter-select",n._filterByType.bind(n))),n._decreeList=n._element.querySelector(".decree-list__wrap"),n._decreeListAllHtml=n._decreeList.innerHTML,n._decreeDevices=n._element.querySelector(".decree-devices"),n._message=n._element.querySelector('[data-element="message"]');var l=document.querySelector('[data-component="decree-search"]');return l&&n._initSearch(l),n}return(0,u.A)(t,e),(0,o.A)(t,[{key:"_filterByType",value:function(e){this._hideNothingFindMessage(),this._search.setSearchString(""),"order"===e.detail.value?(d.A.hideElement(this._decreeDevices),d.A.showElement(this._decreeList)):(d.A.hideElement(this._decreeList),d.A.showElement(this._decreeDevices))}},{key:"_initSearch",value:function(e){this._search=new f({element:e}),this._search.on("search:decree",this._loadSearchResult.bind(this))}},{key:"_loadSearchResult",value:(n=(0,r.A)(l().mark((function e(n){var r,i,o=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._hideNothingFindMessage(),this._progress.show(),r=this.filter._currentValue,""!==(i=n.detail.text)){e.next=8;break}return"order"===r?this._decreeList.innerHTML=this._decreeListAllHtml:this._showNothingFindMessage(),this._progress.hide(),e.abrupt("return");case 8:return e.abrupt("return",_.A.searchDecrees(r,i).then((function(e){if(e.error)throw e.error;var n="order"===r?o._decreeList:o._decreeDevices;
1n.innerHTML=e.html||"",NGl.Media.observeImagesForLoad(n),t.updateCommerceForms(),("order"===r?!o._decreeList.querySelectorAll("[data-decree]").length:!o._decreeDevices.querySelectorAll("article").length)&&o._showNothingFindMessage()})).catch((function(e){console.error(e),o._showNothingFindMessage()})).finally((function(){o._progress.hide()})));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_showNothingFindMessage",value:function(){d.A.showElement(this._message)}},{key:"_hideNothingFindMessage",value:function(){d.A.hideElement(this._message)}}],[{key:"updateCommerceForms",value:function(){var e=document.querySelectorAll('.decree-devices [data-action="open-form"]');[].forEach.call(e,(function(e){new y({btn:e})}))}}]);var n}(h.A)},51101:function(e,t,n){n.d(t,{A:function(){return l}});n(60825);var r=n(23029),i=n(92901),o=n(50388),a=n(53954),s=n(15361);n(50113),n(74423),n(23792),n(62062),n(26099),n(3362),n(21699),n(47764),n(62953),n(54554);var u=n(39605);function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var l=function(e){function t(e){var i,s,l,h,d=e.element,_=e.current,p=e.allText,f=e.isCheckbox,A=void 0!==f&&f,m=e.isRadio,v=void 0!==m&&m;return(0,r.A)(this,t),s=this,l=t,h=[d],l=(0,a.A)(l),(i=(0,o.A)(s,c()?Reflect.construct(l,h||[],(0,a.A)(s).constructor):l.apply(s,h)))._currentElement=i._element.querySelector('[data-element="filter-current"]'),i._list=i._element.querySelector('[data-element="filter-list"]'),_&&(i._currentValue=_),i._allText=p||NGl.translator.translate("ÐÑе"),Promise.all([n.e(4071),n.e(530)]).then(n.bind(n,78149)).then((function(e){i.collapse=new e.default({element:i._element,target:i._list})})),A?(i._checkboxes=i._list.querySelectorAll('[type="checkbox"]:not([value="all"])'),i._fullList=[].map.call(i._checkboxes,(function(e){return e.getAttribute("value")})),i._activateCheckbox(!0),i.on("change",i._change.bind(i),'[type="checkbox"]')):v?(i.isRadio=!0,i._checkboxes=i._list.querySelectorAll('[type="radio"]'),i._fullList=[].map.call(i._checkboxes,(function(e){return e.getAttribute("value")})),i._labels=i._list.querySelectorAll('[type="radio"]+label'),i._activateRadio(),i.on("change",i._changeRadio.bind(i),'[type="radio"]')):(i._currentItem=i._list.querySelector('[data-value="'.concat(i._currentValue,'"]')),u.A.setActive(i._currentItem),i.setCurrentText(),i.on("click",i._select.bind(i))),i}return(0,s.A)(t,e),(0,i.A)(t,[{key:"_select",value:function(e){var t=e.target.closest("[data-value]");t&&this._currentValue!==t.dataset.value&&(u.A.delActive(this._currentItem),this._currentValue=t.dataset.value,this._currentItem=t,u.A.setActive(this._currentItem),this._setCurrentAndClose())}},{key:"_change",value:function(e,t){var n,r,i,o=t.getAttribute("value");t.checked?"all"===o?(this._currentValue=this._fullList,this._activateCheckbox()):this._currentValue.push(o):"all"===o?(this._currentValue=[],this._activateCheckbox()):this._currentValue=(n=this._currentValue,r=o,-1!==(i=n.indexOf(r))&&n.splice(i,1),n),this._setCurrentAndClose()}},{key:"_changeRadio",value:function(e,t){this._currentValue=t.getAttribute("value"),this._setCurrentAndClose()}},{key:"_setCurrentAndClose",value:function(){this.setCurrentText(),this.collapse.close(),this._trigger("filter-select",{value:this._currentValue})}},{key:"_activateRadio",value:function(){var e=this,t=[].find.call(this._checkboxes,(function(t){return t.getAttribute("value")===e._currentValue}));t&&(t.checked=!0,this.setCurrentText())}},{key:"_activateCheckbox",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];[].forEach.call(this._checkboxes,(function(t){var n=t.getAttribute("value");e._currentValue.includes(n)?t.checked=!0:t.checked=!1})),t&&this._currentValue.length===this._fullList.length&&(this._list.querySelector('[value="all"]').checked=!0)}},{key:"setCurrentText",value:function(){var e=this;if(this.isRadio){var t=[].find.call(this._labels,(function(t){return t.getAttribute("for")==="region-".concat(e._currentValue)}));t&&(this._currentElement.innerHTML=t.innerHTML)}else"all"===this._currentValue?this._currentElement.innerHTML=this._allText:this._currentItem&&(this._currentElement.innerHTML=this._currentItem.textContent)}}])}(n(78767).A)},60519:function(e,t,n){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return r}})},64243:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(43145);function i(e){if(Array.isArray(e))return(0,r.A)(e)}},73893:function(e,t,n){function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:function(){return r}})},76632:function(e,t,n){n.r(t),n.d(t,{default:function(){return v}});n(88181);var r=n(10467),i=n(64467),o=n(23029),a=n(92901),s=n(50388),u=n(53954),c=n(15361),l=n(54756),h=n.n(l),d=(n(63214),n(94756),n(12079),n(78318),n(61336),n(17381),n(44561)),_=n(8356),p=n(30892),f=n(86511),A=n(47561);function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}var v=function(e){function t(e){var n,r,a,c,l=e.btn,h=e.type,d=e.size,p=e.isApiForm,f=void 0!==p&&p,A=e.formModule,v=void 0===A?null:A,y=e.getFormCallback,g=void 0===y?null:y;if((0,o.A)(this,t),r=this,a=t,c=[l.length?null:l],a=(0,u.A)(a),(n=(0,s.A)(r,m()?Reflect.construct(a,c||[],(0,u.A)(r).constructor):a.apply(r,c)))._type=h,n.isApiForm=f,v&&(n.formModule=v),"function"==typeof g&&(n.getFormCallback=g),n.ajaxProps=[],l)if(n._btnLaunch=l,l.length){var b;n._parameters=n._btnLaunch[0].dataset&&n._btnLaunch[0].dataset.parameters,n._id=null!==(b=n._btnLaunch[0].dataset)&&void 0!==b&&b.id?"".concat(n._btnLaunch[0].dataset.id):null}else{var k,T,S;if(n._type||(n._type=n._btnLaunch.dataset.type),null!==(k=n._btnLaunch.dataset)&&void 0!==k&&k.propName)n.ajaxProps.push((0,i.A)({},n._btnLaunch.dataset.propName,null===(S=n._btnLaunch.dataset)||void 0===S?void 0:S.propValue));n._parameters=n._btnLaunch.dataset&&n._btnLaunch.dataset.parameters,n._id=null!==(T=n._btnLaunch.dataset)&&void 0!==T&&T.id?"".concat(n._btnLaunch.dataset.id):null}return n._popupOptions={size:d||"medium"},n._type===_.pj?n._popupOptions.size="small":n._type===_.PR&&(n._popupOptions.size="extra-small"),n._getFormAction(),n}return(0,c.A)(t,e),(0,a.A)(t,[{key:"_getPopupId",value:function(){return this._id?"popupForm-".concat(this._type,"-").concat(this._id):"popupForm-".concat(this._type)}},{key:"_getFormAction",value:function(){var e=this;this._getFormHtml().then((function(t){if(!1===t.success)throw t.error;e._renderFormPopup(t.html)})).then((function(){e._defineForm()})).catch((function(e){"already-logged"!==e&&console.error(e)}))}},{key:"_getFormHtml",value:function(){return f.d.getForm(this._type,this._type===_.kT,this.ajaxProps)}},{key:"_renderFormPopup",value:function(e){var t;this._popup=new A.A({addClass:"popup-form popup-".concat(this._type),id:this._getPopupId(),type:this._type,title:this._getFormName(),size:this._popupOptions.size,content:e}),this._addUniqueIdForCheckboxes(),this._formElement=this._popup.getElement().querySelector("form"),this._withPages=!(null===(t=this._formElement.querySelectorAll("[data-page]"))||void 0===t||!t.length),this._addListenerToShow()}},{key:"_addUniqueIdForCheckboxes",value:function(){var e=this;if(this._id){var t=this._popup._element.querySelectorAll('input[type="checkbox"], input[type="radio"]');[].forEach.call(t,(function(t){var n=t.id;t.setAttribute("id","".concat(n,"-").concat(e._id)),e._popup._element.querySelector('label[for="'.concat(n,'"]')).setAttribute("for","".concat(n,"-").concat(e._id))}))}}},{key:"_getFormName",value:function(){return this._getCustomFormName()||this._getBaseFormName()}},{key:"_getCustomFormName",value:function(){return!!(this._btnLaunch&&this._btnLaunch.dataset&&this._btnLaunch.dataset.title)&&this._btnLaunch.dataset.title}},{key:"_getBaseFormName",value:function(){return p.A[this._type]||NGl.translator.translate("ÐÑпÑавиÑÑ ÑообÑение")}},{key:"_defineForm",value:function(){this._type===_.pj?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(8174)]).then(n.bind(n,18174)).then(this._createForm.bind(this)):this._type===_.NV?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(7896)]).then(n.bind(n,97896)).then(this._createForm.bind(this)):this._type===_.J$?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(1390)]).then(n.bind(n,41390)).then(this._createForm.bind(this)):this._type===_.Sv?Promise.all([n.e(4071),n.e(7329),n.e(2642),n.e(7231),n.e(8571)]).then(n.bind(n,88571)).then(this._createForm.bind(this)):this._defineDefaultForm()}},{key:"_defineDefaultForm",value:function(){this._withPages?Promise.all([n.e(4071),n.e(2642),n.e(2500),n.e(4938)]).then(n.bind(n,54570)).then(this._createForm.bind(this)):Promise.all([n.e(4071),n.e(2642),n.e(8597)]).then(n.bind(n,54105)).then(this._createForm.bind(this))}},{key:"_createForm",value:(v=(0,r.A)(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._form=new t.default({form:this._formElement,type:this._type,options:this._getOptions(),btnLaunch:this._btnLaunch,isApiForm:this.isApiForm}),this._createPages(),this._setSubtitleByNameField(),e.next=5,this.addPopupEventListeners();case 5:return e.next=7,this._initProgress();case 7:this._trigger("form-init",{form:this.getForm()}),this._processImmediateShow();case 9:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"_setSubtitleByNameField",value:function(){var e=this._formElement.querySelector('[data-element="name"] input');if(e){var t=this._getFormSubtitle();t&&(e.value=t)}null!=e&&e.value&&this._popup.setSubtitle(e.value)}},{key:"_getFormSubtitle",value:function(){var e,t=null===(e=this._getOptions())||void 0===e?void 0:e.formSubtitle;if(t)return t;var n=document.querySelector('[data-info="title"]'),r=document.querySelector('[data-info="teaser"]');return!!n&&n.innerText+(r?" ".concat(r.innerText):"")}},{key:"_createPages",value:function(){this._withPages&&(this._popupTitle=this._popup.getTitleText(),this._popup.setTitle(this.getPageTitle(this._form.getActivePageNum
1())))}},{key:"addPopupEventListeners",value:(d=(0,r.A)(h().mark((function e(){var t=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._form.on("close-popup",this.hidePopup.bind(this)),this._popup.on("show-popup",(function(){t._form._trigger("show-popup")})),this._withPages&&this._form.on("update-popup",(function(e){t._popup.setTitle(t.getPageTitle(e.detail.page)),t._popup.setPopupTop()}));case 3:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"_initProgress",value:(l=(0,r.A)(h().mark((function e(){var t=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._createProgressIndicator({element:this._popup.getElement(),placeToInsert:"afterbegin"});case 2:this._form.on("sending",(function(){t._progress.show()})),this._form.on("was-sent",(function(){t._progress.hide()}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"getPageTitle",value:function(e){return"".concat(this._popupTitle,' <span class="ml-15 text-normal text-light">').concat(e,"/").concat(this._form.getPagesCount(),"</span>")}},{key:"_getOptions",value:function(){return this._btnLaunch.length?this._btnLaunch[0].dataset:this._btnLaunch.dataset}},{key:"_addListenerToShow",value:function(){var e=this;this._btnLaunch.length?[].forEach.call(this._btnLaunch,(function(t){t.addEventListener("click",e.showPopup.bind(e))})):this._btnLaunch.addEventListener("click",this.showPopup.bind(this))}},{key:"_processImmediateShow",value:function(){NGl.hasQueryParamWithValue("show",this._type)&&this.showPopup()}},{key:"showPopup",value:function(){this._popup.show(),this._popup.setPopupTop()}},{key:"hidePopup",value:function(){this._popup.hide()}},{key:"getForm",value:function(){return this._form}}]);var l,d,v}(d.A)},80966:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(53954);function i(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=(0,r.A)(e)););return e}},86511:function(e,t,n){n.d(t,{d:function(){return c},f:function(){return u}});var r=n(89394),i=n(23029),o=n(92901),a=(n(63214),n(46929),n(39818)),s=n(8356),u=function(){function e(){(0,i.A)(this,e),this.formsCache={}}return(0,o.A)(e,[{key:"getForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="".concat(e);if(this.formsCache[i])return this.formsCache[i];var o="get-form";t&&(o="get-user-auth-form");var s={type:e};return Object.assign.apply(Object,[s].concat((0,r.A)(n))),this.formsCache[i]=a.A.sendRequest(o,{method:"get",data:s,responseType:"json"}),this.formsCache[i]}},{key:"getCourseForm",value:function(e,t){var n="".concat(e,"-").concat(t);return this.formsCache[n]||(this.formsCache[n]=a.A.sendRequest("get-form",{method:"get",data:{type:e,course:t},responseType:"json"})),this.formsCache[n]}}],[{key:"sendForm",value:function(t){var n=t.formData,r=t.type,i=e.getRequestUrlByType(r);return a.A.sendRequest(i,{method:"post",responseType:"json",dataType:"formData",data:n})}},{key:"getRequestUrlByType",value:function(e){switch(e){case s.J$:case s.Sv:return"send-user-form-data";case s.NV:return"register";case s.pj:return"login";default:return"send-form-data"}}}])}(),c=new u},89394:function(e,t,n){n.d(t,{A:function(){return s}});var r=n(64243),i=n(73893),o=n(27800),a=n(60519);function s(e){return(0,r.A)(e)||(0,i.A)(e)||(0,o.A)(e)||(0,a.A)()}},89664:function(e,t,n){n.d(t,{H:function(){return o}});var r,i=n(64467),o={INVALID_PARAMS:"invalid_params",INVALID_API_REQUEST:"invalid_api_request",INVALID_CREDENTIALS:"invalid_credentials",INVALID_SENDER:"invalid_sender",INVALID_REQUEST:"invalid_api_request",UNAUTHENTICATED:"unauthenticated",NO_ACCESS_TOKEN:"no_access_token",NO_REFRESH_TOKEN:"no_refresh_token",FORBIDDEN:"forbidden",UNAUTHORIZED:"unauthorized",USER_NOT_VERIFIED:"user_not_verified",USER_BLOCKED:"user_blocked",USER_INACTIVE:"user_inactive",USER_HAS_EXPIRED:"user_has_expired",PASSWORD_CHANGE_REQUIRED:"password_change_required",NOT_FOUND:"entity_not_found",FILE_NOT_FOUND:"file_not_found",NO_DATA:"no_data",NOT_VALID:"not_val
1id",METHOD_NOT_ALLOWED:"method_not_allowed",UNKNOWN_ERROR:"unknown_error",TOO_MANY_REQUESTS:"too_many_requests"};r={},(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,o.INVALID_PARAMS,400),o.INVALID_API_REQUEST,400),o.INVALID_CREDENTIALS,400),o.INVALID_SENDER,400),o.INVALID_REQUEST,400),o.UNAUTHENTICATED,401),o.NO_ACCESS_TOKEN,401),o.NO_REFRESH_TOKEN,401),o.FORBIDDEN,403),o.UNAUTHORIZED,403),(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)(r,o.USER_NOT_VERIFIED,403),o.USER_BLOCKED,403),o.USER_INACTIVE,403),o.USER_HAS_EXPIRED,403),o.PASSWORD_CHANGE_REQUIRED,403),o.NOT_FOUND,404),o.FILE_NOT_FOUND,404),o.NO_DATA,404),o.NOT_VALID,422),o.METHOD_NOT_ALLOWED,405),(0,i.A)((0,i.A)(r,o.UNKNOWN_ERROR,500),o.TOO_MANY_REQUESTS,429)},96045:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(80966);function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=(0,r.A)(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},i.apply(null,arguments)}}}]);
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.