text: // eslint-disable-next-line
  !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);const n=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,o=/\+38\([0-9]{3}\)[0-9]{3}-[0-9]{2}-[0-9]{2}/,u={minLength:(e,t)=>e.length>=t,maxLength:(e,t)=>e.length<=t,pattern:(e,t)=>e.match(t),email(e){return this.pattern(e,n)},phone(e){return this.pattern(e,o)},numberRange:(e,t,r)=>""===e||e>=t&&e<=r},i=document.querySelector(".js-registration-form"),l=document.querySelector(".js-registration-first-name"),a=document.querySelector(".js-registration-last-name"),c=document.querySelector(".js-registration-email"),s=document.querySelector(".js-registration-phone"),f=document.querySelector(".js-registration-age"),d=document.querySelector(".js-registration-validation");function b(e,t){e?function(e){e.setAttribute("style","border-color: rgb(0, 0, 0); color: rgb(0, 0, 0);")}(t):function(e){e.setAttribute("style","border-color: rgb(255, 0, 0); color: rgb(255, 0, 0);")}(t)}function m(e,t,r){return u.minLength(e,t)&&u.maxLength(e,r)}i.addEventListener("submit",e=>{const t=m(l.value,2,20),r=m(a.value,2,20),n=u.email(c.value),o=u.phone(s.value),i=u.numberRange(f.value,18,120);b(t,l),b(r,a),b(n,c),b(o,s),b(i,f),t&&r&&n&&o&&i&&d.setAttribute("style","visibility: visible;"),e.preventDefault()})}]);
  