Please select at least one newsletter provider
');n.find(".global-signup-form-container.step-1").addClass("hidden"),n.find(".global-signup-form-error").remove(),n.find(".global-signup-form-container.step-2").removeClass("hidden"),n.find(".global-signup-form-container.step-3").addClass("hidden")}),e(document).on("click",".global-signup-form-button.no-thanks-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(s,Date.now())}),e(document).on("click",".global-signup-modal-close-btn, .signup-form-widget-close",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(a,Date.now())}),e(document).on("click",".global-signup-form-button.back-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-form");t.find(".global-signup-form-container.step-2").addClass("hidden"),t.find(".global-signup-form-container.step-1").removeClass("hidden"),t.find(".global-signup-form-container.step-3").addClass("hidden"),t.find(".global-signup-form-error").remove()}),e(document).on("submit",".global-signup-form",function(n){e(this).find(".global-signup-form-error").remove(),n.preventDefault();const o=e(this),a=o.find('input[name="email"]').val(),s=o.find('input[name="zip"]').val(),l=o.find('input[name="first-name"]').val(),c=o.find('input[name="last-name"]').val(),d=o.find('input[name="newsletterProviderId[]"]:checked').map(function(){return e(this).val()}).get(),u=e(window).outerWidth()<=767?"Pop Up-Mobile":"Pop Up",g=o.find('input[name="category"]').val(),p=grecaptcha.getResponse(t);if(!(a&&s&&l&&c))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(""===a.replace(/\s/g,"")||""===s.replace(/\s/g,"")||""===l.replace(/\s/g,"")||""===c.replace(/\s/g,""))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return o.find(".global-signup-form-error").remove(),void o.prepend('Please enter a valid email address
');if(!p)return o.find(".global-signup-form-error").remove(),void o.prepend('Please complete the reCAPTCHA verification.
');const m={};d.forEach(function(e){m[e]=1});const f=(new Date).getTime(),h={postal_code:`${s}`,first_name:l,last_name:c,full_name:l+" "+c,product_level:"Subscriber",account_created:`${f}`,source_description:`${g}`,source_primary:"Website-Local",source_sub:u};Sailthru.integration("userSignUp",{email:a,lists:m,vars:h,source:`Website-Local|${u}|${g}`,onSuccess:function(e){o.find(".global-signup-form-container.step-2").addClass("hidden"),o.find(".global-signup-form-container.step-3").removeClass("hidden"),o.find(".global-signup-form-error").remove(),localStorage.setItem(i,"true"),localStorage.setItem("global-signup-form-submitted-time",f),localStorage.setItem(r,Date.now())},onError:function(e){o.find(".global-signup-form-error").remove(),o.prepend('Something went wrong. Please try again.
')}})}),jQuery(document).ready(function(){(function(){if(localStorage.getItem(i))return!1;const e=Date.now(),t=localStorage.getItem(a);if(t&&e-parseInt(t,10)<6048e5)return!1;const n=localStorage.getItem(s);if(n&&e-parseInt(n,10)<2592e6)return!1;const o=localStorage.getItem(r);return!(o&&e-parseInt(o,10)<7776e7)})()&&setTimeout(l,5e3)})}(jQuery)}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(958),n(5584)})()})();; (()=>{"use strict";jQuery(document).ready(function(e){e("#rules-toggle").on("click",function(r){r.preventDefault();const a=e(this),t=e("#rules-accordion"),s=a.find(".giveaway-form__toggle-icon");t.is(":visible")?(t.slideUp(300),s.text("▼"),t.removeClass("active")):(t.slideDown(300),s.text("▲"),t.addClass("active"))});var r=e(":checkbox[required]");r.on("change",function(a){var t=r.filter('[name="'+e(this).attr("name")+'"]'),s=t.is(":checked");t.prop("required",!s)}),r.trigger("change"),e(document).on("click",".giveaway-form__button",function(r){const a=e(this).closest(".giveaway-form"),t=e("#giveaway-form-message"),s=e(".site-header__wrapper").outerHeight()+(e("#wpadminbar").outerHeight()||0)+50;let o=!1,i=[];if(a.find("input[required],textarea[required],select[required]").each(function(){"radio"===e(this).prop("type")||"checkbox"===e(this).prop("type")?e('input[name="'+e(this).attr("name")+'"]:checked').length>0?(e(this).css("border-color",""),o=!1):(e(this).css("border-color","red"),i.push(e(this)),o=!0):""===e(this).val()?(e(this).css("border-color","red"),i.push(e(this)),o=!0):(e(this).css("border-color",""),o=!1)}),o)return r.preventDefault(),e("html, body").animate({scrollTop:i[0].offset().top-s},200),t.html("Please fill in all required fields."),t.addClass("giveaway-form__message--error"),void t.show();t.hide(),t.removeClass("giveaway-form__message--error"),a.submit()}),e("#giveaway-form").on("submit",function(r){if(r.preventDefault(),"undefined"==typeof giveaway)return void console.error("Free Stuff object not found. Make sure the script is properly localized.");const a=e(this),t=a.find(".giveaway-form__button"),s=e("#giveaway-form-message"),o=e(".giveaway-form__content"),i=e("#giveaway-thank-you"),c=e(".site-header__wrapper").outerHeight()+(e("#wpadminbar").outerHeight()||0)+50;grecaptcha.getResponse(),t.prop("disabled",!0).text("Submitting..."),s.hide(),e.ajax({url:giveaway.ajax_url,type:"POST",data:a.serialize(),success(r){r.success?o.fadeOut(200,function(){i.fadeIn(200),e("html, body").animate({scrollTop:i.offset().top-c},200),a[0].reset()}):(grecaptcha.reset(),s.removeClass("giveaway-form__message--success").addClass("giveaway-form__message--error").html(r.data).show())},error(){grecaptcha.reset(),s.removeClass("giveaway-form__message--success").addClass("giveaway-form__message--error").html("An error occurred. Please try again.").show()},complete(){t.prop("disabled",!1).text("SIGN ME UP TO WIN")}})})})})();;