"use strict";(self.webpackChunkgulp_template=self.webpackChunkgulp_template||[]).push([[7933],{105:function(e,t,n){function s(e,t){const n=function(e){let t=!1;for(let n=0;n{e.addEventListener("input",(function(){s(t,n)}))})))}}var o=n(883),r=n(2785),a=n(3016),c=n(1153),l=n(2936),u=n(600);function d(e,t=""){const n=function(e,t){return`\n
\n
\n \n \n \n \n
\n
\n ${t||`

${e}

`}\n
\n
\n `}(e,t);document.body.insertAdjacentHTML("afterbegin",n),document.querySelector('[data-notification="close"]').addEventListener("click",(()=>{f()})),setTimeout((()=>{f()}),1e4)}function f(){const e=document.querySelector("[data-notification]");e&&e.remove()}function h(e,t,n,s,i,o,r){try{var a=e[o](r),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(s,i)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(s,i){var o=e.apply(t,n);function r(e){h(o,s,i,r,a,"next",e)}function a(e){h(o,s,i,r,a,"throw",e)}r(void 0)}))}}window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".js-auth-form"),t=document.querySelector(".js-registration-form"),n=document.querySelector(".js-forgot-password-form"),s=document.querySelector(".js-send-code-form"),f=document.querySelector(".js-change-password-form"),h=document.querySelector(".js-send-registration"),m=document.querySelector(".js-agreement-block"),v=document.querySelectorAll(".js-agreement-checkbox");if(e){const b=e.querySelector(".js-email-or-phone"),y=e.querySelector(".js-code-checkbox"),S=e.querySelector(".js-password-input"),j=e.querySelector(".js-code-input");if(b&&b.addEventListener("input",(function(){const e=y.closest(".checkbox");(0,a.LF)(this.value)?e.classList.contains("disabled")&&e.classList.remove("disabled"):(e.classList.contains("disabled")||e.classList.add("disabled"),y.checked=!1,y.dispatchEvent(new Event("change")))})),y&&S&&j){const w=S.querySelector(".js-input-base"),L=j.querySelector(".js-input-base");y.addEventListener("change",(function(){this.checked?(S.classList.add("input-base--hidden"),w.classList.add("novalidate"),j.classList.remove("input-base--hidden"),L.classList.remove("novalidate"),w.value="",w.dispatchEvent(new Event("input"))):(S.classList.remove("input-base--hidden"),w.classList.remove("novalidate"),j.classList.add("input-base--hidden"),L.classList.add("novalidate"),L.value="",L.dispatchEvent(new Event("input")))}))}}if(n){!function(e){const t=document.querySelector(".js-group-radio"),n=t.querySelectorAll(".js-radio-item");let s=t.querySelector("input:checked").value;n.length&&n.forEach((t=>{t.addEventListener("change",(t=>{e(t.target.value)}))})),e(s)}(E);const x=n.querySelectorAll(".js-input-base");function E(e){n.querySelectorAll("[data-form-item]").forEach((t=>{t.style.display="none",t.getAttribute("data-form-item")===e&&(t.style.display="flex")}))}x.forEach(((e,t)=>{e.addEventListener("input",(function(){const e=0===t?1:0;this.value?(this.classList.contains("novalidate")&&this.classList.remove("novalidate"),x[e].classList.contains("novalidate")||x[e].classList.add("novalidate")):x[e].classList.remove("novalidate")}))}))}if(t){const q=t.querySelector(".js-phone-number"),A=t.querySelector(".js-phone-code"),C=null==A?void 0:A.querySelector(".js-input-base"),_=t.querySelector(".js-phone-code-confirm"),O=t.querySelector(".js-minutes"),k=t.querySelector(".js-seconds"),N=t.querySelector(".js-code-info"),P=t.querySelector(".js-send-code-info"),T=t.querySelector(".js-inn-code-confirm"),R=t.querySelector(".js-inn-self-employed");function U(){document.querySelector('[name="captcha-token"]').value=document.querySelector('[name="smart-token"]').value,BX.ajax.runComponentAction("bitrix:main.register","sendPhoneCode",{mode:"ajax",data:{phone:document.querySelector(".js-phone-number").value,sessid:BX.message("bitrix_sessid"),token:document.querySelector('[name="smart-token"]').value}}).then((e=>{const t=JSON.parse(e.data),n=document.querySelector(".js-base-phone-number"),s=n.querySelector(".input-base__error");if(document.removeEventListener("capchaVerified",U),t.error)n.classList.add("error"),s.textContent=t.error;else{const e=n.querySelector(".js-phone-number"),t=document.querySelector(".js-phone-code .js-input-base");t.removeAttribute("readonly"),t.classList.remove("novalidate"),e.setAttribute("data-validations","required,phone"),e.dispatchEvent(new Event("input")),A.classList.contains("input-base--hidden")&&(A.classList.remove("input-base--hidden"),_.classList.add("hidden")),_.setAttribute("disabled",""),I()}}))}function I(){let e=119,t=!0,n=!1;if(!n&&t){let s=setInterval((()=>{e<=0&&(t=!0,n=!1,N.classList.add("hidden"),A.classList.contains("input-base--hidden")||P.classList.remove("hidden"),P.addEventListener("click",p((function*(){window.smartCaptcha.reset(),window.smartCaptcha.execute(),document.addEventListener("capchaVerified",U)}))),clearInterval(s)),e--;const i=e>0?Math.floor(e/60)%60:0,o=e>0?Math.floor(e)%60:0;O.textContent=i<10?"0"+i:i,k.textContent=o<10?"0"+o:o}),1e3);t=!1,n=!0,N.classList.remove("hidden")}else N.classList.remove("hidden")}function M(){return $.apply(this,arguments)}function $(){return $=p((function*(){const e=R.value;try{document.removeEventListener("capchaVerified",M);const t=yield(0,u.A)({ACTION:"checkInn",INN:e,token:document.querySelector('[name="smart-token"]').value}),n=document.querySelector(".js-inn-self-employed-success"),s=document.querySelector(".js-base-inn-self-employed"),i=s.querySelector(".input-base__error");let o=!1;s.classList.contains("success")&&s.classList.remove("success"),s.classList.contains("error")&&s.classList.remove("error"),i.textContent="",t.code&&s.classList.add("error"),"validation.failed"===t.code&&(i.textContent=t.message),"taxpayer.status.service.limited.error"===t.code&&(i.textContent="Превышено количество запросов, пожалуйста, попробуйте позднее"),!1===t.status&&(s.classList.add("error"),i.textContent=t.message,o=!1,D('\n

Статус Самозанятого не подтвержден.

\n

Вы можете зарегистрироваться как физическое лицо из Клуба друзей Стенова или пройти регистрацию как юридическое лицо.

\n ')),t.status&&(s.classList.add("success"),i.textContent="ИНН подтвержден",o=!0),n.value=o}catch(e){console.error("runSendCodeInn",e)}})),$.apply(this,arguments)}function D(e){d("",e)}q&&A&&C&&(setTimeout((()=>{C.value="",(0,a.lZ)(q.value)&&_&&_.hasAttribute("disabled")&&_.removeAttribute("disabled")}),100),q.addEventListener("input",(function(){N.classList.add("hidden"),P.classList.add("hidden"),setTimeout((()=>{(0,a.lZ)(this.value)?_&&_.hasAttribute("disabled")&&_.removeAttribute("disabled"):(A.classList.remove("success"),_&&!_.hasAttribute("disabled")&&_.setAttribute("disabled",""),A.classList.contains("input-base--hidden")||(A.classList.add("input-base--hidden"),_.classList.remove("hidden")),C.value="",C.dispatchEvent(new Event("input")))}),100)})),C.addEventListener("input",(function(){if((0,a.M2)(this.value.trim()))try{BX.ajax.runComponentAction("bitrix:main.register","verifyCode",{mode:"ajax",data:{code:this.value.trim(),sessid:BX.message("bitrix_sessid")}}).then((e=>{const t=JSON.parse(e.data),n=this.closest(".js-phone-code"),s=n.querySelector(".input-base__error"),i=n.querySelector(".js-clear-button");t.error?(n.classList.add("error"),s.textContent=t.error,this.value="",i.classList.remove("show")):t.success&&(this.setAttribute("readonly",""),i.classList.remove("show"),n.classList.add("success"),s.textContent=t.success)}))}catch(e){console.log(e)}}))),_&&_.addEventListener("click",p((function*(){window.smartCaptcha.reset(),window.smartCaptcha.execute(),document.addEventListener("capchaVerified",U)}))),setTimeout((()=>{(0,a.bB)(R.value)&&(null==T?void 0:T.hasAttribute("disabled"))&&_.removeAttribute("disabled")}),100),R.addEventListener("input",(function(){var e,t;(null===(e=this.value)||void 0===e?void 0:e.length)>this.maxLength&&(this.value=this.value.slice(0,this.maxLength)),(null===(t=this.value)||void 0===t?void 0:t.length){"Другое"===e.target.value?(H.closest(".auth-items-i").classList.remove("hidden"),H.value=""):(H.closest(".auth-items-i").classList.add("hidden"),H.value=e.target.value)}))}function g(){[...v].every((e=>e.checked))?h.removeAttribute("disabled"):h.setAttribute("disabled",!0)}g(),m.addEventListener("input",(()=>{g()})),(0,o.A)(e),i(e),(0,o.A)(s),i(s),(0,o.A)(t,(()=>{ym(25098083,"reachGoal","registr")})),(0,o.A)(n),(0,o.A)(f),i(f),(0,r.k)()}))},1153:function(e,t,n){n.d(t,{D:function(){return h}});var s=n(7371);function i(e,t,n,s,i,o,r){try{var a=e[o](r),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(s,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(s,o){var r=e.apply(t,n);function a(e){i(r,s,o,a,c,"next",e)}function c(e){i(r,s,o,a,c,"throw",e)}a(void 0)}))}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){for(var t=1;t{new s(h,c(a({},t),{load:function(){var t=o((function*(t,s){const o={method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Token "+l},body:JSON.stringify(c(a({},n),{query:t}))};try{if(e[0].tomselect.lastValue.length>=5){const e=yield fetch(i,o),t=yield e.json();let n=[];n=r.length?t.suggestions.map((e=>{const t={};return r.forEach((n=>{t[n.name]=f(n.path,e.data)})),t.value=JSON.stringify(t),t})):t.suggestions,s(n)}}catch(e){s()}}));return function(e,n){return t.apply(this,arguments)}}(),render:{option:function(e,t){return`
\n ${e.name}, ИНН: ${t(e.inn)}\n
`},item:function(e,t){return`
${e.inn}
`},no_results:function(){return'
По запросу ничего не найдено
'},loading:function(){return'
'}},onItemAdd:function(){var e=o((function*(e,t){const n=document.querySelectorAll(".js-inn-autocomplete-field");let s=JSON.parse(t.dataset.result);if(d){const e=yield u(s.inn);e&&(s=Object.assign(s,e))}!function(e=[],t={}){e.length&&t&&Object.keys(t).length&&e.forEach((e=>{const n=f(e.dataset.autocompleteName||"",t);n&&(e.value=n,e.dispatchEvent(new Event("input")))}))}(n,s)}));return function(t,n){return e.apply(this,arguments)}}(),onChange:function(){const e=h.closest(".js-select-wrapper");e&&e.classList.contains("error")&&e.classList.remove("error")}}))}))}},2936:function(e,t,n){n.d(t,{A:function(){return r}});var s=n(7371);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t{var i;const r=t.hasAttribute("data-select-with-search"),a=null===(i=t.closest(".js-select-wrapper"))||void 0===i?void 0:i.querySelector(".js-select-name"),c=new s(t,o({sortField:function(e,t){var n=this.items[e.id],s=this.items[t.id];return n.text.localeCompare(s.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 s=e.control_input;s.classList.add("input-base__input","js-input-base"),n.innerHTML='\n
\n \n \n
\n ',n.querySelector(".input-base__label").append(s),n.querySelector(".js-clear-button").addEventListener("click",(()=>{e.setTextboxValue(""),e.refreshOptions(!1),s.focus()}))}(this,this.dropdown)}},e));a&&a.addEventListener("click",(function(){c.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(c)})),n}},883:function(e,t,n){n.d(t,{A:function(){return r}});var s=n(3016);function i(e,t,n,s,i,o,r){try{var a=e[o](r),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(s,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(s,o){var r=e.apply(t,n);function a(e){i(r,s,o,a,c,"next",e)}function c(e){i(r,s,o,a,c,"throw",e)}a(void 0)}))}}function r(e,t,n=!0){e&&e.addEventListener("submit",function(){var i=o((function*(i){i.preventDefault();const o=this.querySelectorAll(".js-input-base[data-validations]:not(.novalidate)"),r=this.querySelectorAll(".js-select[data-validations]:not(.novalidate)"),a=Array.from(r).map((e=>(e.selectedOptions[0].classList.add(".js-select-option"),e.selectedOptions[0].dataset.validations=e.dataset.validations,e.selectedOptions[0]))),c=(0,s.MG)([...o,...a]);if(n&&c)if(e.classList.contains("js-registration-form")){let n=new FormData(e),s=yield fetch("/local/templates/stenova/ajax/checkEmail.php",{method:"POST",body:JSON.stringify({EMAIL:n.get("REGISTER[EMAIL]")})}),i=yield s.json();if(i.success)"function"==typeof t&&t(),function(e){const t=e.querySelectorAll('[name="UF_INN"]');let n="";for(const e of t)e.value?n=e.value:e.value=n;e.submit()}(e);else{const t=e.querySelector('[name="REGISTER[EMAIL]"]').closest(".input-base");t.classList.add("error"),t.querySelector(".input-base__error").textContent=i.message,t.style.marginBottom="2.8rem",t.scrollIntoView({block:"center",behavior:"smooth"})}}else e.classList.contains("js-buy-cards-form")?(document.addEventListener("capchaVerified",(()=>{ym(25098083,"reachGoal","oplata_cards"),this.submit()})),window.smartCaptcha.reset(),window.smartCaptcha.execute()):("function"==typeof t&&t(),this.submit())}));return function(e){return i.apply(this,arguments)}}())}},2785:function(e,t,n){function s(e,t){const n=Math.abs(e)%100,s=e%10;return n>10&&n<20?t[2]:s>1&&s<5?t[1]:1==s?t[0]:t[2]}n.d(t,{t:function(){return l},k:function(){return u}});var i=n(3016);let o=[];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 s=function(e){const t=document.createElement("template"),n=`\n
\n \n \n \n \n
\n \n \n
\n
\n `;for(let s=0;s{const o=s.querySelector(".js-file-name"),r=s.querySelector(".js-delete-file");o.innerText=function(e){return e.length>13?`${e.substring(0,6)}...${e.substring(e.length-6)}`:e}(t.files[i].name),r.addEventListener("click",(function(){c.call(this,e,t,n)}))})),e.append(...s))}function c(e,t,n){const i=e.closest(".js-file-input-container"),a=e.querySelectorAll(".js-file"),c=this.closest(".js-file");if(a.length&&c){const l=Array.from(a).findIndex((e=>c===e));-1!==l&&(o.splice(l,1),t.files=r(o),e.removeChild(c),i.classList.contains("error")&&i.classList.remove("error"),o.length?n.innerText=`${o.length} ${s(o.length,["файл","файла","файлов"])} ${s(o.length,["выбран","выбраны","выбраны"])}`:n.innerText=n.dataset.placeholder)}}function l(){const e=document.querySelectorAll(".js-file-input-container");o=[],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"),c=e.querySelector(".js-file-input"),l=e.querySelector(".js-file-input-info");c&&l&&c.addEventListener("change",(u=>{const d=o.length;u.target.files.length&&(u.target.hasAttribute("multiple")||(o=[],n.firstChild&&n.removeChild(n.firstChild)),o.push(...u.target.files));const f=function(e,t){const n={files:t||[],maxWeight:10},s={maxWeight:(0,i.tJ)(n),maxCount:(0,i.X5)(n)},o=document.querySelector(".js-language-radio:checked")?document.querySelector(".js-language-radio:checked").value:"RU";return s.maxWeight?!!s.maxCount||((0,i.Nh)(e,"filesMaxCount",".input-file-base",o),s.maxCount):((0,i.Nh)(e,"fileMaxWeight",".input-file-base",o),s.maxWeight)}(u.target,o);if(f?e.classList.contains("error")&&e.classList.remove("error"):(o=o.slice(0,d),u.target.value=""),o.length){const e="RU"===t?["файл","файла","файлов"]:["file","files","files"],n="RU"===t?["выбран","выбраны","выбраны"]:["selected","selected","selected"];l.innerText=`${o.length} ${s(o.length,e)} ${s(o.length,n)}`}else l.innerText=l.dataset.placeholder;a(n,c,l),u.target.files=r(o)}))}))}},600:function(e,t,n){function s(e,t,n,s,i,o,r){try{var a=e[o](r),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(s,i)}function i(e){return o.apply(this,arguments)}function o(){return e=function*(e){const t=new FormData;for(let n in e)t.append(n,e[n]);t.append("IS_AJAX_ACTION","Y");try{const e=yield fetch("/",{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},body:t});return yield e.json()}catch(e){return console.log("error",e),!1}},o=function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){s(r,i,o,a,c,"next",e)}function c(e){s(r,i,o,a,c,"throw",e)}a(void 0)}))},o.apply(this,arguments);var e}n.d(t,{A:function(){return i}})},3016:function(e,t,n){n.d(t,{LF:function(){return o},M2:function(){return l},MG:function(){return v},Nh:function(){return f},X5:function(){return d},bB:function(){return r},lZ:function(){return i},tJ:function(){return u}});const s=e=>!isNaN(Number(e.trim())),i=e=>11===String(e).replace(/[^\d]/g,"").substring(0,11).length,o=e=>new RegExp(/^(\+?\d)\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{2})[- ]?(\d{2})$/).test(e),r=e=>s(e)&&12===String(e.trim()).length,a=e=>new RegExp(/^[^@]+@[\w\-]+(\.\w+)+\w$/).test(e)||0===e.trim().length,c=e=>new RegExp(/^[^@]+@[\w\-]+(\.\w+)*\.ru$/).test(e)||0===e.trim().length,l=e=>s(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,f=(e,t,n=".input-base",s="RU")=>{const i=e.closest(n);if(i){const e=i.querySelector(`${n}__error`);i.classList.add(m),e&&(e.innerText=p[t].text[s])}},h=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:i},inn:{text:{RU:"ИНН должен состоять из 10 или 12 цифр",EN:"TIN must be 10 or 12 digits"},action:e=>s(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=>s(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:c},onlyNumbers:{text:{RU:"Поле должно содержать только цифры",EN:"The field must contain only numbers"},action:s},cardNumber:{text:{RU:"Номер карты должен состоять из 15 цифр",EN:"Card number must be 15 digits"},action:e=>{const t=e.replace(/\s/g,"");return 15===t.length&&s(t)||0===t.length}},cost:{text:{RU:"Поле должно состоять только из цифр",EN:"The field must contain only numbers"},action:e=>{const t=e.replace(/\s/g,"");return s(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=>s(e)&&11===String(e.trim()).length||0===String(e.trim()).length},payCheck:{text:{RU:"Расчетный счет должен состоять из 14 цифр",EN:"Account must be 14 digits long"},action:e=>s(e)&&14===String(e.trim()).length||0===String(e.trim()).length},bik:{text:{RU:"БИК должен состоять из 12 цифр",EN:"BIC must be 12 digits"},action:e=>s(e)&&12===String(e.trim()).length||0===String(e.trim()).length},phoneOrEmail:{text:{RU:"Не корректно заполнен email или телефон",EN:"Incorrectly filled email or phone"},action:e=>o(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=>o(e)||a(e)&&c(e)||0===String(e.trim()).length},confirmCode:{text:{RU:"Код должен состоять из 6 цифр",EN:"Code must be 6 digits"},action:l},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}},m="error";function v(e){let t=!0,n=null;if(e.length){const s=document.querySelectorAll(".js-language-radio");let i="RU";if(0!==s.length){const e=Array.from(s).find((e=>e.checked));i=e.value}e.forEach((e=>{const s=e.dataset.validations.split(",");for(let n of s){let s=".input-base",r=e.classList.contains("js-file-input")?{files:e.files,maxWeight:10}:e.value;if(e.classList.contains("js-file-input")&&(s=".input-file-base"),e.classList.contains(".js-select-option")&&(s=".select-wrapper"),"confirmPassword"===n){const t=e.closest(".js-form-container");if(t){var o;const n=(null===(o=t.querySelector(".js-input-password"))||void 0===o?void 0:o.value)||null;n&&(r={oldPassword:n,newPassword:e.value})}}if(!p[n].action(r)){t&&(t=!1),f(e,n,s,i);break}}t||n||(n=e)}))}return n&&h(n),t}}},function(e){e.O(0,[8096],(function(){return e(e.s=105)})),e.O()}]);