1(self.webpackChunksoyvay_com=self.webpackChunksoyvay_com||[]).push([[386],{879(){var e;e=jQuery,SoyVay.archiveRecipes={init:function(){!function(){var i=e(".js-recipe-filters"),t=e(".js-recipe-results"),c=e(".js-recipe-toggles").find("[data-toggle]"),n=SoyVay.readCookie("favoriteRecipes"),a=n?JSON.parse(n):[];a.length>0&&e("#my-favorites-filter").show();var o=function(){var i=window.location.href,c=i.indexOf("&js-load=1")>-1?i:"".concat(i,"&js-load=1");e.get(c,function(e){t.html(e),h(),SoyVay.handleFavorite.init()}).fail(function(){console.log("could not get data")})},s=function(){i.find("input[type=radio]").each(function(i){e(this).parent().removeClass("checked"),e(this).prop("checked")&&e(this).parent().addClass("checked")})},r=function(){i.find(".recipe-filters__fieldset").removeClass("visible")},l=function(){c.removeClass("checked"),i.find(".checked").each(function(i){var t=e(this).parents(".recipe-filters__fieldset").attr("id");e("[data-toggle=".concat(t,"]")).addClass("checked")})},f=function(){i.find("input[type=radio]").each(function(i){e(this).removeAttr("checked")}),i.find("label").each(function(i){e(this).removeClass("selected")}),void 0!==window.history.replaceState&&window.history.replaceState(null,"Updated filters","?"),s(),l(),r(),o()},d=function(){c.each(function(i){e(this).removeClass("selected"),e(this).removeClass("checked")})},h=function(){e(".js-recipe-filters").on("change",function(){if(void 0!==window.history.replaceState){var i=e(".js-recipe-filters").serialize();a.length>0&&i.indexOf("category=my-favorites")>-1&&(i+=i.indexOf("&favorite=")>-1?"":"&favorite=".concat(n)),window.history.replaceState(null,"Updated filters","?".concat(i))}s(),l(),o()})};c.on("click",function(){if(d(),r(),e(this).addClass("selected"),e(this).not("checked")){var i=e(this).data("toggle");e("#".concat(i)).addClass("visible"),e("#".concat(i)).find(".recipe-filters__filter").first().focus()}}),i.find(".recipe-filters__filter").on("keydown",function(i){if(13===i.which)e(this).click();else if(27===i.which){var t=e(this).parents(".recipe-filters__fieldset").attr("id");e("[data-toggle=".concat(t,"]")).focus()}}),e(c,i).on("keydown",function(e){8===e.which&&(f(),d())}),e("[data-clear]").on("click",function(){f(),d()}),s(),l(),h()}()}},e(document).ready(function(){SoyVay.archiveRecipes.init()})}}]); 2//# sourceMappingURL=archive-recipe.bd4bf5.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.