var insertForm334848 = function() {
var html334848 = '' +
'.email-registration-form label{color: #404040;' +
' display: block;}' +
'' +
'.email-registration-form label.error{color:#900;' +
' display: inline-block; ' +
' padding: 0 10px;}' +
'' +
'.email-registration-form .field{padding: 4px 0;}' +
'' +
'.email-registration-form .consent{padding-bottom: 4px;}' +
'' +
'.email-registration-form .field .required-star{color: #aa0000; ' +
' display: inline-block; ' +
' margin-left: 5px;}' +
'' +
'.email-registration-form .field .checkboxes{max-width:275px;' +
' border: 1px solid #A9A9A9;' +
' -webkit-transition: all .3s ease-out;' +
' -moz-transition: all .3s ease-out;' +
' transition: all .3s ease-out;}' +
'' +
'.email-registration-form .field .checkbox{display:block;' +
' position:relative;' +
' -moz-box-sizing:border-box;' +
' box-sizing:border-box;' +
' height:30px;' +
' line-height:26px;' +
' padding:2px 28px 2px 8px;' +
' border-bottom:1px solid rgba(0,0,0,0.1);' +
' color:#404040; ' +
' overflow:hidden;' +
' text-decoration:none; }' +
'' +
'.email-registration-form .field .checkbox input{opacity:0.01;' +
' position:absolute;' +
' left:-50px; ' +
' z-index:-5;}' +
'' +
'.email-registration-form .field .checkbox:last-child{border-bottom:none;}' +
'' +
'.email-registration-form .field .checkbox.selected{background: rgb(50, 142, 253);' +
' color:#fff; }' +
'' +
'.email-registration-form .field .checkbox.selected:before{color:#fff;' +
' line-height:30px;' +
' position:absolute;' +
' right:10px; }' +
'' +
'.email-registration-form .field input{padding: 4px; ' +
' width: 275px;}' +
'' +
'.email-registration-form .errors{border: 1px solid #900;' +
' color: #900; ' +
' padding: 10px;}' +
'' +
'.email-registration-form .hidden{display: none;}' +
'' +
'.btn-group .btn-submit-email{padding: 4px 10px;}' +
'' +
'input, select, textarea, button{font-family: inherit;}' +
'' +
'' +
'' +
'' +
' ' +
' ' +
' ' +
' Contact Information
' +
' ' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
' ' +
' Additional Information
' +
' ' +
'' +
'' +
' ' +
' ' +
' ' +
' ' +
' ' +
'' +
'' +
'' + '';var successHtml334848 = '' +
' Thank you for signing up!
' +
' Your email address has been added to our mailing list. You should hear from us soon.
' +
' ' +
'';( function($) {if (!Bloomerang.useEmailId('334848')) {
html334848 = 'Only one email sign-up form can be used on each page.
';
}
Bloomerang.Util.requireStripe();if (jQuery('#bloomerangForm334848').length) {
jQuery('#bloomerangForm334848').after(html334848);
};
if (Bloomerang.emailSignupFormLoaded) {
return false;
}
Bloomerang.emailSignupFormLoaded = true;
jQuery('.email-registration-form .section.captcha').attr('style', 'display: none');
Bloomerang.useKey('pub_1b959dcf-4cf4-11ee-ab5f-06952541f0f3');
// Register proper callbacks for various stages/outcomes of submission
Bloomerang.Widget.Email.OnSubmit = function (args) {
jQuery(".btn-submit-email").val("Registering...").prop("disabled", true).addClass("disabled");
var val = function (selector) { return jQuery(selector).val(); };
Bloomerang.Account
.individual()
.firstName(val(".email-registration-form #first-name"))
.lastName(val(".email-registration-form #last-name"))
.homeEmail(val(".email-registration-form #email-address"))
.applyEmailSignupCustomFields();
Bloomerang.Interaction.applyEmailSignupCustomFields();
};
Bloomerang.ValidateEmailSignupFormCaptcha = function() {
if (typeof(grecaptcha) !== "undefined" && jQuery("#captcha" + Bloomerang.Data.WidgetIds.EmailSignup).children().length) {
var captchaResponse = grecaptcha.getResponse(jQuery(".email-registration-form").data("captcha-id"));
if (captchaResponse) {
jQuery(".email-registration-form .noCaptchaResponseError").hide();
Bloomerang.captchaResponse(captchaResponse);
return true;
} else {
jQuery(".email-registration-form .noCaptchaResponseError").show();
return false;
}
} else return true;
};
Bloomerang.Api.OnSuccess = Bloomerang.Widget.Email.OnSuccess = function (response) {
jQuery("#email-registration-form-container").html(successHtml334848);
var distance = 100;
var offset = jQuery("#email-registration-form-container").offset().top;
var offsetTop = offset > distance ? offset - distance : offset;
jQuery('html, body').animate({ scrollTop : offsetTop}, 500);
};
Bloomerang.Api.OnError = Bloomerang.Widget.Email.OnError = function (response) {
jQuery(".btn-submit-email").val("Register").prop("disabled", false).removeClass("disabled");
jQuery("#email-registration-form-container .errors").removeClass("hidden").html(response.Message);
var distance = 100;
var offset = jQuery("#email-registration-form-container .errors").offset().top;
var offsetTop = offset > distance ? offset - distance : offset;
jQuery('html, body').animate({ scrollTop : offsetTop}, 500);
if (typeof(grecaptcha) !== "undefined" && jQuery("#captcha" + Bloomerang.Data.WidgetIds.EmailSignup).children().length) {
grecaptcha.reset(jQuery(".email-registration-form").data("captcha-id"));
}
};
Bloomerang.Util.applyEmailSignupCustomFields = function (obj, type) {
// Clear any fields from a previous failed submission
obj.clearCustomFields();
// Apply all (not multiselect), and We will never share or sell your contact information. Let us know what interests you, and we’ll stay in touch!
