1"use strict";(self.webpackChunkrapid_js=self.webpackChunkrapid_js||[]).push([["recipe-nutrition"],{1445(e,t,i){i.d(t,{default:()=>a});var o=i(7233),s=i.n(o),n=i(9506);class a{static init(){s()("#jump-to-recipe-btn").length&&new a}static goToRecipeButton(){document.getElementById("RecipeDetailsStart").getBoundingClientRect().top>50&&((0,n.e)("RecipeDetailsStart"),setTimeout(a.goToRecipeButton,1e3))}constructor(){s()("#jump-to-recipe-btn").on("click",()=>{a.goToRecipeButton()})}}},1912(e,t,i){i.d(t,{default:()=>a});var o=i(7233),s=i.n(o),n=i(5891);class a{static init(){s()(".js-bake-mode-toggle").length&&new a}static checkFC(){"1"!==(0,n.ru)("bake_mode.enabled")&&s()(".js-bake-mode-toggle-wrap").remove()}constructor(){this.toggle=s()(".js-bake-mode-toggle"),this.wakeLock=null,"wakeLock"in navigator?(this.toggle.on("change",()=>{this.toggle.prop("checked")?this.requestWakeLock():this.releaseWakeLock()}),document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.toggle.prop("checked")&&this.requestWakeLock()})):s()(".js-bake-mode-toggle-wrap").addClass("hidden")}requestWakeLock(){navigator.wakeLock.request("screen").then(e=>{this.toggle.prop("checked")?(this.wakeLock=e,this.wakeLock.addEventListener("release",()=>{this.wakeLock=null})):e.release().catch(()=>{})}).catch(()=>{this.wakeLock=null,this.toggle.prop("checked",!1)})}releaseWakeLock(){this.wakeLock&&(this.wakeLock.release().catch(()=>{}),this.wakeLock=null)}}},5632(e,t,i){i.d(t,{default:()=>c});var o=i(7233),s=i.n(o),n=i(371),a=i(8934);class c{static init(){s()(".js-show-nutritional-info").length&&new c}constructor(){this.nutritionInfoBtn=s()(".js-show-nutritional-info"),this.recipe_id=s()("#page-content-js").data("item-id"),this.nutritionInfoBtn.on("click",e=>{(0,a.default)("Click Nutrition Button"),0==s()(".js-nutri-item").length&&0===s()(".js-no-nutridata").length&&new n.Ay("posts/:id/nutrition_details?format=html").get(this.recipe_id,{id:this.recipe_id}).then(e=>{let t=s()(".js-toggle-content");t.html(e.html),t.find(".js-show-nutri-list-header").removeClass("hidden"),t.find(".js-edamam-badge").removeClass("hidden")})})}}}}]);
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.