1(self.webpackChunkWPRecipeMakerPublicSplit=self.webpackChunkWPRecipeMakerPublicSplit||[]).push([[631],{4253:()=>{var e;window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.myShoppingHelp={init:()=>{WPRecipeMaker.myShoppingHelp.checkAndShow();let e=setInterval((()=>{window.msh&&(WPRecipeMaker.myShoppingHelp.checkAndShow(),clearInterval(e))}),100);setTimeout((()=>{clearInterval(e)}),1e4),document.addEventListener("click",(function(e){const i=!!e.target.closest&&e.target.closest(".wprm-recipe-my-shopping-help");i&&WPRecipeMaker.myShoppingHelp.onClick(i,e)}),!1)},checkAndShow:()=>{if(window.msh&&("function"==typeof window.msh.addRecipe||"function"==typeof window.msh.AddRecipe)){document.querySelectorAll(".wprm-recipe-my-shopping-help").forEach((e=>{"hidden"===e.style.visibility&&(e.style.visibility="visible")}))}},onClick:(e,i)=>{i.preventDefault();const t=WPRecipeMaker.myShoppingHelp.getRecipeFromElement(e);if(!t)return void console.warn("WPRM My Shopping Help: recipe data is missing.");const n=WPRecipeMaker.myShoppingHelp.getHandler();n?n(t):console.warn("WPRM My Shopping Help: widget is not available yet.")},getRecipeFromElement:e=>{if(e.dataset.recipe)try{return JSON.parse(e.dataset.recipe)}catch(t){console.error("WPRM My Shopping Help: unable to parse recipe data.",t)}const i={};return e.dataset.recipeId&&(i.id=e.dataset.recipeId),e.dataset.recipeType&&(i.type=e.dataset.recipeType),e.dataset.recipeUrl&&(i.url=e.dataset.recipeUrl),e.dataset.recipeName&&(i.name=e.dataset.recipeName),e.dataset.recipeImage&&(i.image=e.dataset.recipeImage),Object.keys(i).length?i:null},getHandler:()=>window.msh&&"function"==typeof window.msh.addRecipe?window.msh.addRecipe.bind(window.msh):window.msh&&"function"==typeof window.msh.AddRecipe?window.msh.AddRecipe.bind(window.msh):null},e=()=>{window.WPRecipeMaker.myShoppingHelp.init()},"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}}]);
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.