Please Select A Package!"):($("#selectAddon").css("border",""),"")),(""==$(a).val()||null==$(a).val())&&1==$(a).is(":required")&&"g-recaptcha-response"!=$(a).attr("name")&&"submit"!=$(this).attr("name")?(s=!0,$(a).css("border-color","red")):$(a).css("border-color","#a5a5a5")}),""!=a){var o=document.getElementById("signature-pad").querySelector("canvas");signaturePad.isEmpty()?(t=!0,r="
Please Fill In Your Signature!",o.style.border="2px solid red"):(o.style.border="2px solid #a5a5a5",r="",t=!1)}if(s||t)return $(e).find(".response-message").html("Please Fill Out The Required Fields To Submit!"+r),$(e).find(".response-message").css("color","red"),!1;$(e).find(".response-message").html(""),$(e).find(".response-message").css("color",""),sendMail(e,a)}function sendMail(r,e){e=e||"";var s={To:0,From:0,Recaptcha:"",Fields:[]};"#contact-form"==r&&(s.To=0,s.From=0),"#donation-form"==r&&(s.To=1,s.From=1),"#rfp-form"==r&&(s.To=2,s.From=2),"#Questionnaire-form"==r&&(s.To=3,s.From=3),"#hotel-room-form"==r&&(s.To=3,s.From=4),"#influencer-form"==r&&(s.To=4,s.From=5),s.Recaptcha=$(r).find("[name='g-recaptcha-response']").val(),$(r).find(":input").each(function(e,a){"submit"!==$(a).attr("type")&&"button"!==$(a).attr("type")&&"g-recaptcha-response"!==$(a).attr("name")&&0==$(a).is(":disabled")&&("checkbox"==$(a).attr("type")||"radio"==$(a).attr("type")?$(a).is(":checked")&&("checkbox"==$(a).attr("type")?s.Fields.push({FieldName:$(a).attr("name"),FieldValue:"Yes"}):s.Fields.push({FieldName:$(a).attr("name"),FieldValue:$(a).val()})):"checkbox"!==$(a).attr("type")&&s.Fields.push({FieldName:$(a).attr("name"),FieldValue:$(a).val()}))}),""!=e&&s.Fields.push({FieldName:"SignatureImageData",FieldValue:e});$.ajax({url:"https://www.soaringeaglewaterpark.com/api/api/Email",type:"POST",data:JSON.stringify(s),contentType:"Application/json"}).done(function(){$(r).find(".response-message").html("Thank you for contacting us. We will respond to your inquiry as soon as possible."),$(r).find(".g-recaptcha").hide(),$(r).find(".submit-button").hide()}).fail(function(e,a,s){"ReCaptcha Failed"==e.responseJSON.Message?$(r).find(".g-recaptcha").css("border","2px solid red"):$(r).find(".response-message").html("There was a problem submitting your reqeust. Please try again")})}