!function(){return function t(e,i,n){function o(r,c){if(!i[r]){if(!e[r]){var u="function"==typeof require&&require;if(!c&&u)return u(r,!0);if(s)return s(r,!0);var a=new Error("Cannot find module '"+r+"'");throw a.code="MODULE_NOT_FOUND",a}var h=i[r]={exports:{}};e[r][0].call(h.exports,function(t){return o(e[r][1][t]||t)},h,h.exports,t,e,i,n)}return i[r].exports}for(var s="function"==typeof require&&require,r=0;r<n.length;r++)o(n[r]);return o}}()({1:[function(t,e,i){!function(t,e){if("function"==typeof define&&define.amd)define([],e);else if(void 0!==i)e();else{e(),t.contactForm={}}}(this,function(){"use strict";var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),e=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.$form=document.getElementById("contactForm"),this.$submit=this.$form.querySelector("button[type=submit]"),this.onSubmit=this.onSubmit.bind(this),this.$form.addEventListener("submit",this.onSubmit),this.onCaptchaDismissed=this.onCaptchaDismissed.bind(this),this.captchaExecuted=!1,this.captchaDismissed=!1}return t(e,[{key:"onCaptchaDismissed",value:function(t){this.captchaDismissed=!0,window.removeEventListener("mousedown",this.onCaptchaDismissed)}},{key:"onSubmit",value:function(t){if(!document.getElementById("g-recaptcha-response")||!document.getElementById("g-recaptcha-response").value)return t&&t.preventDefault&&t.preventDefault(),window.grecaptcha&&!this.captchaExecuted&&(window.grecaptcha.execute(),this.captchaDismissed=!1,window.addEventListener("mousedown",this.onCaptchaDismissed),this.captchaExecuted=!0),this.captchaDismissed?(this.captchaExecuted=!1,this.$submit.removeEventListener("click",this.onSubmit),this.$submit.addEventListener("click",this.onSubmit),!1):(window.requestAnimationFrame(this.onSubmit),!1);this.$submit.disabled=!0,this.$form.submit()}}]),e}();window.onload=function(){document.getElementById("contactForm")&&(window.contactForm=new e)}})},{}]},{},[1]);;
