(()=>{"use strict";function e(e){const t=e.querySelectorAll(".popup"),o=e.querySelectorAll(".popup-link"),c=e.querySelectorAll(".popup-close"),n=e.querySelectorAll(".popup form");if(!t)return;const s=e=>{e.setAttribute("aria-selected","false"),e.classList.remove("active"),document.documentElement.style.overflow=""},r=()=>{t.forEach((e=>{s(e)}))};o.forEach((e=>{e.addEventListener("click",(function(o){o.preventDefault(),(e=>{const o=e.dataset.key;t.forEach((e=>{e.dataset.key===o?(e.setAttribute("aria-selected","true"),e.classList.add("active")):(e.setAttribute("aria-selected","false"),e.classList.remove("active"))})),document.documentElement.style.overflow="hidden"})(e)}))})),c.forEach((e=>{e.addEventListener("click",(function(t){t.preventDefault(),s(e?.closest(".popup"))}))})),document.addEventListener("click",(function(e){e.target.closest(".popup-container")||e.target.closest(".popup-link")||r()})),document.addEventListener("keydown",(function(e){"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||r()})),n.forEach((e=>{e.addEventListener("submit",(function(){s(e?.closest(".popup"))}))}))}window.initPopup=e;const t=e;document.addEventListener("DOMContentLoaded",(()=>{t(document)}))})(); //# sourceMappingURL=rte-blocks-frontend.js.map?ver=a6c1a30bf4eeabdc5a3d; "use strict" document.addEventListener('DOMContentLoaded', function () { // IE11 Support: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Polyfill if ( window.NodeList && ! NodeList.prototype.forEach ) { NodeList.prototype.forEach = Array.prototype.forEach; } document.querySelectorAll('[data-gtm-on]').forEach(function (element) { var data = element.dataset, trigger = data.gtmOn; // Set the event listener. element.addEventListener(trigger, function () { // Check for custom variable. var variable = data.gtmVar || 'dataLayer', entry = {}; // Instantiate the dataLayer variable if it doesn't exist. window[variable] = window[variable] || []; data.gtmEvent && (entry.event = String(data.gtmEvent)); data.gtmCategory && (entry.category = String(data.gtmCategory)); data.gtmLabel && (entry.label = String(data.gtmLabel)); data.gtmValue && (entry.value = Number(data.gtmValue)); data.gtmFields && (entry.fields = JSON.parse(data.gtmFields)); // Push the entry onto the dataLayer. window[variable].push(entry); }); }); }); ; (()=>{var e={74:(e,t,i)=>{var a=i(311);function n(e){var t=window.getComputedStyle(document.body,":after").getPropertyValue("content");if(t&&-1!==t.indexOf(e))return!0}document.addEventListener("DOMContentLoaded",(()=>{document.body.classList.add("js")})),function(e){e(document).ready((function(){document.querySelectorAll("ol").forEach((function(e,t){if(e.start>1){e.querySelector("li").style.counterReset="list-counter "+parseInt(e.start-1)}}));var t=e(".site-header").height()+parseInt(e(".site-header").css("border-bottom-width")),i=e("#header-search").height(),r=t+i;e(".search-toggle").click((function(){e(window).width()<1024&&($adminHeight=e("#wpadminbar").height(),e("#header-search").hasClass("hidden")?(e("#header-search").removeClass("hidden"),e(".site-header").animate({height:r},200),$navHeightOffset=i,$navHeightOffsetWithAdminBar=r+$adminHeight):(e("#header-search").addClass("hidden"),e(".site-header").animate({height:t},200),$navHeightOffset=0,$navHeightOffsetWithAdminBar=t+$adminHeight),e(".nav-primary").animate({marginTop:$navHeightOffset},200),e(".nav-primary").css({height:"calc(100% - "+$navHeightOffsetWithAdminBar+"px)"}))})),e(".site-credits-container").on("focus mouseover",(function(){e(".site-credits-container").addClass("active")})),e(".site-credits-container").on("blur mouseout",(function(){e(".site-credits-container").removeClass("active")})),e(document).on("keyup",(function(t){27==t.keyCode&&e(".site-credits-container").removeClass("active")})),e(".maintained a").on("focus",(function(){e(".site-credits-container").addClass("active")})),e(".maintained a").on("blur",(function(){e(".site-credits-container").removeClass("active")})),e(".dpsp-networks-btns-wrapper button").attr("tabindex","0"),e(".dpsp-networks-btns-wrapper a").attr("tabindex","0"),e(".entry-image-link").on("focus",(function(){e("img",this).css({outline:"5px auto Highlight",outline:"5px auto -webkit-focus-ring-color","outline-offset":"5px"})})),e(".entry-image-link").on("focusout",(function(){e("img",this).css("outline","none")})),e(".social-icon").attr("tabindex","0"),e("span.embed-youtube").attr("tabindex","0"),setTimeout((function(){e(".owl-item.active a").attr("tabindex","0"),e(".owl-item:not(.active) a").attr("tabindex","-1"),e(".owl-next").on("click",(function(){e(".owl-item.active a").attr("tabindex","0"),e(".owl-item:not(.active) a").attr("tabindex","-1")})),e(".owl-prev").on("click",(function(){e(".owl-item.active a").attr("tabindex","0"),e(".owl-item:not(.active) a").attr("tabindex","-1")}))}),3e3),e(".footer-link-heading").attr("tabindex","-1"),e("#commentform").removeAttr("novalidate");var o=document.getElementById("comment"),s=document.getElementById("author"),c=document.getElementById("email"),l=document.getElementsByClassName("firstname-hidden"),d=document.getElementsByClassName("email-hidden"),u=document.getElementById("firstname-hidden-footer"),f=document.getElementById("email-hidden-footer");function m(e,t,i){a.each(e,(function(e,a){"undefined"!=typeof a&&null!=a&&(a.addEventListener("input",(()=>{a.setCustomValidity(""),a.checkValidity()})),a.addEventListener("invalid",(()=>{""===a.value?a.setCustomValidity(t):a.setCustomValidity(i)})))}))}m(l,"Please enter your first name.","Please enter a valid first name."),m(d,"Please enter your email.","Please enter a valid email address. e.g. nagim@recipetineats.com"),"undefined"!=typeof o&&null!=o&&(o.addEventListener("input",(()=>{o.setCustomValidity(""),o.checkValidity()})),o.addEventListener("invalid",(()=>{""===o.value&&o.setCustomValidity("Comment field is empty.")}))),"undefined"!=typeof s&&null!=s&&(s.addEventListener("input",(()=>{s.setCustomValidity(""),s.checkValidity()})),s.addEventListener("invalid",(()=>{""===s.value?s.setCustomValidity("Author field is empty."):s.setCustomValidity("Please enter a valid author name.")}))),"undefined"!=typeof c&&null!=c&&(c.addEventListener("input",(()=>{c.setCustomValidity(""),c.checkValidity()})),c.addEventListener("invalid",(()=>{""===c.value?c.setCustomValidity("Please enter your email."):c.setCustomValidity("Please enter a valid email address. e.g. nagim@recipetineats.com")}))),"undefined"!=typeof u&&null!=u&&(u.addEventListener("input",(()=>{u.setCustomValidity(""),u.checkValidity()})),u.addEventListener("invalid",(()=>{""===u.value?u.setCustomValidity("Please enter your first name."):u.setCustomValidity("Please enter a valid first name.")}))),"undefined"!=typeof f&&null!=f&&(f.addEventListener("input",(()=>{f.setCustomValidity(""),f.checkValidity()})),f.addEventListener("invalid",(()=>{""===f.value?f.setCustomValidity("Please enter your email."):f.setCustomValidity("Please enter a valid email.")}))),e(".wprm-recipe-servings-link").attr("role","button"),e(".comment-reply-link").attr("role","button"),e(".comment-reply-link").attr("aria-pressed","false"),e("form.covertkit-form").submit((function(t){e(".form-success-polite",this).css("visibility","visible")})),e(".search-form-input").attr("aria-label","Open search panel");var v=e(".facetwp-checkbox").clone().children().remove().end().text();e(".facetwp-checkbox").attr({"aria-label":"Tap to filter the results by "+v,tabindex:"0"}),e("#commentform .required").html("(required)"),e("#commentform [required]").attr("aria-required","true"),setTimeout((function(){e(".owl-prev").attr("aria-label","Load previous slides"),e(".owl-prev").attr("role","button"),e(".owl-next").attr("aria-label","Load next slides"),e(".owl-next").attr("role","button"),e(".owl-item").each((function(t){var i=e(".slide-title",this).clone().children().remove().end().text();e("a",this).attr("aria-label",i),console.log(i)}))}),1e3),e(".wprm-unit-conversion-container button.wprmpuc-active").attr("aria-pressed","true"),e(".wprm-unit-conversion-container button:not('.wprmpuc-active')").attr("aria-pressed","false"),e(".wprm-unit-conversion-container button").on("click",(function(){e(".wprm-unit-conversion-container .wprmpuc-active").attr("aria-pressed","false"),e(".wprm-unit-conversion-container button:not('.wprmpuc-active')").attr("aria-pressed","true")})),e(".toggle-target").toggle(),e(".toggle-button").click((function(){e(this).next(".toggle-target").slideToggle("fast"),e(this).toggleClass("activated")})),e(".back-to-top").click((function(){e("html, body").animate({scrollTop:0})})),e(".leave-a-comment").click((function(){e("html, body").animate({scrollTop:e("#respond").offset().top})})),e(".wprm-recipe-jump, .jump-button, .entry-comments-link a").click((function(){var t=e(this).attr("href").split("#")[1],i=e("#"+t),a=function(t){var i=-40,a=32,r=e("body").hasClass("admin-bar"),o=e(".site-container").hasClass("sticky-header");return t.indexOf("recipe")>=0&&(r&&(i=-86),n("mobile")&&(i=-63,r&&(i=-116)),n("tablet")&&(i=-70,r&&(i=-100)),n("desktop")&&(i=-75,r&&(i-=a),r&&o&&(i-=a))),t.indexOf("comments")>=0&&(i=-130,r&&(i=-176),n("tablet")&&r&&(i=-162),n("desktop")&&(i=-135,r&&(i-=a),r&&o&&(i-=a))),t.indexOf("jump")>=0&&(i=-60,r&&(i=-106),n("tablet")&&r&&(i=-92),n("desktop")&&(i=-60,r&&(i-=a),r&&o&&(i-=a))),i}(t);e([document.documentElement,document.body]).animate({scrollTop:i.offset().top+(60+a)},350)}))})),e(".subscribe-user-icon").html(''),e(".subscribe-envelope-icon").html(''),e(".fa-instagram").replaceWith(''),e(".fa-facebook-f").replaceWith(''),e(".fa-pinterest-p").replaceWith(''),e(".fa-youtube").replaceWith(''),e("i.fa-chevron-left").replaceWith(''),e("i.fa-chevron-right").replaceWith('');var t=e("[data-vimeo-url]").attr("data-vimeo-url");a("[data-vimeo-url]").attr("src",t)}(a)},200:(e,t,i)=>{var a="Expected a function",n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt,u="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,f="object"==typeof self&&self&&self.Object===Object&&self,m=u||f||Function("return this")(),v=Object.prototype.toString,p=Math.max,h=Math.min,g=function(){return m.Date.now()};function w(e,t,i){var n,r,o,s,c,l,d=0,u=!1,f=!1,m=!0;if("function"!=typeof e)throw new TypeError(a);function v(t){var i=n,a=r;return n=r=void 0,d=t,s=e.apply(a,i)}function w(e){var i=e-l;return void 0===l||i>=t||i<0||f&&e-d>=o}function x(){var e=g();if(w(e))return C(e);c=setTimeout(x,function(e){var i=t-(e-l);return f?h(i,o-(e-d)):i}(e))}function C(e){return c=void 0,m&&n?v(e):(n=r=void 0,s)}function k(){var e=g(),i=w(e);if(n=arguments,r=this,l=e,i){if(void 0===c)return function(e){return d=e,c=setTimeout(x,t),u?v(e):s}(l);if(f)return c=setTimeout(x,t),v(l)}return void 0===c&&(c=setTimeout(x,t)),s}return t=b(t)||0,y(i)&&(u=!!i.leading,o=(f="maxWait"in i)?p(b(i.maxWait)||0,t):o,m="trailing"in i?!!i.trailing:m),k.cancel=function(){void 0!==c&&clearTimeout(c),d=0,n=l=r=c=void 0},k.flush=function(){return void 0===c?s:C(g())},k}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&v.call(e)==r}(e))return n;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var i=c.test(e);return i||l.test(e)?d(e.slice(2),i?2:8):s.test(e)?n:+e}e.exports=function(e,t,i){var n=!0,r=!0;if("function"!=typeof e)throw new TypeError(a);return y(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),w(e,t,{leading:n,maxWait:t,trailing:r})}},311:e=>{"use strict";e.exports=jQuery}},t={};function i(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=i(200),t=i.n(e);!function(e){e(document).ready((function(){e(".menu-item-has-children > a").after('')})),e(document).on("click",".generic-toggle",(function(){e(this).toggleClass("activated"),e("#genesis-nav-primary").slideToggle("fast")})),e(document).on("click",".sub-menu-toggle",(function(){e(this).toggleClass("activated"),e("~ .sub-menu",this).toggleClass("show-sub-menu")})),e(document).ready((function(){e(".menu-item-has-children > a").on("click",(function(){var t=e(this).attr("href");window.location.href=encodeURI(t)}))}));var i=t()((()=>{let t,i;t=e(window).scrollTop(),i=e(".site-container"),(t>48||!function(e){var t=window.getComputedStyle(document.body,":after").getPropertyValue("content");if(t&&-1!==t.indexOf(e))return!0}("desktop")&&t>40)&&i.addClass("sticky-header"),t<=47&&i.removeClass("sticky-header")}),100);e(window).on("scroll",i)}(i(311));i(74)})()})(); //# sourceMappingURL=rte-theme-tailwind.js.map?ver=7a7d82c34259726b6b8e; !function(o){o(document).on("facetwp-loaded",function(){FWP.loaded&&o("html, body").scrollTop(0)})}(jQuery);; /*! This file is auto-generated */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))-1,this.superfish("hide"),this.parents("."+b.hoverClass).length||(b.onIdle.call(k(this)),b.$path.length&&a.proxy(m,b.$path)())},o=function(){var b=a(this),c=l(b);d?a.proxy(n,b,c)():(clearTimeout(c.sfTimer),c.sfTimer=setTimeout(a.proxy(n,b,c),c.delay))},p=function(b){var c=a(this),d=l(c),e=c.siblings(b.data.popUpSelector);return d.onHandleTouch.call(e)===!1?this:void(e.length>0&&e.is(":hidden")&&(c.one("click.superfish",!1),"MSPointerDown"===b.type||"pointerdown"===b.type?c.trigger("focus"):a.proxy(m,c.parent("li"))()))},q=function(b,c){var g="li:has("+c.popUpSelector+")";a.fn.hoverIntent&&!c.disableHI?b.hoverIntent(m,o,g):b.on("mouseenter.superfish",g,m).on("mouseleave.superfish",g,o);var h="MSPointerDown.superfish";f&&(h="pointerdown.superfish"),d||(h+=" touchend.superfish"),e&&(h+=" mousedown.superfish"),b.on("focusin.superfish","li",m).on("focusout.superfish","li",o).on(h,"a",c,p)};return{hide:function(b){if(this.length){var c=this,d=l(c);if(!d)return this;var e=d.retainPath===!0?d.$path:"",f=c.find("li."+d.hoverClass).add(this).not(e).removeClass(d.hoverClass).children(d.popUpSelector),g=d.speedOut;if(b&&(f.show(),g=0),d.retainPath=!1,d.onBeforeHide.call(f)===!1)return this;f.stop(!0,!0).animate(d.animationOut,g,function(){var b=a(this);d.onHide.call(b)})}return this},show:function(){var a=l(this);if(!a)return this;var b=this.addClass(a.hoverClass),c=b.children(a.popUpSelector);return a.onBeforeShow.call(c)===!1?this:(c.stop(!0,!0).animate(a.animation,a.speed,function(){a.onShow.call(c)}),this)},destroy:function(){return this.each(function(){var b,d=a(this),e=d.data("sfOptions");return!!e&&(b=d.find(e.popUpSelector).parent("li"),clearTimeout(e.sfTimer),g(d,e),i(b),j(d),d.off(".superfish").off(".hoverIntent"),b.children(e.popUpSelector).attr("style",function(a,b){if("undefined"!=typeof b)return b.replace(/display[^;]+;?/g,"")}),e.$path.removeClass(e.hoverClass+" "+c.bcClass).addClass(e.pathClass),d.find("."+e.hoverClass).removeClass(e.hoverClass),e.onDestroy.call(d),void d.removeData("sfOptions"))})},init:function(b){return this.each(function(){var d=a(this);if(d.data("sfOptions"))return!1;var e=a.extend({},a.fn.superfish.defaults,b),f=d.find(e.popUpSelector).parent("li");e.$path=h(d,e),d.data("sfOptions",e),g(d,e,!0),i(f,!0),j(d),q(d,e),f.not("."+c.bcClass).superfish("hide",!0),e.onInit.call(this)})}}}();a.fn.superfish=function(b,d){return c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?a.error("Method "+b+" does not exist on jQuery.fn.superfish"):c.init.apply(this,arguments)},a.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:a.noop,onBeforeShow:a.noop,onShow:a.noop,onBeforeHide:a.noop,onHide:a.noop,onIdle:a.noop,onDestroy:a.noop,onHandleTouch:a.noop}}(jQuery,window);; jQuery(function(s){"use strict";s(".js-superfish").superfish({delay:0,disableHI:!0,animation:{opacity:"show"},dropShadows:!1})});; function ga_skiplinks(){"use strict";var fragmentID=location.hash.substring(1);if(fragmentID){var element=document.getElementById(fragmentID);element&&(!1===/^(?:a|select|input|button|textarea)$/i.test(element.tagName)&&(element.tabIndex=-1),element.focus())}}window.addEventListener?window.addEventListener("hashchange",ga_skiplinks,!1):window.attachEvent("onhashchange",ga_skiplinks);;